Link to home
Start Free TrialLog in
Avatar of kzdown
kzdown

asked on

'send to back'/'bring to front' related question

does anyone know how to force an object (for example, named object1)
to go in the front(or  back) of other object (named object2)? In designtime
this can be done by pressing CTRL+arrow down (CTRL+arrow up) or from menu :
"Modify/Arrange/Bring to front" (Modify/Arrange/Send to back). i want to make
this action when button is pressed. therefor i think ActionScript cant be avoided.
Am I right? Is this possible? How?

Thanks in advance.
Avatar of LOBO
LOBO

This is how I would do it and it is very simple.

When the movie is stopped the object1 is behind the Object 2 on separate layers.

When the button is clicked the movie moves to the next frame and stops.

On this frame the two layers have new keyframes where object 1 is now on the layer above Object 2.

In other words they have swapped layers. The only actionscript  used is your regular go to next frame and stop.
ASKER CERTIFIED SOLUTION
Avatar of LOBO
LOBO

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial