Results 1 to 2 of 2
Thread: trace child index number?
-
March 5th, 2012, 06:34 AM #1
trace child index number?
Hey guys I want to know the index number of the object when I clicked it..
trace(mc.getChildAt(0)) = display the object at the index 0 lets say the output is [object] button
now I want to reverse it..
when i click the object button
button.addEventListener(MouseEvent.CLICK, onClick)
function onClick(e:MouseEvent)
{
trace(e.currentTarget.????????)
//I want to trace what index number is that button, the output should be "0"
}Last edited by jeponkz; March 5th, 2012 at 06:38 AM.
-
March 5th, 2012, 07:12 AM #2Proud Montanadian
We tolerate living and breathing. And niches.
Name Brand Watches
Maybe getTimer() or TweenMax is the answer to your problem . . .

Reply With Quote

Bookmarks