Possible to loadMovie always on top?

Hey all -

I’m doing a site for a band in which each of the sections (e.g., booking, shows, bio, etc…) has its own variation on a picture that sits right in the middle of the main nav/menu part of the movie. The idea is that a user will click on the button for ‘booking,’ for example, and the ‘booking’ picture will fade in OVER the main nav picture. Following that, when ‘shows’ is clicked, the ‘shows’ picture will fade in OVER the ‘booking’ picture (or whatever was there before it). Using loadMovie & putting all the sections on different levels only works when going up on the levels (i.e, level 4 loads over level 3, but level 2 does not load over level 4, etc.) Any thoughts out there? Is there a way to have set the Level = (current Level+1) or something? …to make the incoming loadMovie .swf always be on top of the one below it? Any help would be greatly appreciated! Thanks much! - Timmer<:}

[SIZE=1]don´t know how to do it, or even if it is possible[/SIZE]:-\

maybe if you create a variable with 1 as value … then every time you load another movie add 1 to the variable

something like:

frame 1

level = 1

frame 2

yourButton.onRelease = function() {
loadMovie(bla bla bla, level)
level ++
}

might be possible using variables to keep track of which clip is higher and the swapDepths command.

Hey Kax -

That sounds exactly like what I want to do. But I must be screwing up the ActionScript, in that when I threw what you gave as an example into the movie, I got the whole “this ActionScript contains errors…” bit & thus couldn’t test it. Just curious, did you get that to work for you (or even try it?)? If so, I’d be most curious as to how your ActionScript looked (or even just a helpful hint would be grreat :wink:

Thanks for the reply (you too Sorcerer!),
T

na … I didn’t test it

you should load your movies into a target mc … that way the movie will always be replaced with the new one

in fact … I haven’t used levels in my movies
I prefer loading into target :smirk:

anyway … what’s the code you’re using to load the movie?

Kax -

Thanks for the reply. While I agree that using a target with loadMovie is preferable, it’s just not jivin’ in this situation. i.e., the incoming swf immediately replaces the swf already in the target, whereas I was hoping to have the incoming swf come in on top of/OVER the existing swf (I’ve got fade-ins at the start of each little swf, & was looking to have them fade in on top of each other, etc.).

You can check it out at:
http://www.drawkward.com/new/work/gaffney/gaffney.html

If you’re there, click on Contact, watch the effect, then click on Booking & watch the effect. Then click on Contact again, & watch it get screwed up :slight_smile:
Basically, booking.swf is on a higher level than contact.swf, so it comes in on top of it, but it doesn’t work the other way around.

Any thoughts?

Thanks again,
T

ok then …

I hope this little example helps