开发者

The Flash action Scripting For Beginners [duplicate]

开发者 https://www.devze.com 2023-02-07 09:26 出处:网络
This question already has answers here: Closed 12 years ago. Possible Duplicate: Beginner Actionscript reference
This question already has answers here: Closed 12 years ago.

Possible Duplicate:

Beginner Actionscript reference

Hi everyone, could you please help me, how can I learn ActionScript 3.0?

I know Flash very well, but I d开发者_Python百科on't know ActionScript.


I'd suggest you start off with the basics.

Here is an excellent link:

http://www.kirupa.com/developer/flash/index.htm#ActionScript_Basics

With that, you need to understand datatypes and how they work. Flash is a strongly-typed language, so you need to keep track of datatypes at all times.

This is the reference for the current (Flash Player 10) build of Actionscript 3.0 (compatible with Adobe Flash CS4 and up):

http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/index.html

I'd suggest you start off the the flash.display section. That contains the classes beginners are most familiar with, those of course being flash.display.MovieClip and flash.display.Sprite. Here's a link to that package:

http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/display/package-detail.html

Primarily, you need to have a extensive knowledge of the following in Flash to be successful:

  • MovieClips
  • Sprites
  • Arrays
  • ints
  • Numbers
  • Strings

With a good knowledge of those datatypes, you should be well on your way. I guess a good question here would be "how familiar are you with programming logic?". Actionscript 3 is a direct descendant of the ECMAScript spec, ergo, a sibling to Javascript. They each have their own special quirks, but Actionscript 3 and Javascript are quite similar. I've found when learning them in conjunction, comprehension comes much quicker than learning them separately.

Failing these online resources, Essential Actionscript 3.0 by Colin Moock is a must in my opinion. It's a wonderful reference with well-detailed examples that will get you off the timeline (presuming you were on it to begin with) and into Object-Oriented Programming.

Google Books has a free preview of that book here:

http://books.google.ca/books?id=gUHX2fcLKxYC&printsec=frontcover&dq=essential+actionscript+3.0&hl=en&ei=BkVGTcPYPIP4sAOOwMSgCg&sa=X&oi=book_result&ct=result&resnum=1&ved=0CC4Q6AEwAA#v=onepage&q&f=false

Finally, just use Google for any quick snippets or questions you're looking for. I've found googling "(your problem here) as3" can have sufficient results for smaller, more popular issues. Good luck!

-Matt


Begin with reading tutorials online (of course you have to install Adobe Flash CS4/CS5 first). CS4 is a good start, as its controls are simpler. Here is a site I recommend:

http://www.actionscript.org/resources/categories/Tutorials/Flash/Beginner/


several examples :
program generated smoke : http://wonderfl.net/c/pMG9
sample menu leading to a video : http://wonderfl.net/c/5yZq
an example of multiline textfield with lines added from the bottom instead of top : http://wonderfl.net/c/3cHE


buy/read books. learn the right way as well as starting your own developer's library that you can reference from years to come. don't waste your time with sporadic, often misguided or incomplete online tutorials.

i recommend the following:

  1. Appitizer - ActionScript 3.0 for Adobe Flash Professional CS5 Classroom in a Book
  2. Full Course Meal - Essential ActionScript 3.0
  3. Desert - Adobe Flex 4: Training from the Source, Volume 1
  4. Icing - Actionscript 3.0 Animation: Making Things Move
  5. Updated Icing - AdvancED ActionScript 3.0 Animation
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号