Hi to all. I'm trying to get the percent of an swf object in the html page.
I'm using the method PercentLoaded(), the code is working fine in IE and not working in Firefox.
I print the percent and in IE and see 0, 20, 30....100%
In Firefox I see only 0 and then 100%.
Why the method can't get all the values.
Do you have any idea, how I can get the percent loaded of an swf object.

<script>
function waitUntilLoaded() 
{
	// get the movie in diferent way in IE/FF
	var testMovie = isIE ? window.document.testMovie : document.testMovie;	
	alert(testMovie.PercentLoaded());
	
	if(testMovie.PercentLoaded() == 100)
		return;
	else
		setTimeout('waitUntilLoaded()',10);  
}

waitUntilLoaded();
</script>

My understanding is that PercentLoaded is IE specific. Why aren't you doing what most flash videos do, and display the percent loaded actually in the movie?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.