PDA

View Full Version : preloader in an external movie



andr.in
May 22nd, 2003, 09:25 AM
I can't believe I didn't knwo this before!..or maybe I did...! then I forgot

I load a movie

_root.sub.loadMovie("subm.swf", 1);

How do I make a preloader into the loaded movie

_root.getBytesTotal(); and _root.getBytesLoaded won't work now cuz _root.is nt the main timeline of the main movie!
What am I supposed to use?
_level1. ? _root.sub. ? _parent. ?

I'm so embarrassed! :blush:

SteveD
May 22nd, 2003, 09:40 AM
errrrrr.... try getBytesTotal or in other words leave _root, if that doesn't work ( which it should) try :
this.getBytesTotal

SteveD

andr.in
May 22nd, 2003, 09:56 AM
what if that actions is in a movieclip?

Jubba
May 22nd, 2003, 10:02 AM
this.getBytesTotal should work.

andr.in
May 22nd, 2003, 10:32 AM
noop! this won't work 4 me! But I firgured it out! I'll use _parent!

thx anyway! :)