PDA

View Full Version : troubles with loadMovie


KeyStorm
07-10-2002, 03:21 PM
Hi folks,
I got a big problem tryin' to load an independent swf onto my movie. To make it easier to understand there'll be Movie A and Movie B.
Movie B is going to be loaded on Movie A. There's no problem with that.
But I need to show some animations from Movie A while Movie B is loading, as if some animations of Movie A were in Movie B[B/]. The quesion is: how can I get the [B]getBytesLoaded() (and getBytesTotal()) from Movie B to be available at Movie A, so I can control the animation between both movies?
I have loaded Movie B on _root.Blank and put this MovieClip I've just told about on _level1 in order to be always visible. This MovieClip must know the downloading status from Movie B.
How do I refer to Movie B if it is on a MovieClip of Movie A? Which is the path to Movie B? :confused:

Ricod
07-10-2002, 03:28 PM
if u loaded it into _root.blank, then _root.blank is the path to it ... if u loaded it into _level1, _level1 would be the path to it.

KeyStorm
07-10-2002, 03:42 PM
then once loaded with a simple _root.Blank.getBytesLoaded() should be told the loaded from the Movie B, but it doesn't, it returns the getBytesLoaded from _root.Blank

KeyStorm
07-10-2002, 03:42 PM
and if I loaded it on _level1?

Ricod
07-10-2002, 03:48 PM
Well, did u try it ? Loading movie B into _level1 instead of a mc and then _level1.getBytesLoaded() ? I don't use that ... ever, so don't have a lot experience with the getBytesLoaded function ... but theoretically that should do it ...

KeyStorm
07-10-2002, 03:55 PM
yeah, ok
now I have to put the MC with the animations over level1. I thought I had made it, but now I have noticed that I hadn't.
If the MC Secc is on _root, to put it on level2 I have to do _root.Secc.swapDepths(2). But it seems not to work...
I didn't use levels ever, so I'm that kind of newbe :p

Ricod
07-10-2002, 04:00 PM
Hey don't sweat it ! I didn't knew about swapDepths until Jesse hit me with it !

Actually, swapDepths isn't applied to _levels I believe.

to load somthing into _level1, don't load it into a mc. Just the _level.

A _level is like a layer, but not visible ...

Did u take a look at the tutorial section ? There's a good one about paths ... way better than I can explain (I tend to leave things out I shouldn't or assume stuff that aren't so default)