HOME | DD

Published: 2008-06-01 23:28:02 +0000 UTC; Views: 7955; Favourites: 136; Downloads: 554
Redirect to original
Description
ok, so the major disclaimer is that the code in this tutorial is not great at all, it also isnt a good introduction to actionscript, this is a tutorial about scripting in flash. subtle I know, but I was really pissed off at how horrific other tutorials were, even this ghastly attempt is better.anyhoo, I cover basic key movement and collision detection.
and like I say, the code isnt great, its just to give you a taste of what it does, and to let you know it doesent have to be scary.
and just because I will have to say it sooner or later:
IF YOU REALLY WANT TO BE GOOD AT SOMETHING, READ THE REFERENCE FILES THAT COME WITH IT FIRST!
seriously, the people whe write the flash help are not retarded, they know their stuff and they write so begginers can understand it. learn to code first, THEN go looking for tutorials on how to code the stuff you want, be it games, dress ups, interfaces or whatever, your first step should always be the flash help
Related content
Comments: 51
ayame18 [2012-11-02 10:32:30 +0000 UTC]
Many thanks for the tutorial. Could it be applied to recent flash programs if I may ask?
👍: 0 ⏩: 1
Oddhatt In reply to ayame18 [2015-06-27 15:39:18 +0000 UTC]
yes it can, but make sure the actionscript settings are set to ActionScript2 ^u^
👍: 0 ⏩: 0
blazerconz [2010-10-21 06:46:13 +0000 UTC]
SOS! I used it on flash MX, and when i checked for errors there weren't any, but it still didn't work
👍: 0 ⏩: 1
SophieHoulden In reply to blazerconz [2010-10-21 08:07:59 +0000 UTC]
sorry, it's been so long since I've worked with flash I cant remember what the differences are between mx and cs3
👍: 0 ⏩: 0
evolvd-studios [2010-02-19 22:40:23 +0000 UTC]
Would you like to Join EvolvdStudios Online? Here you can share all your latest flash animations and games, as well as ask questions and watch our new tutorials that will help you on new animating tricks as well as actionscripting faqs. You can also access our newly created ANIMATED SPRITE DATABASE, Here you can download spritepacks from many famous characters, for example, sonic and mario. These are added weekly, but to enjoy all this, all you have to do is this:
CLIC ON THE CLUB BELOW, FIND THE JOIN NOW BUTTON, PRESS IT, AND VOILA!!! UR IN!
!!!JOIN NOW!!!
👍: 0 ⏩: 0
calaboom [2009-05-02 20:31:35 +0000 UTC]
ooo i love this tutorial!
but, i have adobe flash CS4, and the AS line 'onEnterFrame=function(){' wont work D:
it keeps coming up with an error, but all the other lines work.
any thoughts why?
👍: 0 ⏩: 1
SophieHoulden In reply to calaboom [2009-05-03 01:12:51 +0000 UTC]
thats because this tutorial is for actionscript 2 (which is now outdated) and you are probably using actionscript 3.
to get it to work when you start a new flash file make sure its actionscript 2, however I would reccomend you start with as3 and ignore this tutorial, sooner or later you will want to use AS3 and its less work if you just go for that now
👍: 0 ⏩: 1
calaboom In reply to SophieHoulden [2009-05-03 11:10:53 +0000 UTC]
yeah but i do use AS2 D:
i dont know if i'm just typing it out wrong or something, but its not working.
i'll use AS3 for now though, thanks
👍: 0 ⏩: 0
Lektadea [2009-03-15 02:02:21 +0000 UTC]
Hey! You are my savior! ToT
Im working on a flash game projekt and I've spent the whole day trying to figure out how to make a wall... T_T
thanks o/\o
👍: 0 ⏩: 0
Kagome-Loves-Kouga [2009-01-24 02:27:37 +0000 UTC]
um, I'm looking for a easy-to-use and get animation program, do you have any suggestions? like where to get one cheaply... the economy after all...
👍: 0 ⏩: 1
SophieHoulden In reply to Kagome-Loves-Kouga [2009-01-24 19:09:45 +0000 UTC]
easytoon is free and awesome
👍: 0 ⏩: 1
Kagome-Loves-Kouga In reply to SophieHoulden [2009-01-24 23:24:03 +0000 UTC]
thanks! I made a thingie...it's a first animation, and it's stick figures, but I tink it at least looks better than the one my friend made... it jumped all over the place...
👍: 0 ⏩: 0
evolvd-studios [2009-01-06 18:00:57 +0000 UTC]
dude, ur a genious. Any chance of you joining evolvd studios? We need an actionscript genious like u mate. None of us know nothing about it XD [link]
👍: 0 ⏩: 0
Jdude145 [2008-12-23 20:49:39 +0000 UTC]
cool, but you should make the code copy and pastable
👍: 0 ⏩: 0
cloudwindgate [2008-11-24 05:14:11 +0000 UTC]
thats an awesome loader and nice i learned a little that i hadent figured out yet
👍: 0 ⏩: 0
Stemoticon [2008-08-03 08:42:20 +0000 UTC]
Ok i was trying to do this tutorial, but even the onEnterFrame function doesnt work here?
I keep getting the error: Access of undefined property onEnterFrame
And i've typed exactly the same as you did:
onEnterFrame=function(){
player._X = player._X + 1;
}
Can you help me please
👍: 0 ⏩: 1
SophieHoulden In reply to Stemoticon [2008-08-03 10:03:33 +0000 UTC]
you are using actionscript 3.0 and the tutorial is for 2.0.
I'm going to be making video tutorials for alot of flash stuff including scripting and I'll be covering AS3 then
👍: 0 ⏩: 1
Stemoticon In reply to SophieHoulden [2008-08-03 10:49:38 +0000 UTC]
Ahh that's the problem XD
I was allready searching for what Actionscript you where using, but i saw you used Flash CS3, so i thought actionsscript 3 was the best..
But ill be awaiting those tutorials
👍: 0 ⏩: 0
SiloZen [2008-06-11 20:52:06 +0000 UTC]
Awesome but theres a problem.. when i added the code at first and pressed test movie it didnt go to the right..
And which A.S is this? 1.0 2.0 or 3.0?
👍: 0 ⏩: 1
SophieHoulden In reply to SiloZen [2008-06-11 21:39:37 +0000 UTC]
this is 2.0, but theres a 3.0 version of this tutorial on the way
👍: 0 ⏩: 0
GratefulHeartist [2008-06-04 17:53:23 +0000 UTC]
So, nice tutorial. The viewer would need to know a little of the basics like what the 'if' statements and 'conditionals' but, I suppose if someone is interested in learning flash they will learn all that eventually.
Anyways, I used to be big into flash, but have been out of it for about 2 years and am looking to jump back in, do you have any online sites with good tutorials or books that you can recommend? The last version I played with was MX... a bit before adobe ate flash ^.^
Thanks.
👍: 0 ⏩: 1
SophieHoulden In reply to GratefulHeartist [2008-06-05 06:42:37 +0000 UTC]
well if you are looking at picking up AS3 I would reccomend 'Learning ActionScript 3.0' (978-0596527877), its useful if you are beggining coding for the first time, but really a great way to get your feet wet if you are used to AS2 or 1.
as for websites, I guess the same sites that were good 2 years ago are still good, gotoandlearn.com, flashkit, kirupa... just google whatever else you need
as always flash reference files are the best resource of course
👍: 0 ⏩: 0
DalmatianK [2008-06-03 15:52:04 +0000 UTC]
hmm... I bet sooner or later someone will ask you to post the script XD
👍: 0 ⏩: 0
fargokraft [2008-06-03 06:51:03 +0000 UTC]
oh I think I see what's wrong, I'm using Action Script 3.0~ but anyways:
[link]
👍: 0 ⏩: 1
SophieHoulden In reply to fargokraft [2008-06-03 09:17:50 +0000 UTC]
lol, its like the thing is speaking another language or something
👍: 0 ⏩: 0
SophieHoulden In reply to teraissa [2008-06-03 09:32:27 +0000 UTC]
the T thinking of making gameses?
👍: 0 ⏩: 1
WhiteWingDemon [2008-06-02 20:19:31 +0000 UTC]
XD I didn't even know there was a boolean hit(instance x) method. I've been using four+ conditions to test for hit detection. @@
👍: 0 ⏩: 2
HiddenSpartan In reply to WhiteWingDemon [2008-06-04 23:46:58 +0000 UTC]
Depends on your needs, you need 4 for shapeflag (this._x, this._y, true), and only one for hitTest (this)
👍: 0 ⏩: 0
SophieHoulden In reply to WhiteWingDemon [2008-06-03 09:38:55 +0000 UTC]
aww thats rough, but it will only help you with square objects unfortunately
👍: 0 ⏩: 1
WhiteWingDemon In reply to SophieHoulden [2008-06-03 22:00:00 +0000 UTC]
Still, the less code the better.
👍: 0 ⏩: 0
gamesdisk [2008-06-02 12:49:59 +0000 UTC]
so whats in the plans for the next one...
oh and you might want to put for name on it so it dosnt get stolen
👍: 0 ⏩: 1
SophieHoulden In reply to gamesdisk [2008-06-02 13:47:26 +0000 UTC]
lol, I dont have any plans to continue on from this tbh, as for putting my name on it, I dont care if it gets 'stolen'
👍: 0 ⏩: 0
The-Titan [2008-06-02 10:12:35 +0000 UTC]
oh my im gonna go make a game now
haha
good tutorial
👍: 0 ⏩: 1
Ace0fredspades [2008-06-02 08:59:48 +0000 UTC]
ohmmmm... Nostalgia...
thanx 4 recolling me this
8- )
👍: 0 ⏩: 0
fargokraft [2008-06-02 04:09:49 +0000 UTC]
Thx a bunch! ^_^
that really motivated me to want to do it~ seeing how easy it is now...
and yeah, haha, the moment I saw you create a simple function based on checking every tick- first thing I thought to myself "man, this code is really inefficient, it uses up WAY too much memory. (or will if I write a big function)" but you guarded yourself with "this code sux." but indeed, I do enjoy how simple it is. X3 (the function calls are easy and understandable)
You got my feet wet.
👍: 0 ⏩: 0
psykopath [2008-06-02 00:52:15 +0000 UTC]
Eww AS2
It's nice for what it is, having screenshots for everything will make it so much easier for people. Even just for telling the difference between library names and instance names, that seems to get a lot of people just starting out.
👍: 0 ⏩: 1
SophieHoulden In reply to psykopath [2008-06-02 07:46:29 +0000 UTC]
I wanted to do it in AS3 actually, but it started out as a tutorial for a person in #flashers who had mx2004. at least the principles (sucky as they are) are transferable
👍: 0 ⏩: 0
darkauraSoulstealer [2008-06-02 00:35:29 +0000 UTC]
Cartoon Smart has amazing flash tutorials, if u happen to have the time u should check it out.
👍: 0 ⏩: 1
SophieHoulden In reply to darkauraSoulstealer [2008-06-02 08:33:21 +0000 UTC]
they do look pretty good, but the free stuff barely goes into scripting, and your money would be better spent on an actual actionscript book
👍: 0 ⏩: 1
darkauraSoulstealer In reply to SophieHoulden [2008-06-02 09:16:06 +0000 UTC]
Yeah the action script bible isn't to expensive either i have one, always good to keep back up resources just in case u stumble onto it.
You got good skills keep up the good work
👍: 0 ⏩: 0
RABies-RABbit [2008-06-02 00:26:51 +0000 UTC]
Cool. I'm writing this as it's loading. Thanks for the tutorial. Yes, there are some pretty lame tutorials out there.
👍: 0 ⏩: 0