@Vegard20 its 600x300 that's perfect for me, and all the sprites fit into it, got a problem with that? by the way, If I made it taller, it would just mess up gameplay.
@bhattarai333 I know how to fix your problems, First, the Background.as file must be where your .fla file and Ship.as file are! Second, your background code should be:
class Background extends MovieClip
{
function onEnterFrame()
{
_x -= 1;
if(_x < -2110)
{
_x = 0;
}
}
}
the "Statement block must be terminated by '}'" error comes because you didnt put a '}' at the end of the code. and the "The class 'Background' needs to be defined in a file whose relative path is 'Background.as'" message comes because the Background.as isn't in the same place as the .fla file or in the code you put ackground instead of Background!
AND you get the "The class or interface 'Backround' could not be loaded." error because in the Background Movie Clip Properties, you put the Linkage Identifier: Backround and the Class: Backround instead of Background.
There you go!
@virtualcrush I know what you have done wrong, you must have named the class for Ship: ship.as or not named it at all.
Start all over from scratch and when your at Page 5. after you put the code, press Ctrl+S then name it Ship.as and save it where your .fla file is.
IF That doesnt work, Go to the library, right click on Ship and click Properties, make sure 'Export for Actionscript' and 'Export in first frame' are checked, ALSO make sure in The Identifier and Class text field, it says 'Ship' with out the marks.
There you go, that should work.