This is a blog about Flash by betaruce :-)

Calendar

February 2007
M T W T F S S
« Jan    
  1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28  

July 24, 2006

Can I use AS3 as a scripting language in the timeline just like before?

Filed under: Tutorials — betaruce @ 1:32 am

This maybe the question in many users mind when they first touch AS 3 and Flash 9 Alpha. Can I code in the old way instead of typing those OOP stuff?

The answer is YES. So when should I use it as a scripting language and when as an OOP project? And is there an example of coding in the scripting-language-style?

You may find the answer here: http://as3.betaruce.com/tut/appendix/app_1/app_1.html

———————————————-
AS 3 tutorial by betaruce
http://as3.betaruce.com/tut/

4 Comments »

  1. Its important, too, to understand that what you put in the timeline is converted into a class. This is unlike the behavior seen in ActionScript 1 and 2. This means, for instance, you are unable to define two functions with the same name in the same timeline. It also means every function you define, where ever you define it, will be immediately accessible from that timeline even if on a frame prior to that where the function is defined. So you could define foo() on frame 10 and call it on frame 1.

    Comment by senocular — July 24, 2006 @ 5:57 am
  2. Good to know. Is each individual frame with code treated as a seperate class, or is the entire timeline a class?

    Comment by Intoxo Pox — July 24, 2006 @ 8:06 am
  3. Each timeline is it’s own class. Frames essentially become methods (not including functions defined in the frame as they are extracted and used as methods themselves)

    Comment by senocular — July 26, 2006 @ 1:42 am
  4. Nice blog, thanks for this information.

    Comment by furl sellthe — February 2, 2007 @ 11:14 am

Comments RSS • TrackBack URI

Leave a comment

Powered by: WordPress • Template by: Priss