Added: 2 years ago
From: oppcell
Views: 114,601
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (325)

Sign In or Sign Up now to post a comment!
  • TY :)

  • finally! easy to follow,

  • could you send the ship object file to help me practice with actionscript. I had trouble with using a .jpg file then modifying it to an object. My object would not move. Please message me the download. Thanks!

  • Great!

  • Thanks! Made my first Actionscript, I cannot tell you how much of a boss I feel like.

  • Subscribed... U have earned my time, petty squall. U have my thanks and congratulations.

  • Comment removed

  • @pluwo4 okay so basically what I found out now is that i forgot the capital E in (Event.ENTER_FRAME,xxx) and that seems to be most common mistake out there, so that's most likely ur problem too i guess, best of luck tho

  • Haha with the after you had made the mpuseX command you read my mind :D

  • lol... when I was first learning HTML I made the header to the first page I wrote say "Hello World" I didn't realize it was a common practice.

  • i have searched for AS tutorials everywhere in the internet,

    but i can feel easy to learn on;y on ur's

    expecting more tuts from u sir

    thanq...

  • *****PRESS THE ARROW KEYS ,UP AND RIGHT AT THE SAME TIME!!!

    YOU SHOULD NOW BE PLAYING THE SNAKE GAME!!!*****

    THUMBS UP SO PEOPLE CAN SEE!!

  • Very helpful stuff man, thanks for that :)

  • Comment removed

  • Great stuff learned a lot! *subscribes*

  • Hi, I'm currently working in flash cs5.5 and I am encountering a problem: When I look under the properties tab there is no option that allows me to give objects "instance names". Do have any idea why this might be? Anyone?

  • @bepie09 I use CS5.5. Make sure you click on the movie clip while it's on the stage. That should bring up the instance name bar under Properties.

  • Make more man!

  • Lol for a second there I thought he said "YOU SEE MY SHIT FLYIN ACROSS"!!!

  • Nice Tutorial.....I'm impressed!!!!!!

  • Great tutorial!

  • how can i replace the cursor with just the image, instead of having both the cursor and the image??

  • @teolog29 Mouse.hide()

  • I use ship.x = (mouse.x - ship.x)/3 (not in flash, in shockwave) but it looks very cool because it slows down as it gets near the mouse :)

  • Very good tutorial. I've learned more with you rather than my college teacher, just with this. Thank you a lot ;)

  • Thank you :)

  • No "Hello World" as a beginning tutorial is just refreshing.

    I just learned something cool at my first day with Actionscript.

    I'm so pumped up now. Thanks!

  • This is when you truly know how to teach. These You-Tutors cannot teach correctly. Good job

  • what do i type to get the spaceship to fly faster (4 pixels per frame)?

  • @LeadBeIIy i Would type "ship_b.x +=4;" instead of ++ (++ is hust a faster way of saying +=1 witch is just another way of saying ship_b.x = ship_b.x +1; :)

  • @FlyasS82 Thanks!

  • Hi, thank you. This is my as3 tutorial. I came from as2 background.

  • "ship_b.x+1 is equivalent to ship_b.x"

    as a comp sci student I must say... LOL

  • you're left handed

  • amazing tutorials, that explain things like I don't know what I'm doing...because surprise...I don't! thank you so much!

  • haha smack smack smack no nonsense tutorial yet everything we need is there = winner!

    I finally decided to convert from AS2 to AS3 and this looks promising :)

    Thanx for the tut!

  • Doesent work for me, get two errors saying line 6 and line 10 is wrong.

    Also, it adds

    "import flash.events.Event;" at line 1. WHAY?

  • @EymTheStrongest maybe its your spacing? i dunno

  • this is interesting, but I knew all of this :D

  • thank you!

    

  • I can't find the "Love button", so you'll have to settle for like.

  • Brilliant... thank you my friend!

  • Does not work for me, get the following error:

    Scene 1, Layer 'as3', Frame 1, Line 1 1120: Access of undefined property event.

  • @pluwo4 Me too!! And I've tried it over and over again. My code says exactly the same as the tutorial, but I get the Access of undefined property error as well...

  • Comment removed

  • this is cool man

    

  • Great and very instructional work. Congrats and pls keep on this track.

  • Please, Please, Please do more of these!

  • This man is amazing! Thanks. Subbed.

  • nomo onenterflash(.)com :-(

  • I wish I could add a dolar in my pocket by doing pocket.x++;

  • @JRodriguez609 That would add more empty pockets instead of dollars.. :D

  • Wow man, you rock! thanks a lot! really now i dont fell like an idiot in class yeah!

    lol

  • Thanks for sharing. Excellent tutorial. I already feel like I can do something fancy. :D

  • 08:30 damn that is a good way to say it.

  • You are soo good!!! Thanks alot! I have been studying AS at uni for a few weeks and have learned nothing. That is what the tutorials should be like. Awesome!!!

  • Thanks, this is great. =)

  • FINALLY i good tutorial! Every other vid isnt a tutorial, its just a "type what i type" and they don't explain ANYTHING! You explain how it all works and everyting, its great :) thanks alot man!

  • Did he put the code in the line with Content or the AS3 line? I could only get the Action to open in the Content line so what was the AS3 for?

  • No current frame to draw into is the error message I get. So this tutorial must skip over many things as I have no idea how to rectify this error.

  • var.x = mouseX;

    var.y = mouseY;

    Nice CoDE !!! hahaha

  • This is really2 helpful. Thx man~ :)

  • I have a copy of "Learning actionscript 3.0"

    I have to learn chapters 2 - 5 because I'm skipping the first year at school.

    Yeah it explains that it's 'CaseSensitive' and stuff like that...but what the hell am I actually doing!? I DONT GET IT

  • I just came here to learn some syntax, and just wanted to say your video is really interesting and smooth. I'll be watching the rest now! :)

  • thank you so much

  • Wow dude good job! I came in knowing nothing about action script and you explained this in a way that I totally understood good job. Liked and subscribed!

  • Very helpful! I´ll check out more and i just subscribed.

    I have no experience at all and my school wants me to learn this stuff in about 2 weeks... :')

  • @Thompsongast school??? then why my teacher doesn't teach flash??

  • @TheMegalucian

    you go to an Academy of Game Development too?

  • @Thompsongast wtf?

  • @shimattaranma

    yes I was thinking exactly the same :')

  • This is great!

  • Wow...I know that I'll look like a fool saying this but it kinda looks easy...I can somehow imagine now how most movies are built like some of the movies I saw on Newgrounds.

    But who am I to talk, I can't even find a good program to get started with ActionScript. -.- Has anyone any programs you could recommend for noobs like me?

  • @L337playing Adobe Flash CS5

  • @MartinAntonsenHere

    Your code didnt work for me but after editing it to:

    addEventListener(Event.ENTER_F­RAME,shipmovement);

    function shipmovement(e:Event):void{ ship_b.x=mouseX; ship_b.z=mouseY;

    }

    it worked

    Thanks though :D

  • cant i use the timeline for that??

  • They are called "Reserved" words. Which means that flash has already assigned parameters for that word in order to complete certain tasks.

    Every programming language uses them.

  • I can't even get action script to open

  • i did exactly step by step what you showed up here.... my item never moved at all.. =(

  • @arkchanger ok nvm i just worked it out... u forgot to mention that your symbol had been just a saved file without any movement or motion tween at all =) gjoob man

  • Thanks for this video. I have done a bunch of game dev before, but I have to learn in a hurry, and because I am drunk, your pacing is perfect.

  • @JunkerJames lol

  • Thanks, dude. I've seen a million of these, and this one's the best for a very beginner.

  • DUDE YOU ARE AWESOME! thanx a lot!!!

  • At last! Someone I can understand....no GobbldyGook!

  • this does nothing to me.

    I had to create var for AC3 and then to use the moving code, but then I have two objects on stage, one standing still and other moving.

    this is how my code looks like

    import flash.events.Event;

    var hero:ship_b=new ship_b();

    addChild(hero);

    addEventListener(Event.ENTER_F­RAME,shipgo);

    function shipgo(e:Event):void{ hero.x++; }

  • cool video! Thank you!

  • you are EPIC!!!!

  • Incredibly Helpful!

  • Sick tutorial bro. Really enjoyed it =)

  • This is the way every programmer should explain things, God damn all those code douche bags that think everyone knows actionscript for a fact. Keep it up man.

  • it keeps giving this error:

    1120: Access of undefined property ship_b. ship_b.x = mouseX;

  • @xistoxs uhhh you typed ship_b twice. I think it should be "ship_b.x = mouseX;" without the quotes.

  • great... thanks a lot dude!

  • Thank you a lot. I had some trouble but I worked things around and it all came out.

  • great tutorial !!

  • addEventListener(Event.ENTER_F­RAME,shipgo)

    function shipgo(e:Event):void{ ship_b.x=mouseX; ship_b.y=mouseY;

    }

    Mouse.hide()

    Custom Curser ;)

  • OK, i'm totally new to this, as you will soon see, but..

    What program do I use?

    /n00b

  • @samedelsten1 lol he's using Adobe Flash Professional (that's the name of MY program) but he's creating the movement with "Actionscripting" you have to get "Flash CS3" at least to follow his tutorial ALL of those programs could be found on Adobe's website if you're really interested you should start there but this tutorial is about coding so you should learn how to use "FLASH" before you start with the coding but i hope that helps and good luck

  • THANK YOU!!!!!!!!!!!!! This it the best tutorial ive ever seen!

  • It's so easy now that you explained it :D Thank you SO much!

  • I am 15 and i Do it!!!!!!! Hahahah

  • hiiii im happy to see this tutorial... i learned a lot..

    i dunt hav touch wth any languages even this z gud to understand... thnxxxxx

  • After I've written the actionscript, how do I preview my thing?

  • @thewhitebrazilian Ctrl and Enter on Window on mac i think it's Command and Enter

  • this was the simplest, most clear tutorial I've ever seen. Good job, i couldn't understand other people they wouldn't explain the codes, they simple just write them, I first thought that as3 was complicated, but you've changed my mind.

  • I was working on this kind of thing without the professional solution and instead using flashdevelop as3 with flexsdk and I did it all but there is absolutely no, "add to library" on the pic after it's added to the lib folder, and the tutorial claims there is the option there and the pic will become blue once it works right. It is complete bull. Wondering if you had anyidea what was going on stre amh ead.com /embe dd ing-imag es/

  • i ordered a few books on actionscript 3 and was wondering if you had anything to say about books by professional developers versus tutorials and information found online(to be fair, also by professionals, or should be)

  • great, easy and clear way. thanks

  • BTW, a symbol has to be a movie clip or a button to be able to give the instance a name in the properties window. Dont you love those little tid bits that no one tells you and you pull your hair out for hours wondering why something isnt working?!?

  • Hello,

    Do you know how to make a function that show an object at certain time? For example, I would like an arrow to show at the 59 second and disappear at 1:10. Thank you.

  • Man I'm learning Actionscript in school now and it's so sad cause they dont allow student to use codes those they didnt teach from lessons :( anyways ur stuffs are so freaking cool i love you

  • This is cool thanks. I've just begun messing around with action scripts. Thing I don't understand is how are you supposed to know when to do what. Like when to capitalise when to use full stops, semicolons or colons and underscores etc

  • @dusk1234567890 I feel the same way. When do we use what script? Is there a master list somewhere?

    oppcell I love your teaching style! This tut was so easy to follow along with and understand! Thanks for posting.

  • Thank You for creating this video. Extremely easy to understand. Thank you again!

  • I wanna have your baby! MY GOD finally someone who can teach!! Thank you so much. ;o)

  • Screw "Hello World", this is real programming right here haha!

  • Gonna keep watching your vids.. Great tutorial

  • Every video he is saying libary, it's library! BTW great tuts.

  • im pretty new at programming, im learning C# and acitonscript now, this is a great tutorial, ty !

  • gosh this is really helpful! thank you very much ! :D

  • HOW CAN I DOWNLOAD AS!?!?!?!??!?

  • @hrrobloxfan You cant its adobe flash Cs5

  • xD why is AS 3.0 so much harder than 2.0 :( :P

  • Please Please PLEEAASE make more action script 3.0 tutorials!!

  • sweet! awesome!

  • Awesome thank you!

  • thanks men :) it helps a lot. . . godbless

  • omfg I hate you,how did you rename the shitshipshitship where did you get those fuckin properties omfg die please die

  • Comment removed

  • Smoov.

  • I would sub but your voice is annoying and you studder...

  • Should this work with CS4?

  • I imported my own .png and followed all the steps. Nothing happened! Help!! 

  • oh that's awesome. i love the way you give us the dummy version of the language, like the dollar example. awesome.

  • Love the dollar example.

    Great job, it's clear! You are explaining every attribute you are making, they are rare in tutorial-land, so superawesome great job!

  • thanks, for the tutorial

    i grew interest in AS3 after this tutorial

  • MouseX and MouseY is an action in GML (Game Maker Lanuage) too, so I see that this really makes sense.

    Thanks for the tutorial! Now I got some basics to test out!

  • nice tutorial

  • This is a great tutorial!

  • one question from a developer: there is only 1 frame on the project as shown in the stage earlier. therefore logically the Event.EnterFrame should only trigger once. or is it a flash-thing where the event will always trigger 24 times per second even though there is no change of the frames?

  • @TrAnScEnD3nT Yeah, the first frame is played over and over again based on what fps you have set unless you tell the frame to stop codewise.

  • u subbed :3

  • How can I do this in FlashDevelop?

  • Awsome your so good at explaining this... !!!!!!!!!

    and I did not know that ++ worked in as3 as well.

  • I subscribed!

  • I got a good idea of how to use AS2 but when I started trying to do AS3 I was immediately lost and frustrated. But thanks to Youtube and cool people, I know have a better understanding.

    Thank you so much for this tutorial!

  • 0:06 lol ok, mario.

  • This was easy to modify to make 3d also, if you modify the code to this: addEventListener(Event.ENTER_F­RAME,shipmovement);

    function shipmovement(e:Event):void{ ship.x=mouseX ship.z=mouseY;

    }

    Thumbs up so others can see this... :)

  • @MartinAntonsenHere "ship.z". isn 't it "ship.y" ?

  • @535370 No ship.z is how far away it is so technically he is making it 3Dimensional.

  • @535370 No, instead of using the mouses y axis to control the ships y axis i use the mouses y axis to control the ship z axis, sorry for my bad English, really tired right now.

  • @MartinAntonsenHere This doesn't work cause my compiler says that z isn't a property (it doesn't light up blue)

  • @ewanwii This depends on your version of Flash used to program AS3. Only Flash version CS4 onwards supports the z-axis property and true 3D positioning.

  • @alwinlook oh right, cause i'm using cs3...

  • @ewanwii Which version do you use? If its an older version like flash 8, it might not even support AS3.

  • @MartinAntonsenHere as i said before, i'm using creative suite 3

  • @ewanwii I dont know mouch about creative suite but if i have understood it correctly you have Flash CS3 but i don`t know why it doesnt work. I`m zorry.

  • is the syntax for action script similar to that of C, PHP or JavaScript?

  • @jeradluva

    exept for the buit in classes its almost identical to javascript i dont know about C but all of them are very simmilat they have the same condition loops variables etc..

  • nice tutorial ..

  • Very nice tutorial! Thanks a lot!

  • Very nice tutorial! Thanks a lot!

  • thanks, that was really helpful. but as3 is so much more complicated than as2 isn't ?

  • very very cool. i like it. The way you teach AS 3.0 is impressive. I think u r a real genuis

  • very nice. very nice. thanks from another newbie!

  • hehe i guessed the Y part on my own and then when i resumed the video i saw you do it XD great minds think alike

  • How do i stop a TIMER? i want to stop it on click a I want to a add a button to start again

    ActionScript Code:

    var nextImagen:Timer = new Timer (5000);

    nextImagen.addEventListener (TimerEvent.TIMER, playNext);

    nextImagen.start();

    function playNext(event:TimerEvent):voi­d

    { nextFrame();

    }

  • TY 4 helping, you'r a good teacher )

  • Excellent video, I want to create some flash games too but i didn't know where to starn in AS.

  • I am having a problem with AS3, whenever I add listeners on a different layer. They tend to not work at all. Even on the same layer. I am trying to do a simple listener to the MOUSE_MOVE which will execute a function that moves something around, rather then the ENTER_FRAME like he used in this tutorial...

  • Thanks man! This was awesome! It made me smile because now I can get good grades in flash codeing at school. I love you man!