How to capture an event trigger when a flash movie successfully loaded?

前端 未结 4 2095
梦谈多话
梦谈多话 2021-01-16 11:30

I\'m currently using jQuery, as well as swfObject to dynamically embed the swf movie into my web page.

I currently having a problem on embeding immem\'s music player

4条回答
  •  无人及你
    2021-01-16 12:13

    Typically the easiest thing to do is plain ol' which would wait for your external resources to finish loading before calling your handler.

    However, if you're using swfObject to add an embedded plugin dynamically the browser will fire the onload for the body exclusive of your flash movie (it doesn't know anything about your plugin).

    See http://blog.deconcept.com/swfobject/forum/discussion/271/javascript-onload-event-does-not-reflect-page-load-using-swfobject/ for a similar discussion to yours. It's my best guess that you cannot do what you want without modifying the original swf in some fashion.

提交回复
热议问题