Games Achievements My Kong Sign In

Comments for Shootorial #1

« Back to Shootorial #1

Bray21

Mar. 21, 2009

Under rating threshold (show) this is what mostly got me started for my love of flash programming <3

+ - !

(0)

anusol

Mar. 21, 2009

Under rating threshold (show) blackapex - you need the virtual keycodes. Look at this example: if( Key.isDown(01) ) that will do event if mouse is pressed. Mouse has VKC of 01. search google for list of virtual keycodes and you'll find all these values e.g. P=80

+ - !

(0)

BlackApex

Mar. 20, 2009

Under rating threshold (show) Does anyone know how to make the controls into WSAD? I do if( Key.isDown(Key.D) ) and i get an error that says W S A D are not properties.

+ - !

(0)

gamer3d

Mar. 18, 2009

Under rating threshold (show) I already learned this from a game called "Roblox"

+ - !

(0)

shitface41

Mar. 15, 2009

Under rating threshold (show) Sorry for multiple posts, no edit button. Seems it doesn't matter about the .as file ending with a '}' so to me it just looks like it might be a bit random if it works or not.

+ - !

(0)

shitface41

Mar. 15, 2009

Under rating threshold (show) Actually i don't know what flash is doing. Just ran my script again after changing nothing and again it wouldn't move. Closed flash, re-opened the files and ran it and then it worked. Is there some sort of problem with CS4?

+ - !

(0)

shitface41

Mar. 15, 2009

Under rating threshold (show) Was having trouble with the ship not moving for me in CS4. Finally found out the problem.... It seems flash is case sensitive so 'ship' and 'Ship' are treated differently. Make sure then that you type everything EXACTLY as it is in the tut. Class names, file names, etc. Everything. One more important thing that i (finally) figured out is that the .as files have to end with the final '}'. If you end with a blank line the script won't work. Hope this helps ppl out :) Good luck Perhaps these things should be mentioned in the tutorial as it seems to me flash's actionscript can be very picky.

+ - !

(0)

oorreeoooss

Mar. 15, 2009

Under rating threshold (show) thanksthat helped alot its just that i have 1 question, where would you get all the sprites and stuff?

+ - !

(0)

Matiel_Migite

Mar. 15, 2009

Under rating threshold (show) I have CS4 and it dosen't work!!!! You need CS3. Yes i did click ActionScript2.0!!!!!!!!!!!!!

+ - !

(0)

Craetions

Mar. 14, 2009

Under rating threshold (show) Lol, and make sure you ppl are using ActionScript 2! AS3 is coded differently!

+ - !

(0)

Supersummer

Mar. 14, 2009

Under rating threshold (show) First of all, you have to save the actionscript file as Ship.as and name the movieclip's class Ship. Also, just do what the errors say to do. And, you have to double check your coding to see that it is exactly the same as kongregates other than the indents

+ - !

(0)

flashzonHZ

Mar. 13, 2009

Under rating threshold (show) Line 1: The class 'Ship' needs to be defined in a file whose relative path is 'Ship.as'. class Ship extends MovieClip Total ActionScript Errors: 1 Reported Errors: 1 what do i do???

+ - !

(0)

Vaargo_Blight

Mar. 13, 2009

Under rating threshold (show) Is anyone using 'FlashDevolper 3.0'? --- I couldn't get the CS3 trial for some reason so I got some free software (yes I created an account on the adobe site!)

+ - !

(0)

deleteduser

Mar. 13, 2009

Under rating threshold (show) im finding alot of things wrong with this tut, sorry kong, i have cs4 trial though so it might make a difference..

+ - !

(0)

sora1818

Mar. 13, 2009

Under rating threshold (show) what do you do when the ship wont move in cs4 and in compiler errors is says "class ship needs to be defined....."?

+ - !

(0)

salamandras

Mar. 13, 2009

Under rating threshold (show) I need some help please... My code is the exact same as in page 11, but the ship always moves from left to right no matter what i do! Help would be greatly appreciated, Thanks

+ - !

(0)

Supersummer

Mar. 12, 2009

Under rating threshold (show) Lol you also need to make sure you dan't accidentaly go from 0 to tutorial 2. I did.

+ - !

(0)

quiet_chaos

Mar. 11, 2009

Under rating threshold (show) thanks yourock, that did help!

+ - !

(0)

deleteduser

Mar. 09, 2009

Under rating threshold (show) EVERYONE WHO SAYS THE SHIP WON'T MOVE go back to the fla file. right click Ship in the library and go to linkage. UNCHECK EXPORT IN FIRST FRAME. if you test it again it should work. Hope this helps...

+ - !

(0)

ChiliMonkey

Mar. 08, 2009

Under rating threshold (show) - and actionscript file with same name as ship. Hope this helps...

+ - !

(0)

ChiliMonkey

Mar. 08, 2009

Under rating threshold (show) Mooseey, both files must be saved in same directory.

+ - !

(0)

Mooseeeeey

Mar. 07, 2009

Under rating threshold (show) I need help. Whenever I try testing it says in compiler errors "The class or interface 'Ship' could not be loaded." All the ship class is right(I checked 3 times)the ship movie clip has all the right stuff(name,identifier,class)are all set to ship. Im using cs4 help?

+ - !

(0)

Kralis

Mar. 07, 2009

Under rating threshold (show) To download you have to right-click and press "Open in new tab," dunno why it doesn't work otherwise. :O

+ - !

(0)

quisuke

Mar. 06, 2009

Under rating threshold (show) can't seem to download the ship graphic - so if ur like me i suggest just quickly drawing a ship instead.

+ - !

(0)

felibaudino

Mar. 06, 2009

Under rating threshold (show) please help i have the same code se the one demonstrated in page 11 but my ship stills quiet it doesnt move

+ - !

(0)

deleteduser

Mar. 05, 2009

Under rating threshold (show) I just started picking up flash again after many years off since I last used it (Flash 3). This tutorial (and the subsequent 7 as well) are hands down the best programming tutorial i've EVER seen. In addition, as of March 5, 2009, I got all the tutorials to work exactly as advertised using CS4 so to those who are having troubles, try FOLLOWING THE DIRECTIONS. 5/5. Favorited. Terry S

+ - !

(0)

deleteduser

Mar. 03, 2009

Under rating threshold (show) cs4 looks different, but the same stuff is all still there. Just look at stuff and it isn't that hard to figure out.

+ - !

(0)

deleteduser

Mar. 02, 2009

Under rating threshold (show) nice tutorial very helpfull

+ - !

(0)

deleteduser

Mar. 01, 2009

Under rating threshold (show) when i press "click here to download..." it doesnt do anything

+ - !

(0)

Courtyard20

Feb. 28, 2009

Under rating threshold (show) I know what to do now!After each time you change something in the script you save it and yes everything has to be the same name, for me its ship1 next time it will be different but YES I GOT IT!!Good luck fellow developers

+ - !

(0)

Courtyard20

Feb. 28, 2009

Under rating threshold (show) *sigh* i downloaded cs4 it didnt work, downloaded cs3 and got up to the actionscript. I put in the codes according to how its supose to look untill the function code. It started looking different, and when i tryed it, it didnt work and i tryed making it look like its supose to and it still didnt work. Need help bad pleasee :D.

+ - !

(0)

eregon9999

Feb. 27, 2009

Under rating threshold (show) heater, have you first made the flash(named the ship Ship) and then done the AS named Ship and then published it i by mestake published halfway through and it didnt work, did this and then it did

+ - !

(0)

Tomash667

Feb. 26, 2009

Under rating threshold (show) Darkkenny - there is, but not in recommended

+ - !

(0)

deleteduser

Feb. 25, 2009

Under rating threshold (show) is it me, or is shootorial #2 missing

+ - !

(0)

deleteduser

Feb. 24, 2009

Under rating threshold (show) same here heater nothing is happening... Maybe cause i'm using cs4...

+ - !

(0)

deleteduser

Feb. 24, 2009

Under rating threshold (show) ok i got that...how do u create a text file?

+ - !

(0)

deleteduser

Feb. 24, 2009

Under rating threshold (show) i need help...where do you create a fla file? and where do i get the ship from?

+ - !

(0)

shadowx247

Feb. 23, 2009

Under rating threshold (show) part of: Class ship extends MovieClip var velocity; function onLoad() { var velocity=10 } is completely useless in cs4

+ - !

(0)

shadowx247

Feb. 23, 2009

Under rating threshold (show) for cs4 the code should be : onClipEvent(load) { function onEnterFrame() { if(Key.isDown(Key.RIGHT)) { _x=_x+10 } if(Key.isDown(Key.LEFT)) { _x=_x-10 } if(Key.isDown(Key.UP)) { _y=_y-10 } if(Key.isDown(Key.DOWN)) { _y=_y+10 } } }

+ - !

(0)

shadowx247

Feb. 23, 2009

Under rating threshold (show) nvm i made it work

+ - !

(0)

shadowx247

Feb. 23, 2009

Under rating threshold (show) i got my actionscript 2 file with right syntax but the ship wont move can somebody help

+ - !

(0)

ryalane

Feb. 18, 2009

Under rating threshold (show) um it says on my thing Ship not ship and it works.. weird

+ - !

(0)

ryalane

Feb. 18, 2009

Under rating threshold (show) ty med... its working now and i didnt change anything...

+ - !

(0)

1ashl

Feb. 17, 2009

Under rating threshold (show) gah!! i can only get my ship to move to the right... can anyone help?

+ - !

(0)

deleteduser

Feb. 16, 2009

Under rating threshold (show) It says It should fly across the screen but Nothings happening??

+ - !

(0)

deleteduser

Feb. 16, 2009

Under rating threshold (show) @ryalane and FluffyPker Check and make sure your symbol, class declaration and class file are named the same and referenced the same. For example if your class file is named "ship.as" your class declaration must be "ship" and not "Ship", the same is true with your symbol. Thats what I think is screwing you up, but I may be wrong! Hope this help.

+ - !

(0)

Lordkronos

Feb. 16, 2009

Under rating threshold (show) Thanks Neosano. I did what you said, then just selected the white background and deleted it. Thanks a lot.

+ - !

(0)

deleteduser

Feb. 16, 2009

Under rating threshold (show) LordKronos.. You need to make the background transparent at the start.

+ - !

(0)

deleteduser

Feb. 16, 2009

Under rating threshold (show) Lordkronos, Emmmmmm.. Not sure.. Here's some random solution: Select your bitmap, Modify/Bitmap/Trace bitmap.

+ - !

(0)

Lordkronos

Feb. 15, 2009

Under rating threshold (show) I've created my own ship and saved it as a .png. I've already imported it into my movie and converted it into a movie clip, but the background isn't transparent. Does anyone know how I can change the background from white to transparent? Help would be greatly appreciated.

+ - !

(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