Tag Archives: migration

From AS2 to AS3 – Where did it go – random

This is one that I figured out pretty quick. What has the ActionScript 2.0 Migration to say about this subject: ActionScript 2.0  ActionScript 3.0  Comments random() Math.random() Removed. Use Math.random() instead. I could have seen that coming: Deprecated since Flash Player 5. This function was deprecated in favor of Math.random(). Returns a random integer between 0 and [...]

From AS2 to AS3 – Where did it go – attachSound

Where did attachSound go in AS3? It’s almost the same as attachMovie (I already covered attachMovie: read attachMovie post) I was never very good in sound, and I didn’t use it a lot in my applications/animations. That changed with my new job. But for the people that remember attachSound in AS2, this is how its [...]

From AS2 to AS3 – Where did it go – swapDepths

Where did swapDepths () go in AS3? This is what the ActionScript 2.0 Migration has to say about this: ActionScript 2.0  ActionScript 3.0  Comments swapDepths() Method Removed In ActionScript 3.0, you can achieve similar functionality by using the methods of the DisplayObjectContainer class, such as the addChildAt(), setChildIndex(), swapChildren(), and swapChildrenAt() methods. Removed… bummer, so with what [...]

From AS2 to AS3 – Where did it go – attachMovie

Where did attachMovie go in AS3? Once I started using attachMovie instead duplicateMovieClip my AS2 life became a lot easier. What has the ActionScript 2.0 Migration to say about this subject: ActionScript 2.0  ActionScript 3.0  Comments attachMovie() Method Removed In ActionScript 3.0, use addChild() to add child display objects. Removed… wtf? and you can read the documentation [...]

From AS2 to AS3 – Where did it go – setRGB

Update #1: It seems that .setRGB () has been deprecated in favor of the flash.geom.ColorTransform class. So a little as2 update. In some cases I can’t help thinking that AS3 hasn’t made our live easier. The same happened with the change that happened from the AS2 setRGB to AS3. Specifies an RGB color for a [...]

From AS2 to AS3 – Where did it go – onRelease

Last year I started working with AS3, and after having some startup problems, I’ve made my first application in it (not online yet). The strange thing is, I started a new project and when I had to make a button from a movieclip, I immediately wrote it in AS2… That AS2 is embedded deep into [...]

AS3 – take one step at a time: step 1a

I’ve made a mistake, the code I original wrote doesn’t work (I’m glad nobody noticed it ). You can find the correct class here My previous post is about my first step into ActionScript 3 (AS3) and in my case: trail and error is the best way to learn stuff. But it takes some time [...]

AS3 – take one step at a time: step 1

I finally started programming with ActionScript 3 (AS3); I know, I not a early adopter… And the first steps in AS3 are as uncomfortable as the first time I started OOP programming … or when I started moved from AS1 to AS2… Since I started working for NOISE 5 months ago and moved to Amsterdam, [...]