Under rating threshold (hideshow)
Guys help my coding is the same as there's but when I test the movie and push the arrowkeys the ship just stays in the top left corner! HELP
Under rating threshold (hideshow)
I got to the point where I test the .swf file, but its simply not moving at all. I have compared it to the one on here, bt theres absoltely no difference. PLEASE SOMEONE HELP ME!!!!!!
Under rating threshold (hideshow)
also it says it cant find my 'Ship"
the codes are all right my movie clip is called Ship my class is also Ship..any help plz
Under rating threshold (hideshow)
i was having the same problem with the ship not moving, the reason was simple a capital S is needed in Ship when creating the saves / names needed, as that is whats used in the code if you copy it in. simples :D
Under rating threshold (hideshow)
I had a problem getting my ship to move, till I added the extra } needed at the bottom of the .as file. Just put the screenshot at the bottom of page 11 next to your .as file and compare them to see what your file is missing.
Under rating threshold (hideshow)
So i ran into trouble of the ship not moving. I figure out what the problem was. Its basically forgetting to save your action script file .as once you updated it with the new function. And don't forget the the end braces at the end.
Under rating threshold (hideshow)
The class 'Ship' needs to be defined in a file whose relative path is 'Ship.as'.
this is the error I'm getting, and i made a file called flash game and names the fla. game and the .as ship. what is going wrong here?
Under rating threshold (hideshow)
people say check and re-check and i have but i cannot find a problem. All my code is right and my saves are all right, i have checked all my brackets, capitalization and stuff but when i press test movie nothing happens. Any help?
Under rating threshold (hideshow)
Im curious, does anyone know any good beginner tutorials like this for Actionscript 3.0?
Im not super new to programming, im taking java classes as well.
Send me a PM if you can. :)
Under rating threshold (hideshow)
You have to Linkage your movie clips in the library. Right click, properties, add for actionscript checkbox, tick it.
Under rating threshold (hideshow)
hey guys this is for help with people having the problem i had. my problem: i did everything the tut said and when i tested it it didnt work. you really have to make sure your file types are saved as game.fla and ship.as or else the script will not recognize the files
Under rating threshold (hideshow)
for the life of me i cannot get this darn ship to move! i have got it to a point where it doesn't say either "**Error** Symbol=ship, layer=Layer 1, frame=1:Line 1: The class or interface 'ship' could not be loaded. Total ActionScript Errors: 1 Reported Errors: 1" or have any problems with my brackets, but it still won't move and there is apparently no error! This is my code: class Ship extends MovieClip { var velocity; function onLoad() { velocity = 10; } function onEnterFrame() { if( Key.isDown(Key.RIGHT) ) { _x = _x + velocity; } if( Key.isDown(Key.LEFT) ) { _x = _x - velocity; } if( Key.isDown(Key.UP) ) { _y = _y - velocity; } if( Key.isDown(Key.DOWN) ) { _y = _y + velocity; } } }
Under rating threshold (hideshow)
for the life of me i cannot get this darn ship to move! i have got it to a point where it doesn't say either "**Error** Symbol=ship, layer=Layer 1, frame=1:Line 1: The class or interface 'ship' could not be loaded. Total ActionScript Errors: 1 Reported Errors: 1" or have any problems with my brackets, but it still won't move and there is apparently no error! This is my code:
class Ship extends MovieClip
{
var velocity;
function onLoad()
{
velocity = 10;
}
function onEnterFrame()
{
if( Key.isDown(Key.RIGHT) )
{
_x = _x + velocity;
}
if( Key.isDown(Key.LEFT) )
{
_x = _x - velocity;
}
if( Key.isDown(Key.UP) )
{
_y = _y - velocity;
}
if( Key.isDown(Key.DOWN) )
{
_y = _y + velocity;
}
}
}
Under rating threshold (hideshow)
Sure it works on a mac, why wouldn't it? Re-check everything in your files including semicolons, brackets AND capitalisation, as actionscript IS case sensitive. I'm sure you'll get it eventually:)
Under rating threshold (hideshow)
i dont think it works for mac. it doesn't work for me at least. i get like 8 errors when i only have the onenterframe _x = _x + 10 or seomething like that.