help with buttons
hi
im making a shop in my game and i have a button telling my ship to change its frame but i get this error:
Scene 1, Layer 'as', Frame 3, Line 7 1061: Call to a possibly undefined method gotoAndStop through a reference with static type Class.
and here is the code for it:
stop();
import flash.display.MovieClip;
import flash.events.MouseEvent;
alien3.addEventListener(MouseEvent.MOUSE_DOWN, mouse1);
function mouse1(e:MouseEvent):void {
Ship.gotoAndStop(2);
}
any help.
