I have a problem.Whenever I try to use any code to the format of:var ourShip:Ship = new Ship();stage.addChild(ourShip);it doesn't work and displays the error messages1046: Type was not found or was not compile time constant: Ship.1108: Call to a possibly undefined method Ship.I am using Flash CS5 and AS3. If anyone could help I would be very greatful.
You need class linkage. When you convert to symbol go to advanced and give it a class name. Like the symbol is Ship and the class is ShipPewThen your code would be..var _Ship = new ShipPew(); addChild(_Ship);
You must be logged in to post a reply!