Movieclip depth problem
loc1-loc12 movieclips on stage, , seem on top. after this.setchildindex(movieclip(e.currenttarget), (this.numchildren - 1)) don't why....
public function mousedown(e:mouseevent)
{
if (loc==false)
{
targetarray.push(loc1,loc2,loc3,loc4,loc5,loc6,loc7,loc8,loc9,loc10,l oc11,loc12);
loc = true;
}
e.currenttarget.startdrag();
this.setchildindex(movieclip(e.currenttarget), (this.numchildren - 1))
}
indexes/depths managed lowest highest, higher index object appears on other objects @ lower indexes. line of code questioning placing object @ hioghest index.... this.numchildren-1.
More discussions in ActionScript 3
adobe
Comments
Post a Comment