SWFAddress 2.2没有响应特定的URL

时间:2009-09-04 01:16:16

标签: actionscript-2 swfaddress

我正在将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 个答案:

答案 0 :(得分:0)

我在swfobject embed中缺少id属性。现在就行! :)