PDA

View Full Version : If movie is loaded



lumsbr
March 18th, 2003, 03:46 PM
Hi,

I want to verify if the movie.swf, that was loaded by a empty mc target, is already loaded. Something like this:

if (target.mymovie.isLoaded) {
do something;
}
else {
target.mymovie.loadMovie("movie.swf");
}

Of course, isLoaded was invented by me (I think).

Thks!

Marz
March 18th, 2003, 05:15 PM
if(_root.myMC.getBytesTotal() == _root.myMC.getBytesLoaded())

Use that line of code ;) It sees if your movieclip is equal in loading destinations. Gets the total bytes of the file.. And gte the total bytes loaded up so far by the file and compares them to each other.

ajok
March 19th, 2003, 04:56 AM
hi,

playamarz is right, and there is one more way (the way you think) that is in MX you create a loder object. the same way you load XML.

Regards,
ajoK
ajok@indiatimes.com