views:

598

answers:

2

I load a swf into a movie clip and have several problems with it:

blah_mc.loadMovie("my.swf");

blah_mc.stop(); // doesn't work
trace(blah_mc.getBytesLoaded()); // always returns zero even though the clip plays

These problems persist even after the clip is completely loaded.

I need to be able to control playback of the loaded movie and tell what percent it is loaded.

A: 

getBytesLoaded() never really worked for me in AS2 either (the AS3 version was better-behaved). The solution is called MovieClipLoader; check the language reference.

David Seiler
Unfortunately I only have Flash 8.
superjoe30
But MovieClipLoader is AS2 and it works great.
superjoe30
A: 

Are you running the stop() etc right after the loadMovie like that? It's probably way too soon to get a sensible result if you are. Set up an interval to give it a little space, or look at using one of those MovieClipLoader classes. If you are not doing that, then I don't think I have enough context to help.

Andrew
I clarified the question ^^
superjoe30