开发者

how to get BrowserManager play nice with SWFObject (Flex 3)

开发者 https://www.devze.com 2023-01-05 21:33 出处:网络
I need to get the URL of the HTML where the SWF is embedded. I found out that it should be a piece of cake with BrowserManager, but unfo开发者_如何学Crtunately I use SWFObject to embed swf in html! an

I need to get the URL of the HTML where the SWF is embedded. I found out that it should be a piece of cake with BrowserManager, but unfo开发者_如何学Crtunately I use SWFObject to embed swf in html! and BrowserManager doesn't like that!! could someone help me with this? cheers


You can do it by changing the history.js file

comment out these lines:;

        /*
    if (players.length == 0 || players[0].object == null) {
        var tmp = document.getElementsByTagName('embed');
        players = tmp;
    }
    */

and these:

        /*
    if (player == null || player.object == null) {
        player = document.getElementsByTagName('embed')[0];
    }
    */

these will make them play nicely together :-)

0

精彩评论

暂无评论...
验证码 换一张
取 消