February 11, 2009 – 09:00
A while back a read this post about the AS3 Pills #1 – Document class and it reminded me to write something about the “Document Class”. The title of this post is a little misleading: there is no “Document Class” in Actionscript 2 but this is probably the way you are searching for this problem. [...]
By Matthijs Kamstra
|
Also posted in AS3, Flash
|
Tagged Actionscript, actionscript 2, AS3, compiler errors, document class, Flash, flashdevelop, library symbol, programmers, tutorial, Tutorials
|
Sometimes you just need a pattern in the background that is fullscreen, of course you can use a big .PNG file but that is not always necessary. You can use a pattern that you need to tile, I’ve written about this before: my post about tiled-background in Flash 8 AS2. The code over there is [...]
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 [...]
September 3, 2008 – 10:00
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 [...]
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 [...]
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 [...]
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 [...]
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 [...]