I'm using swfobject
to embed flash object but after it's rendered,
Below code doesn't seem to select the flash object at all it just picks up the div element that was there before it is being rendered:
flashMovie = document.getElementById("slideshare-player");
Is there a reason why this is happening?
You want the 'object' inside your div.
//get the ID of your swf
swfName = document.getElementById("slideshare-player").getElementsByTagName('object')[0].id;
//get the object
flashMovie = document.getElementById(swfName);
//tell it to do something
flashMovie.doSomeStuff();
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.