Under rating threshold (hideshow)
If your ship doesn't move, simply save the entire fla, close flash, then reload everything. Make sure you are saving Ship.as every time you add anything to it.
Under rating threshold (hideshow)
class Ship extends MovieClip
{
var velocity
function onLoad
{
velocity = 10
}
function onEnterFrame
{
_x += velocity;
}
}
wtf is wrong???
I don't get mah freekin ship to move
Under rating threshold (hideshow)
To do WASD, in place of Key.RIGHT, Key.DOWN, etc., put in the following numbers, and the numbers ONLY, for each corresponding key: A=65 D=68 W=87 S=83 Keep this alive with copy and paste please.
Under rating threshold (hideshow)
class Ship extends MovieClip
{
var velocity;
function onLoad()
{
velocity = 10;
}
function onEnterFrame()
{
if( Key.isDown(Key.RIGHT) )
{
_x = _x + velocity;
}
}
is my code
I get two erros conserning line 2 and 17
Ship.as line2 Statement block must be terminated by '}'
ship.as line 17 Syntax error.
Under rating threshold (hideshow)
to fix alot of peoples problems when you change it into a symbol remember to hit "advanced" and export for actionscript
Under rating threshold (hideshow)
Here are some free video tutorials on Flash: Flash CS3 Professional Essential Training (non-programming): http://movielibrary.lynda.com/html/modPage.asp?ID=353 ActionScript 3.0 in Flash CS3 Professional Essential Training: http://movielibrary.lynda.com/html/modPage.asp?ID=423 I know the last one is AS3.0 but Lynda.com's AS2.0 doesn't have very many free videos while this one does.
Under rating threshold (hideshow)
if the class or interface cant be loaded u have to save the picture of your ship in the same folder as the class and the .fla file. also you have to name the class and flash file the same thing and it should work...
Under rating threshold (hideshow)
To do WASD, in place of Key.RIGHT, Key.DOWN, etc., put in the following numbers, and the numbers ONLY, for each corresponding key:
A=65
D=68
W=87
S=83
Keep this alive with a c&p
Under rating threshold (hideshow)
Every time i try to convert to symbol it keeps sayin "You must specify a unique Identifier to export or import this symbol" What do i do??? P.s in step 4
Under rating threshold (hideshow)
i think i've found the problem. u must save the .fla file after step 2; create a new folder and put it in; then save the .as file straight after step 5; put this in the new folder also;
ps make sure the png file is in the new foldr as well
Under rating threshold (hideshow)
Thanks for the info. is there a compilation of the types of variables and stuff, somewhere? Or, is there any way to download the shootorials
Under rating threshold (hideshow)
All,
Be sure to use ActionScript 2 if you're following along with this tutorial in CS4. It does NOT function properly in AS3, it needs some additional code.
Under rating threshold (hideshow)
My ship finally moved, make sure you make a folder and put the .fla, .as and .png files (ALL NAMED "Ship" or the same thing) and the .fla and .as files SAVED!
Under rating threshold (hideshow)
For everybody having trouble with step 9, try these two things:
1. Make sure that both the Ship.png and the Ship.as are saved in the same directory.
2. Click on a blank area of each and resave them.
Under rating threshold (hideshow)
every time i test the moovie it doesnt fly and i get the same erroe every time
it says: The class or interface 'Ship' could not be loaded.
Under rating threshold (hideshow)
hoe to put a function to a key that is released?
e.g to perform a jump. how do you do to make the Symbol fall after releasing the Up key? Oo
Under rating threshold (hideshow)
It's hard to read the text in monochrome with the background so strong. Add color for contrast or drop down the opacity, because it ain't workin'.
Under rating threshold (hideshow)
Is true there are some mistakes on the code, at least is what I think cuz I struggle to work it out, but is also true that you learn more about the code looking for the mistake and testing by trial-error how does it works!!