Tag Archives: AS2

FlashDevelop 3.0.0 released

My favorite open source project ever, FlashDevelop has released: FlashDevelop 3.0.0 RTM (English, 4MB) . I started with coding in the Flash IDE, when I realized that there are better programs to code in I started working with SE|PY (ActionScript 2 only). I really loved that program, but it never made it to ActionScript 3 [...]

Updated Syntaxhighlighter

Update #1: hmmmm, stupid but I write these post sometimes weeks ahead…. and this one caught up on me… The new version of SyntaxHighlighter Evolved has ActionScript support.. Update #2: I could remove everything below, but I’m keeping this here, perhaps someone can use it…. and it took some time to write, so I really [...]

TextMate AS3

I’ve been using a code-editor for years now. I started with SEPY and now I’m using FlashDevelop. Both on Windows. A colleague of mine still uses the Flash IDE (on a mac), so I decide to help him with his transition. Sadly there is no free editor for the OSX that handles AS2/AS3, but TextMate [...]

Loop mp3 in Flash

Oke, here come my problem. I’m trying to create a sound looping engine in Flash, and because I don’t want files to be embedded in the FLA (in the library) I only can use MP3 as a sound file which I can load dynamically. I didn’t know this, but mp3 has a silence at the [...]

Tiled background AS3

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 [...]

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 [...]