set OBJECT to heighest depth in as3

If you new to Flash Actionscript programming, Start from here...

set OBJECT to heighest depth in as3

Postby Ashish on Thu Jul 19, 2012 7:24 pm

If there are many objects there, the On click of the object put the clicked object at top depth -


CLICKED_OBJECT.parent.setChildIndex(CLICKED_OBJECT, CLICKED_OBJECT.parent.numChildren-1);

Bookmark and Share
Ashish
 
Posts: 153
Joined: Tue Oct 14, 2008 1:49 pm

Return to Actionscript 2.0 and 3.0 for beginners

Who is online

Users browsing this forum: No registered users and 1 guest