View Full Version : How to get used to AS3?
jbitkill
January 10th, 2010, 09:39 AM
Hi,
I normally use AS2, but want to learn AS3. But, I can't make any sense of the syntax. Can someone explain what everything means, and what everything does?
Thanks is advance
jbitkill
GarFonz
January 10th, 2010, 12:48 PM
what problems are you having with the syntax?
Ziggwies
January 10th, 2010, 02:29 PM
Have a look at the PDF in the following link...
http://www.adobe.com/devnet/actionscript/cookbook/
jbitkill
January 10th, 2010, 05:12 PM
@GarFonz: I find it confusing, because you have to put everything in .as files, and you need to load classes etc. What's a constructor?
@Ziggwies I'll read that now, tell you how I get on.
Thanks,
jbitkill
_kp
January 10th, 2010, 05:20 PM
@GarFonz: I find it confusing, because you have to put everything in .as files, and you need to load classes etc. What's a constructor?
I would suggest you to read a bit on object-oriented programming (OOP) before getting in specific as3 stuff. I think there are some tutorials on kirupa that explain the basics pretty well.
Shaedo
January 10th, 2010, 11:29 PM
you have to put everything in .as files, and you need to load classes etc.
Not strictly true. At some point most people will but there is no reason why you have to start that way. Here is (IMO) a good tutorial that explains the classes etc.
http://www.flashandmath.com/bridge/intro/index.html
Whilst there are lots of tutorials explaining the differences between AS2 and AS3 I would really recommend just finding one that teaches AS3 from scratch and starting there. This is not the same as starting from scratch, its just that some of the biggest differences you encounter at the start are the basics.
jbitkill
January 11th, 2010, 01:06 PM
Hi,
I've now got the basics of AS3, like how to assign variables, functions and the 'trace' function. All I have to do now is learn how to do key presses and clicks on buttons and the external .as thingy-maj-jing. Any suggestions?
Sites that helped me
http://www.kirupa.com/ (http://www.kirupa.com/forum/)
http://www.adobe.com/devnet/actionscript/articles/actionscript_1-on-1.html
http://www.adobe.com/devnet/actionscript/cookbook/
Google Books
Thanks to all that helped,
jbitkill
bhjodokast
January 11th, 2010, 04:11 PM
If you're coming from AS2, I would recommend creating a layer called "UIActions" that runs from the beginning to the end (after the preloader).
Then, put all over your keypress/mouse movement code there for now. Eventually you can move it somewhere else.
jbitkill
January 12th, 2010, 12:30 PM
If you're coming from AS2, I would recommend creating a layer called "UIActions" that runs from the beginning to the end (after the preloader).
Then, put all over your keypress/mouse movement code there for now. Eventually you can move it somewhere else.
Thanks! I never thought of that, I could do certain layers for button actions, mouse actions, functions etc.
Does anyone know how to change the quality of a SWF in AS3?
Thanks,
jbitkill
Shaedo
January 12th, 2010, 12:42 PM
Does anyone know how to change the quality of a SWF in AS3?\
is this what you are after ?
http://help.adobe.com/en_US/AS3LCR/Flash_10.0/flash/display/Stage.html#quality
so eg
stage.quality = StageQuality.LOW;
jbitkill
January 12th, 2010, 12:52 PM
is this what you are after ?
http://help.adobe.com/en_US/AS3LCR/Flash_10.0/flash/display/Stage.html#quality
so eg ActionScript Code:
stage.quality = StageQuality.LOW;
No worries now, just found out I forgot to enter it in the right function. Thanks through.
Thanks,
jbitkill
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.