代码之家  ›  专栏  ›  技术社区  ›  Marcy Sutton

swfaddress 2.2没有响应特定的URL

  •  0
  • Marcy Sutton  · 技术社区  · 16 年前

    我正在将swfaddress实现为Flash电影,当我的导航设置正确时,当我输入一个特定的URL时,它似乎根本无法与浏览器通信。我是想找个倾听者还是什么?

    http://client.deicreative.com/test/TBB/

    这节课和我的导航课对话:

    import SWFAddress.as;
    
    class code.RunSWFAddress {
    
    public function RunSWFAddress(){
        init();
    }
    private function init() {
        var scope = this;
    
        SWFAddress.setStrict(false);
        SWFAddress.onChange = function() {
            var value = SWFAddress.getValue();
            var path = SWFAddress.getPath();
            var id = SWFAddress.getParameter('id');
            if (code.PageContent.getInstance().xmlVar1.getBytesLoaded() == code.PageContent.getInstance().xmlVar1.getBytesTotal()){
    
                if(SWFAddress.getValue() == '/' || SWFAddress.getValue() == '') {
                    code.Navigation.getInstance().showPage(0);
    
                } else {
                    for(var i:Number = 0; i<code.Startup.getInstance().numPages; i++){
                        if(SWFAddress.getValue() == code.Startup.getInstance().page_arr[i][0]){
    
                            code.Navigation.getInstance().showPage(i);
                        }
                    }
                }
            }
            var title = 'The Broadway Building';    
            var names = SWFAddress.getPathNames();
            for (var i = 0; i < names.length; i++) {
                title += ' | ' + names[i].substr(0,1).toUpperCase() + names[i].substr(1);
            }
            var id = SWFAddress.getParameter('id');
            if (id != '') {
                title += ' | ' + id; 
            }
            SWFAddress.setTitle(title);
        }
    
    }
    
     }
    
    1 回复  |  直到 15 年前
        1
  •  0
  •   Marcy Sutton    16 年前

    我的swfobject嵌入中缺少id属性。现在工作!:)

    推荐文章