PDA

View Full Version : .swapDepths not working.



zpewish
September 7th, 2003, 01:54 PM
I really need help so I am going to be as detailed as possible. I have a movie clip I am using to display a group of logos i created which are also movie clips. when the user clicks on each logo the logos are supposed to enlarge except, that because of the way the layers are stacked, one of the enlarged logos displays underneath the smaller one. so, someone suggested i use swapDepths. But nothing happens. it won't even enlarge. here's the script:

on (release) {
this.swapDepths("manard");
gotoAndPlay("oataup");
}

"oataup" is a frame label, obviously and "manard" is the name of the movie clip instance I'm trying to swap with. I've never used the swapDepths method before so I'm hoping I screwed something simple up. Please help! I been screwing around with this website for two weeks now.

thoriphes
September 7th, 2003, 02:11 PM
try this for the swapDepth...
[AS]on (release) {
this.swapDepths(manard);
gotoAndPlay("oataup");
}[/code]

zpewish
September 7th, 2003, 02:13 PM
thanks for your response. i did it. it didn't work. is there any other way that i can accomplish what I'm trying to do? I'm out of ideas. i see this all the time on flash sites it doesn't seem like it should be a big deal.

:alien:

zpewish
September 7th, 2003, 02:30 PM
i am attching the .fla. hopefully you guys can help.

ricferr
February 16th, 2005, 10:59 PM
Hi, there's a tutorial on this site that might be of some use to you: changing stacking order.

On the other hand, I could use some help in a somehow similar problem. I'm using the idea of the previously mentioned tutorial to build several boxes, each corresponding to a menu item. In short, a kind of a cascade menu in which only the lowest box (on the front layer) would be fully visible. However, the top title of each of the other boxes should be visible as well.

any suggestions would be apreciated

thanks

regards