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

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

I have the following swf:

    
    # load js
    

        
3条回答
  •  旧时难觅i
    2020-12-19 21:01

    The swfobject callback only returns success if the DOM element was successfully created. It doesn't actually say anything about whether or not the SWF has loaded.

    From the swfobject documentation:

    NOTE: success is report as true if the minimum Flash player required is available and that the Flash plugin-in DOM element for the SWF was created. SWFObject cannot detect if the swf file request has actually loaded or not.

提交回复
热议问题