Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 223
  • Last Modified:

Layer organization

Hello,

What is the way to organize many layers in order that when your mouse is over the first one it becomes on the first plan and when your mouse is over the second one, the first layer become on the backside and the second one on the first plan... and so on fot the remainig layers...
Thanks in advance...
0
yotsse
Asked:
yotsse
1 Solution
 
blue-genieCommented:
Hi there. What you're refering to is levels rather than layers. Layers are what's in your timeline and these cannnot be switched at run time, however you can assign various components such as movieclips, buttons etc to various levels and using code you can arrange them according to your own needs.

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

the above code is a very simple example, that when the mouse rolls over the movieclip where the code is attached, the movieclip will be sent to level100.

instead of specifying the level, you can also refer to another movieclip, then those 2 movieclips will swap their respective levels.

0
 
yotsseAuthor Commented:
Thanks very much... That's what I needed...
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now