The example of this article tells JS simple to determine whether flash load completed method. Share to everyone for your reference, specific as follows:
<script type= "Text/javascript" >
//Determining whether to load success
function checkloaded (Flash) {
try{
return Math.floor (Flash. percentloaded ()) = =
}catch (e) {return
false;
}
}
var flash = ' Flash object ';
var intervalid = setinterval (function () {
if (checkloaded (Flash)) {
clearinterval (intervalid);
Intervalid = null;
}
},60)
</script>
Ps:percentloaded not all support, but I tried to find, Chrome,ie,firefox can be used normally. At the same time can also be based on percentloaded this method to make flash loading progress bar
For more information on JavaScript-related content readers can view the site: "Javascript+flash skills and effects of the encyclopedia", "JavaScript switching effects and techniques summary", "JavaScript Search Algorithm Skills summary", " JavaScript animation effects and tips Summary, "JavaScript Error and debugging skills Summary", "JavaScript data structure and algorithm skills summary", "JavaScript traversal algorithm and Skills summary" and "JavaScript Mathematical operation Usage Summary"
I hope this article will help you with JavaScript programming.