jquery工具显示加载器,直到所有flashhembed内容完全加载

时间:2013-07-25 16:25:47

标签: jquery flash jquery-tools

我尝试使用jquerytools通过flashembed函数加载我的swf内容。

flashembed("flash-background", {
        src: "swf/background.swf", 
        wmode: 'transparent',
        quality: 'high',
        width: '100%',
        height: '100%',
        allowfullscreen: 'true',
        scale: 'noborder'
});

flashembed("flash-mp3player", {
        src: "swf/mp3player.swf", 
        wmode: 'transparent',
        quality: 'high',
        width: '100px',
        height: '30px',
        allowfullscreen: 'false'
});

HTML

<!-- the flash background -->
<div id="flash-background"></div>

<!-- the flash player -->
<div id="flash-mp3player"></div>

我想显示一个加载器,直到完全加载所有Flash内容。我该怎么办?我还要用jquery吗?感谢

1 个答案:

答案 0 :(得分:0)

使用$.Deferred()来实现

相关问题