Jump to content
Search Community

Level of and object

JidoJoe test
Moderator Tag

Recommended Posts

by using addChild() on the back movieclip you will put it on the top of the display list

 

here is a very basic implementation

 

 

TweenMax.to(front_mc, 2, {y:"100", repeat:-1, yoyo:true});
TweenMax.to(back_mc, 2, {x:"100", repeat:-1, yoyo:true});

front_mc.addEventListener(MouseEvent.CLICK, sendBack);

function sendBack(e:MouseEvent):void{
//move the back to the front
addChild(back_mc);
}

 

you can change the depths of the items being tweened and the tweens don't miss a beat.

 

there are many methods available to re-sort object depths in the display list.

read: http://www.republicofcode.com/tutorials ... splaylist/

 

or just search for "as3 display list change depths"

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...