Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

set swapDepths with incremental values

Status
Not open for further replies.

frozenpeas

Technical User
Sep 13, 2001
893
CA
Is there a way to use swapDepths to step something through various levels... like up a level, up a level, up a level, etc?

Also, is there a way to test what level something is on? frozenpeas
 
for (var i = 2; i>-1; i--) {
myclip.swapdepths(i);
trace(myclip.getdepth());
}

ought to work
 
I had just found getDepth after I posted. Gotta love that.

Thanks. :) frozenpeas
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top