Results 1 to 2 of 2

Thread: trace child index number?

  1. #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 07:38 AM.

  2. #2
    TheCanadian's Avatar
    10,302
    posts
    Noo doot aboot it, eh?
    Proud Montanadian
    We tolerate living and breathing. And niches.

    Name Brand Watches

    Maybe getTimer() or TweenMax is the answer to your problem . . .

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Home About kirupa.com Meet the Moderators Advertise

 Link to Us

 Credits

Copyright 1999 - 2012