calibanter
January 25th, 2003, 04:31 PM
I have a main swf that loads 6 movies. And I know how to stack movies in levels and how to target different levels from wherever the user may be. But the trouble is the level/movie on top has to visually overlap the level/movie underneath. And this has to happen dynamically because, say my main movie points to A, B, C, D, E, and F. If I go to B from F, I need to see part of F until I see B. So if I tell Main to open ABCDEF on 1 that works fine. But I can't simply tell A to open B on level 2 because ABCDEF needs to stack on top of the former ABCDEF. Does that make sense? I've been living this for five days and it hardly makes sense to me.
Take my word for it, ABCDE & F need to overlap in a way where I can't just set their levels as one higher than the next.
Well, I've nearly had it a few times using a variety of solutions. And I think I have the right solution now, I just don't know how to say something in actionscript speak. This is what I've got going on:
on (release) {
// do I have to unload what is alread in level 1??
myCurrent Level = (_level);
myCurrentLevel.swapDepths(-1);
//whether this is level 1 or level 2
// push it down one level
// and load the new swf over top
loadMovieNum("contact.swf", 2);
}
In my mind this works. It checks to see what my current level is (because it could be level 1 or level 2) and uses Swap Depth to push the current movie down one level and will always put the new swf on the level above it. The thing is, I don't know how to ask Flash to trace what the current level is. I can't find this information anywhere.
Anybody know?
Besides that, anybody know whether this is the wrong idea or not?
Thanks.
Take my word for it, ABCDE & F need to overlap in a way where I can't just set their levels as one higher than the next.
Well, I've nearly had it a few times using a variety of solutions. And I think I have the right solution now, I just don't know how to say something in actionscript speak. This is what I've got going on:
on (release) {
// do I have to unload what is alread in level 1??
myCurrent Level = (_level);
myCurrentLevel.swapDepths(-1);
//whether this is level 1 or level 2
// push it down one level
// and load the new swf over top
loadMovieNum("contact.swf", 2);
}
In my mind this works. It checks to see what my current level is (because it could be level 1 or level 2) and uses Swap Depth to push the current movie down one level and will always put the new swf on the level above it. The thing is, I don't know how to ask Flash to trace what the current level is. I can't find this information anywhere.
Anybody know?
Besides that, anybody know whether this is the wrong idea or not?
Thanks.