How to check if a swf is loaded using JavaScript with swfobject?

后端 未结 3 2127
春和景丽
春和景丽 2020-12-19 20:45

I have the following swf:

    
    # load js
    

        
3条回答
  •  感情败类
    2020-12-19 20:55

    Use SWFObject to embed the SWF, then use the callback function to poll the SWF's PercentLoaded value.

    If the value is 0, the SWF has not loaded yet. When it hits 100, the SWF is fully loaded.

    Here's a tutorial for polling PercentLoaded, complete with code examples.

提交回复
热议问题