To actionScript 3 or not to actionScript 3...

3:49 PM @ 3:49 PM

Pros? Cons? i have clue whatsoever! I "heard" it's faster by at least twice the speed of actionScript 2 - with ten times the speed not unheard of.


And thus, with the promise of a "speedier" user experience for my Flash Applications, i try it out.

What do i find?

... I don't know what to say...

So, when the actionScript 2 would allow me to click on, say a button, and put in this:
on(press){
trace("I AM THE ZIK!");
}
to have the system say "I AM THE ZIK!" (No. NO Hello World. Shut up already). That's it. No strings attach. 1 click and 3 lines and I'm done. Good to go. Wham Bam THANK YOU maam.

NOW, with actionScript 3 - to get the same deal, i no longer can apply the scripts on the button itself. First, i need to name the "instance". And then, i'll have to click on the main timeline, and insert this:-
btn.addEventListener(
  MouseEvent.MOUSE_DOWN,
  function(evt:MouseEvent):void {
    trace("I AM THE ZIK!");
  }
)
2 clicks! 6 lines! What the hell is :void anyways? I'm not that advanced a programmer and i'm still too traumatised too look it up.

As for the speed? Well so far nothing has been making me say "Oh hot damn i wish my Flash application would be faster..." in neither falsetto, barritone nor my normal voice.

Verdict? Later when i have some free time to burn I'll probably play around withit a bit more but for now; i'll stick with actionScript 2 thank you very much.

0 people has something to say: