-
Senior Member
How can I set the layer order, or maybe level of buttons that overlap to be on top?
Hey all I have this little menu, with some simple animated buttons on it that pop out when you roll over them the problem is I want what ever image is rolled over to be on top of everything else, right now they just stay under the other buttons according to what layer they are on.
Is there a way to like set the level or something of a button on mouse over?
thanks, here is the link to what I have so far.
http://www.glamourdog.com/flash/gd01.htm
-
Hi,
You will need to use MCs with the buttons inside them and use the SwapDepth action.
For a tutorial, check this out:
http://www.pigtailpundits.com/tutorial_main.htm
Look for Bringing MCs in front
Hope that helps
-
Senior Member
Hey thanks ,
That kinda worked, here's what I have now.. I put all my buttons on one layer,
I selected them each, hit f8 to each and made them into Movie clips.
now, everything works fine so far, I added the following code to each of the MC's
[code]
on (press, rollOver) {
_root.zclothing.swapDepths(1);
_root.zclothing.Play();
}
code]
this actually works, but the problem is now when I add this code, the buttons animation doesnt play?
If you (or anyone) feels like taking a look at it, here's the .fla?
www.bestguttercleaning.com/gd01.fla
thanks again.
-
what I would do is this...
Place each button in an MC, and give each MC an instance name. (Just select button, hit F8)
then add the following code to each BUTTON:
on (press, rollOver) {
_root.accessories.swapDepths(2);
_root.bedding.swapDepths(1);
_root.carriers.swapDepths(1);
_root.clothing.swapDepths(1);
_root.collars.swapDepths(1);
}
I've given each MC an instance name above to show you what to do.
Add the same code to each MC, but modify the top line to indicate "swapdepth (2)" for the MC that contains the button. ie: the above example would be attached to the accessories button, which would sit inside "accessories" MC.
I tested this on your movie, and it works... shout if you need any further help
"If you can't beat em, join em"
Sorry no banner, Tripod deleted my account :-(
Can't be chewed to sort out another account :-)
-
Senior Member
thanks again neo, but again, this still doesnt work when I put that code on the buttons they do not animate on the roll over state of my buttons?
thanks again.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|