Enlarging pictures & hiding other layers

Any advice?
I have 5 simple buttons, the down state of the button is the picture enlargement full screen so when user clicks & holds they can look at the picture.
BUT–one tinsey problem, is there a way to hide the other button layers that are there because the other buttons end up showing on top of the picture that is clicked on if in a higher layer…
EX: User clicks on layer 2 button to enlarge pic, layer 3 4 & 5 button show up on top of the pic.

If it is not too difficult please advice.
I am not very actionscript oriented…
If pretty difficult to understand—please let me know as I can always scrap plan A & go to plan B…(start over)

Thanks for your time
Janet

You can use something called “swapDepth” for this. On your button apply a this script to it.

on (rollOver) {
	this.swapDepths(999);
}

Hmmm…sounds easy enough, But I must be doing something wrong, because it is not bring the picture up on top on the other buttons.

I am attaching this script to each button right?

I click on the button & the open up the action panel & paste in in correct?

Please advise.

Thanks
Janet

Got it! Almost…I think at least got a close to what I want!

I read the tutorial on SwapDepth on this website…Now all I have to figure out is how to get my interface on top & I’ll be set!

Thank You.
Janet

You’re welcome, I’m glad you searched around and read the tutorial for swapDepths. =)