Under rating threshold (hideshow)
What I missed, was on page 4, where It tells you to add linkage to your class file, and I bet everyone else missed it too, because it was an important part that I considered useless text that I could breeze through, because I thought I knew everything!
Under rating threshold (hideshow)
Everyone on step 9+ before you test your script make sure it is exactly the same as the tutorial then save it then test it. I hope this helps.
Under rating threshold (hideshow)
lol i also got a problem at page 9 but turns out its easily solved.......... the class ship wasnt saved cuz we were not told specifically to save it before just save it as ship.fla and try testing the movie again
hope it helps
Under rating threshold (hideshow)
did anyone have to buy quicktime player 7 or somthing to save the picture of the ship? if not tell me how because i dont want to pay $40!
Under rating threshold (hideshow)
omg, i was stuk on page no 9 for hours!
and then i read ninjano1's comment
totally saved me!
btw, all the people having the problem with class or interface couldn't be loaded, try ninjano1's comment
Under rating threshold (hideshow)
i'm having the same problem with superuber27, when i test it it says "the class or interface "Ship" could not be loaded." what must we do?
Under rating threshold (hideshow)
Uhhmmm... I'm trying this in CS5 and when I test the movie, (Control -> Test Movie -> In Flash Professional/Test), I don't see anything at all, just the white testing box. Maybe it has something to do with page 5 and the fact I don't fully, of just don't, understand which directory ''The same directory as your FLA file is saved in'' is.
Under rating threshold (hideshow)
Wow, after page 4 step 2 the word ''Ship'' sounds very odd and weird... i'm sorry just con this comment to hell, couldnt let myself.. 5/5!
Under rating threshold (hideshow)
I've followed all the comment advice for page 9 but it still gives me the message "the class or interface "Ship" could not be loaded." i am using cs5 though. i don't know if it makes a difference.
Under rating threshold (hideshow)
@ 3nd0fw0r1d: the actual MovieClip name needs to be the same as the class name otherwise it won't work? but they're seperate properties... if what you're saying is true then this flash program is ridiculous
Under rating threshold (hideshow)
Ok, i was stuck on page 9 fora a long time, and couldn't find any answer as to why my ship stood still, but then i realized that my class was named Ship, but my code was saved as ship.as. So yeah, you need to match the casing as well. Hope this helps someone.
Under rating threshold (hideshow)
Another thing I may add, is that I have windows vista. Any other PC should work but the tutorial is in a mac format. So my comments should help the people using PC's.
Under rating threshold (hideshow)
Part 2: Fill in the needed information, and remember to name it the same as it is in your code. Another reminder is that the compiler error tab will show too. This means that if you made some incorrect syntax errors in your code, you will be able to see where and what mistake you have made. This is located right by your time line. There should be a tab, if you don't have this tab then I guess you did it wrong. I hope this helped people out, I rushed through this tutorial making mistakes everywhere.
Under rating threshold (hideshow)
One big problem that I run into was one that everyone frequently asked to correct. Yes, you need to save each file the same but when I did this I ran into the same movement problem. If you take a look on page 4 on this tutorial, in the middle of the page there will be a paragraph. This is the convert symbol paragraph. Well once you get to the convert symbol window, there is a advanced drop down. It is right underneath the Library root link. Click that and it is all there. Now on page 4 of the tutorial click on the picture(the middle one). I am posting part 2.
Under rating threshold (hideshow)
im using flash mx, im on step 2 and i have no idea how to make a ship clas, should i worry? is it a big deal? and can i continue using flash mx?
Under rating threshold (hideshow)
Awesome tutorial. I've been doing alot of diffrent coding in my time(Lua,C++,Expression2,Batch and more) And this kind of coding reminds me mostly about LuA and Expression2.
And for those who don't know what Expression2 is, it's a coding ADDON to a game i play.
Good luck to you all
P.S: Try looking at some lua tutorials if you don't get this, it might clear up some things.
P.S.S: I recommand you to search "Humblesnurp" on youtube. He teaches the most (Expression2 - Lua).
Thanks for reading! ;)
Under rating threshold (hideshow)
this has to be. the greatest tutorial out there. so clear. all the necessary resources are there. its just great. i have learnt more from this tutorial then about 4 youtube tutorials and hundreds of written ones.
Under rating threshold (hideshow)
EVERY1 WHO CANT GET THE SHIP TO FLY: first make sure your filenames and object name and class name are the same and your files are saved just like the tutorial says... THEN go (in CS5) down to the timeline menu to the right of where it says "TIMELINE" to the "COMPILER ERROR" menu. Click on it. if there are any compiler errors (like you forgot a parenthesis after a function, or a semicolon after a line of code) the SHIP WONT MOVE. congratulations. Welcome to the world of compilers ;)
Under rating threshold (hideshow)
When I test my ships dosen't move! Theres no error message the class is exactly like the one in the pic but it just dosen't move!!!!!!
Under rating threshold (hideshow)
they use adobe flash CS3 for these tutorials, but i have macromedia flash professional 8.
everything's worked so far, the only difference i noticed is that i don't have all that color/align/info/transform at the top right of my script page.
should i be able to do the rest of the shootorials no problem?
Under rating threshold (hideshow)
This tutorial was a waste of time because... THIS DOESNT WORK!!!
Here is the 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;
}
{
Even thou that is there it doesnt work...
Under rating threshold (hideshow)
If you use Cs4, Make sure you use Actionscript 2.0, And when you want to save the .fla file, Choose 'Save as...' And choose the file to be a 'Flash CS3 Document (*.fla)'
Under rating threshold (hideshow)
If you are using any later CS's it still will work all you have to do is make sure that you are using action scripting 2 and it will work.
Under rating threshold (hideshow)
Um please respond fast. I followed the instructions and when i got to the part where it is supposed to move when you hit the right arrow key, it moved without me hitting the arrow. and then i went to the step where the ship is not supposed to move and changed it to be like that and the ship still moved! when it did not even have the info to move! so PLEASE RESPOND FAST I WANT TO DO THIS! thank you.
Under rating threshold (hideshow)
Mac FTW! It's good to see that someone posts tutorials for those of us who want to learn how to code games and such, but have no knowledge and don't feel like 3 years of study. It's also cool to see this can be done on a Mac too.
Under rating threshold (hideshow)
When doing the tutorial, make sure you save the file the same name as the "class" name. Sample Line 1: "class Ship extends MovieClip {" you would save the file as "Ship".
Note: You cannot "test movie" unless your script files have been saved already.
Also Note: make sure the name of the actual MovieClip is the same as the class name.
2nd Note: Make sure when you start, you use "Flash File (ActionScript 2.0)"
Last Note: Read the tutorial carefully and click on the pictures to make them larger. If you get any errors, make sure your script looks like the tutorial's and that all script files have been saved.
P.S.: Make sure all Brackets "{" pair up with an end Bracket "}" somewhere in the script. The number of brackets and end brackets should be the same.
Under rating threshold (hideshow)
Can someone help me i did all steps and when i test movie adobe says : The file 'toplevel.as', which is required for typechecking ActionScript 2.0, could not be found. Please make sure the directory '$(LocalData)/Classes' is listed in the global classpath of the ActionScript Preferences. Anyone know what to do ?