Games Achievements My Kong Sign In

Comments for Shootorial #1

« Back to Shootorial #1

deleteduser

Nov. 02, 2008

Under rating threshold (show) Copied EXACTLY but I get: Line 1: The class 'Ship' needs to be defined in a file whose relative path is 'Ship.as'. When trying to run the fla

+ - !

(0)

Sten123

Nov. 02, 2008

Under rating threshold (show) Hmm, I've got a problem when converting to a movie clip. I type in Name: Ship, Identifier: Ship, Class: Ship, press 'Ok' and get the error: "The name "Ship" is already taken. Please use a different name." Ok, so I know it says 'Please use a different name', but the Shootorial doesnt, and if so, should I just Name: Ship1 or something? (I'm feeling pretty stupid here)

+ - !

(0)

deleteduser

Nov. 01, 2008

Under rating threshold (show) This is QUITE annoying

+ - !

(0)

deleteduser

Nov. 01, 2008

Under rating threshold (show) Beph, I tried that. It caused a syntax error. -_-

+ - !

(0)

Bephwyn

Nov. 01, 2008

Under rating threshold (show) Problem with the shootorial: Class Ship extends MovieClip { } THAT'S WRONG! If your identifier is Ship, it goes like this. Class ship extends MovieClip { }

+ - !

(0)

khezoow327

Nov. 01, 2008

Under rating threshold (show) mi ship cannot move... i need resolve this problem :/

+ - !

(0)

gatorules

Nov. 01, 2008

Under rating threshold (show) I am very confused as well. I keep getting an error saying that it can't find the ship class or interface yet both of my files are in the same folder. Any help is appreciated.

+ - !

(0)

deleteduser

Nov. 01, 2008

Under rating threshold (show) so has anyone figured out why we keep getting the same error reading from the .as code when we test our movie i have checked everything i could possibly think of and its still giving same error. please help if anyone has the answer.

+ - !

(0)

ShadowLordDark

Nov. 01, 2008

Under rating threshold (show) i cant make it move!!!!!

+ - !

(0)

petrie3759

Nov. 01, 2008

Under rating threshold (show) help! Its copied down exactly how it says in the tutorial and it still wont move!

+ - !

(0)

deleteduser

Oct. 31, 2008

Under rating threshold (show) check your {}. There's also an option to realign the codes. Do that and see what happens. Seriously check the. I had that and I fixed it that way. Not sure about you. Let them auto position the codes and markers {}. If you space em sometimes that's the error.

+ - !

(0)

GreatS

Oct. 31, 2008

Under rating threshold (show) Just a small note to most of you who have problems with this, remember that most programming related issues are case sensitive, so ONLY USE SMALL LETTERS, till somebody teaches you the full set of rules.

+ - !

(0)

Bephwyn

Oct. 31, 2008

Under rating threshold (show) Metaformer, I have the same problem...

+ - !

(0)

deleteduser

Oct. 31, 2008

Under rating threshold (show) My ship won't move.Theres no error but it just wont move.Help please!!!

+ - !

(0)

deleteduser

Oct. 31, 2008

Under rating threshold (show) I have the code copied exactly down by hand and I checked everything. The .fla and .as are in the same folder. Every time I test it gives me the same error. There must be some other reason it can't find the class or interface Ship.

+ - !

(0)

AjaxNeron

Oct. 31, 2008

Under rating threshold (show) It always has one error when I test it. -.-

+ - !

(0)

deleteduser

Oct. 30, 2008

Under rating threshold (show) but whats the serial of flash cs3 windows

+ - !

(-1)

paku7

Oct. 30, 2008

Under rating threshold (show) make sure Ship.fla and Ship.as is saved into the same folder and put this code into ship.as: 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; } } }

+ - !

(0)

RedTurtleGames

Oct. 30, 2008

Under rating threshold (show) Is there a place we can download (as a pdf or something) all 6 tutorials?

+ - !

(0)

deleteduser

Oct. 30, 2008

Under rating threshold (show) WOW sorry, I just found out what was wrong... I'm kinda stupid... hehe...

+ - !

(0)

deleteduser

Oct. 30, 2008

Under rating threshold (show) It's weird... I'm in the page 10, but when the Flash compile the swf to test it, it says: "The same member name may not be repeated more than once" an then says: function onEnterFrame()... I guess that mean The program belives that the onEnterFrame function is not actually a function... I't s Kind of confusing, I'll apreciate you help...

+ - !

(0)

BilliamII

Oct. 30, 2008

Under rating threshold (show) I think this, and the other shootorials, are very helpful. Loads of people make the same mistake, but they are all being stupid about it and asking for help at teh first sign of trouble. Use a bit of common sense and trial and error to solve a problem.

+ - !

(0)

skyblader333

Oct. 30, 2008

Under rating threshold (show) crap words in the <> brackets dont appear... any way, u have to change them to whatever name u converted the symbol to, and save it as that name .as.

+ - !

(0)

skyblader333

Oct. 30, 2008

Under rating threshold (show) follow the tutorial CAREFULLY, alot of you have the same problem, and I got it too, I figured it out. You have to save the action script as and also change the copied code, the class . And you have to save them together.

+ - !

(0)

skyblader333

Oct. 30, 2008

Under rating threshold (show) as 3 doesnt work wit hthe above tutorial, so it wont move. if the ship class cant be found, its either u converted it to symbol and made a change down there, and then with the action script, u copied his, and then forgot to change the ship. Or, u did not save the action script as "ship.as" or did not put it with the .fla file

+ - !

(0)

swatolo

Oct. 29, 2008

Under rating threshold (show) hint caps count!!!

+ - !

(0)

kezerb

Oct. 29, 2008

Under rating threshold (show) This doesn't work. When I try to run the clip it says that it cannot find the ship class. I have tried it with action script 3 too and it just doesn't move although it can find the class

+ - !

(0)

deleteduser

Oct. 29, 2008

Under rating threshold (show) For all those asking for help: if you can't get past this simple tutorial 1, you may want to quit now. To DoomAngel: what good is posting code going to do? The guy who made the move posted in there. It's the same stuff. If you cant copy and paste that code, you won't be able to copy and paste code that I post, either.

+ - !

(0)

deleteduser

Oct. 29, 2008

Under rating threshold (show) SCREW THIS MAN!!

+ - !

(0)

deleteduser

Oct. 29, 2008

Under rating threshold (show) The class or interface 'Ship' could not be loaded. WHY DOES THIS THING KEEP ON HAPPENING!!!

+ - !

(0)

deleteduser

Oct. 29, 2008

Under rating threshold (show) The class or interface 'Ship' could not be loaded. WTF!?? I don't understand why this is happening! HELP ME!!

+ - !

(0)

Caza38

Oct. 29, 2008

Under rating threshold (show) game.fla

+ - !

(0)

deleteduser

Oct. 28, 2008

Under rating threshold (show) what is the fml file called?

+ - !

(0)

deleteduser

Oct. 28, 2008

Under rating threshold (show) i cant even get it to move accross the screen

+ - !

(0)

spartan651

Oct. 28, 2008

Under rating threshold (show) could someone just right the code here in comments so i can copy and paste it when i do it it dosent move across

+ - !

(0)

deleteduser

Oct. 28, 2008

Under rating threshold (show) @ Spukky12, don't you have to name them the same, when I didn't id didnt work to, but when you both name them "ship" it does works.

+ - !

(0)

pasa4233

Oct. 28, 2008

Under rating threshold (show) this work only on CS3?

+ - !

(0)

deleteduser

Oct. 27, 2008

Under rating threshold (show) I cant gett he ship to mvo with the arrows. The code is all in place and correct. Maybe its because, when i type new code, it goes to the left instead of into the propper function area. Oh, and when i test the mofe theres 2 ships instead of one, although only one moves. Please help me wit this.

+ - !

(0)

deleteduser

Oct. 27, 2008

Under rating threshold (show) i can't get the ship to move even though i typed it correctly and saved both files(.fal and .as). could it be it only works for mac?

+ - !

(0)

Spukky12

Oct. 27, 2008

Under rating threshold (show) Lol woot nvm figured it out :) I feel semi-smart

+ - !

(0)

Spukky12

Oct. 27, 2008

Under rating threshold (show) class Ship extends MovieClip { var velocity; function onLoad() { velocity = 10; } function onEnterFrame() { if( Key.isDown(Key.RIGHT) ) { _x = _x + velocity; } } ~~~~~~~~~~~~~~~~~~~~~~~~ Heres the code. It has two errors: 1)Ship.as, Line 2 Statement block must be terminated by '}' Source: '{' 2)Ship.as, Line 16 Syntax Error Source: '}' I see that the syntax error has a source that is the symbol needed to fix the first error. Still can't see what is wrong. Halp

+ - !

(0)

Spukky12

Oct. 27, 2008

Under rating threshold (show) I can't figure out why my ship won't move. Both my fla (KongTest.fla) and the actionscript file (Ship.as) are saved in the same file in a folder on my desktop. All the actionscript is done exactly as the tutorial says. Yet the ship never moved. Why?

+ - !

(0)

deleteduser

Oct. 27, 2008

Under rating threshold (show) When i add code, it just goes to the far left instead of into the brackets. I think this si the problem with controlling my ship. Oh, and when i do the test function (my ship flies fine) Theres another ship just above it. Please help with both these, i wanna make a game sooo much!

+ - !

(0)

pooandwee

Oct. 27, 2008

Under rating threshold (show) add this for acceleration class Ship extends MovieClip { var accel var topSpeed function onLoad() { accel = 1; topSpeed = 10; and add this under your existing movement controlls if( Key.isDown(Key.RIGHT) ){velocity+=accel} else if( Key.isDown(Key.LEFT) ){velocity+=accel} else if( Key.isDown(Key.UP) ){velocity+=accel} else if( Key.isDown(Key.DOWN) ){velocity+=accel} else {velocity = 0} make sure your velocity = 0 on load

+ - !

(0)

deleteduser

Oct. 27, 2008

Under rating threshold (show) blackmagic, you need to save the actionscript before testing it to get ti to move

+ - !

(0)

deleteduser

Oct. 27, 2008

Under rating threshold (show) i can't inatall it , i dont have admin rights to do so

+ - !

(0)

deleteduser

Oct. 26, 2008

Under rating threshold (show) class game extends movie clip {var awesomeness; function onLoad() {awesomeness=5/5} function onEnterFrame() {awesomeness +=1} } }

+ - !

(0)

BlackMagic16

Oct. 26, 2008

Under rating threshold (show) I was really liking it untill step 9 where it didnt move :( maybe i have to retry it again later.

+ - !

(0)

gardengnomes

Oct. 26, 2008

Under rating threshold (show) my test wont work wat did i do rong i typed everythin in right

+ - !

(0)

deleteduser

Oct. 26, 2008

Under rating threshold (show) Hey I have no flash experience at all and the thing worked for me . . .

+ - !

(0)

  • add a comment
Developers Players Support YouTube TikTok X (Twitter) LinkedIn
Join the conversation Join Discord
Terms of Service Privacy Policy Code of Conduct
© 2026 Kongregate