Going from ActionScript 3 back to ActionScript 2 isn't fun
I remember when I first made the jump from ActionScript 2 to ActionScript 3. I wasn't excited about the switch at the time. I remember always asking myself why did they change this, I can't I do this anymore but after my first project I was happy I made the switch. AS3 made coding easier. I write less code in AS3 than I needed to do in AS2 with the exception of getURL.
I've been doing AS3 straight for the past year now. Every time I have to start a new ActionScript project I always write it in AS3 for obvious reasons. The challenge is when someone asked me to write a project that had to be done in AS2. No AS3! Sure, I thought, no problem. I have been coding for years in ActionScript 2 but wow how quickly I forget the differences. I felt I had to reteach myself some of the basics.
The project should have only took me 4-6 hours but ended up taking me 8-10 hours. If I could have wrote it in AS3 it probably would have took me just 2 hours. Making the jump back seemed more difficult than the jump forward. Some of the simplest actions I just forgot. For example, assigning actions to buttons from my class. It took me a moment to remember that inside the onClick function there is no true reference to the class, so I had to set one before I declared the action. Simple code like that, which I used to write like clockwork, I just forgot.
In all the change back was frustrating but kind of funny. Seems like I need to do some more small AS2 projects on my own to stay sharp but if I have to do anything important I'm writing it in good new ActionScript 3.
I've been doing AS3 straight for the past year now. Every time I have to start a new ActionScript project I always write it in AS3 for obvious reasons. The challenge is when someone asked me to write a project that had to be done in AS2. No AS3! Sure, I thought, no problem. I have been coding for years in ActionScript 2 but wow how quickly I forget the differences. I felt I had to reteach myself some of the basics.
The project should have only took me 4-6 hours but ended up taking me 8-10 hours. If I could have wrote it in AS3 it probably would have took me just 2 hours. Making the jump back seemed more difficult than the jump forward. Some of the simplest actions I just forgot. For example, assigning actions to buttons from my class. It took me a moment to remember that inside the onClick function there is no true reference to the class, so I had to set one before I declared the action. Simple code like that, which I used to write like clockwork, I just forgot.
In all the change back was frustrating but kind of funny. Seems like I need to do some more small AS2 projects on my own to stay sharp but if I have to do anything important I'm writing it in good new ActionScript 3.




Hi,
I need help in converting code from Action script 3.0 to Action script 2. I am new to Flash.
Could you help in conversion?
Thanks,
Shalini
Reply to this