4 Replies Latest reply on Aug 30, 2009 5:53 PM by laxmidi

    addChild question in AS3

    laxmidi

      This is an easy question.

       

      I can't figure out how to set "relativeTo" and "position" when using addChild in AS3. I understand how to do it in MXML.

       

      So, how would I write this in AS3:

       

            <mx:AddChild relativeTo="{v1}">

            <mx:Button id="button1"/>
        </mx:AddChild>

       

       

      Thank you.

       

      -Laxmidi