开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜