0 Replies Latest reply on Nov 16, 2006 5:20 AM by Newsgroup_User

    mouse events in class file

    Level 7
      Hi

      I am writing my first class file and am having trouble using any mouse
      events like onpress etc.

      ive tried the following:

      private function loadThumbs():Void {
      getPath().mcThumbs["mcThumb"+getThumbID()].onPress = function() {
      trace("hello");
      }
      }

      and
      private function thumbOnPress(evtObj:Object) {
      trace("hello");
      }
      private function loadThumbs():Void {
      getPath().mcThumbs["mcThumb"+getThumbID()].addEventListener("click",
      thumbOnPress);
      }

      but neither work, any help or advice is appreciated!

      Cheers

      Shaun