2 Replies Latest reply on Mar 17, 2009 5:01 AM by Ned Murphy

    newbie: trouble creating an eventlister

    loadVariables Level 1
      actionscript 2.0

      This code below gives this compile error:
      The class or interface 'MouseEvent' could not be loaded.

      function btnTest_Click(eventObject:MouseEvent)
      {
      trace("Test");
      }

      btnTest.addEventListener(MouseEvent.CLICK,btnTest_Click);

      any suggestions?