Under rating threshold (hideshow)
Rukas, try class Ship extends MovieClip; you upper cased the "c" I'm pretty sure it has to be the right case. I did that too the first time I used CS3.
Under rating threshold (hideshow)
The name of this class, 'TextField.StyleSheet', conflicts with the name of another class that was loaded, 'TextField.StyleSheet'.
any good?
something is wrong?
Under rating threshold (hideshow)
I have one problem here, i got CS4, and I using ActionScript 2, like you said.
I put all de codes right, but when I try to play the game, appears the mensage "Sintax Error. Ship.as, Line 1. Class Ship extends MovieClip"
I think my codes is right. Anda i'm sure using ActionScript 2!!!!!!!!
Under rating threshold (hideshow)
never mind about ship movement. I didn't capitalize my S in ship. Still wondering if I can get all through these shootorials with the trial version of CS4, though? I have been saving as CS3 ... Will that help?
Under rating threshold (hideshow)
I am using the free 30 day version of CS4 to try this tutorial and the ship doesn't fly across the screen - it just sits there.
Is there a way for me to use the free trial version and still use this tutorial or will it not work out?
Under rating threshold (hideshow)
HELP! When I try to run the swf file, an error occurs saying that "The class or interface 'Ship' could not be loaded."
Under rating threshold (hideshow)
@ Brian, yes there is a difference. I recommend cs3, the shootorials use cs3, and eventually there are coding differences.
Under rating threshold (hideshow)
yes steindor i used action script 2.0 im telling you i have followed every direction to the letter. I just get those syntax error codes. its on the same lines as the opening and closing brace of the first command: class ships extends MovieClip
{ it gives me and error code on this brace and the last brace of the code
Under rating threshold (hideshow)
i got a program with the coding. Im using Flash Proffesion 8 cause i got it for christmas :D and i dont want to have to but/download another one so i can start making games. Anyways my problem is that i have copied the code exactly into my actionscript 2.0 and then it says syntax error Line 5 (function onLoad ()) says "class scripts may only define class or interface constructs"
any help please
Under rating threshold (hideshow)
i wrote my script as it says but it gives me this error message: The class or interface "ship" could not be loaded
Has any1 got any tips to solve this error
Under rating threshold (hideshow)
Oh yeach,I just completed first shootrial and it works :) I thought that scripting is way harder,but I will see it after a month I think :D
Under rating threshold (hideshow)
for some reason i cant download the source files from the first slide... can anyone help me? tell me where it is located or somthing. When i click it, it comes up and then disapears and makes the sound like a download has finsihed
Under rating threshold (hideshow)
I have the code written down just as the tutorial says. But when i go to test run the swf file. i get code errors on line 2 and 28. Line 2 says statment must be terminated by a "}" Line 28 say Syntax Error. Can anyone help me out please
Under rating threshold (hideshow)
(flame i can get u adobe flash cs4 for free just talk ) i need some help with the script because every time i stat the movie it wont move the ship
Under rating threshold (hideshow)
Adobe flash cs4 costs 600 bucks!!! Thats ridiculous! ill ask for it as a christmas present and tell my parents its educational. lol. It is educational in a way a guess!
Under rating threshold (hideshow)
Whoo I did it! Tips: 1. If you mess up restart the whole lot, and delete all the files you saved. It's easier than trying to figure out where you went wrong. 2. Even though it doesn't say so in the shootorial, save the fla file (the one with the ship picture) as ship.fla. Make sure you save the script file as ship.as in the same folder. 3. Don't capitalize the S in ship. Because I think it is just easier when you just spell it the same all the time. 4. Don't give up!
Under rating threshold (hideshow)
plz someone help me on page 5 Ive tryed everything that you guys have said so far but It dosnt give me the option to save ship.as as CS3 only ActionScript...
Under rating threshold (hideshow)
Do they have to be seen with each other or just in the same folder even if you cant see both of them at the same time... Because Ive Already saved both in the same folder but I cant seem to get both in the same one for some reason.
Under rating threshold (hideshow)
Why Cant I get both downloads to be in the same thing? I save them both to documents but I cant see the ones with red icons with my Ship.as
Under rating threshold (hideshow)
If anyone needs the full Ship.as code with arrow keys and WASD for movement here it is:
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;
}
if (Key.isDown(68)) {
_x = _x+velocity;
}
if (Key.isDown(65)) {
_x = _x-velocity;
}
if (Key.isDown(87)) {
_y = _y-velocity;
}
if (Key.isDown(83)) {
_y = _y+velocity;
}
}
}