If you are comfortable writing AS1 code on the timeline, switching to AS2 should be painless. On the timeline, the only differences will be case sensitivity and type strictness, both of which can only make your code easier to debug and maintain.

Then, if at some point you want to learn how to use classes in AS2, you will at least be familiar with these requirements.




On Mar 27, 2006, at 10:49 AM, Zeh Fernando wrote:

I agree with what's already been said - and just wanted to say that one of the big advantages you may find with AS 2 is the debugging features you get by typecasting, and also the re-usability of classes. Once you
really get into it and start creating your own libraries, your
efficiency level has a greater chance to gain momentum that if you had
stuck with AS1.  However, many people, depending on the types of
projects they work on, can stick with AS1 and be perfectly happy and
productive.

Oh yes - good point, I forgot that. Having type casting and stronger debugging when compiling is one of the best advantage of AS2 -- it's sad not all of it applies to timeline code (ie, accessing stuff that doesn't exist), even when using AS2. I do use AS2 syntax all the time when writing code for my movieclips inside flash, but mostly because I'm used to it.

Coming to think of it, the best approach I could expect of Flash 9+ would be of almost totally killing timeline code, but giving a way of automatically attaching a class to a movieclip without actually having to create any external .AS file and without having to load the class on a given frame and whatnot - like editing inside of a movieclip while you are in fact editing its class, not its timeline code. That'd be cool.


- Zeh
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to