Hey this is my first post in a forum ever, and I don’t know if I will post this question right, but I am working on a simple menu system in AS3 that consists of some movie clips to move when moused over.
But when I run my code I get an error that I don’t understand
1061: Call to a possibly undefined method addEventListener through a reference with static type Class.
This is my code that I am using, could anyone enlighten me as to what this error means? :h:
package {
import flash.display.*;
import flash.events.*;
public class blueBox extends MovieClip{
public function blueBox () {
blueBox.addEventListener(MouseEvent.MOUSE_OVER, menuMove);
}
public function menuMove (event:MouseEvent):void {
this.x++;
}
}
}
- Confused???
- boomStick