5 Replies Latest reply on Mar 26, 2010 9:49 AM by Sherwette.Mansour

    Access a component in an mxml file from a different mxml file

    Sherwette.Mansour

      Hi,

       

      I want to access a component in an mxml file 1 such as this one  <mx:Image id="img" width="101" height="200" source="{product.image}"/> using the

      id

       

      from the actionscript function from a different mxml file 2

       

      public function init():void

               {         

             HERE.addEventListener( MouseEvent.MOUSE_DOWN, beginDrag );    

               }

       

      so i can make it dragable, Please help me  in this if u can urgently!!!!