4 Replies Latest reply on Nov 5, 2011 5:17 AM by Peter Celuch

    Simple question

    TOverturf Level 1

      This code:


      import flash.events.MouseEvent;

      import flash.events.Event;



      stage.addEventListener(MouseEvent.CLICK, something);



      function something(MouseEvent:Event):void



                stage.removeEventListener(MouseEvent.CLICK, something);




      returns this error:


      Scene 1, Layer 'Layer 1', Frame 1, Line 91119: Access of possibly undefined property CLICK through a reference with static type flash.events:Event.