Migrating from AS2 to AS3
I have been gradually rewriting some of my previous demos files from AS2 to AS3. What I’ve found is almost all the scripts needed to be rewritten as they were not compatible with AS3. Well no pain, no gain. So I soldier on. In the process it is a great learning experience. So if you are hesitating to learn AS3, I encourage you to give it a try.
Today I tried to set the depth (z-0rder) of an object. With AS2 I would be using something like swapDepth(). With AS3, it is setChildIndex(). I think it makes more sense. Don’t you think.