Category Archives: Flash

Everything about Macromedia / Adobe flash

Notepad++ opens ActionScript file with Haskell syntax highlighting

Sometimes I open ActionScript files in another editor then FlashDevelop. And in my case this is Notepad++. Notepad++ has ActionScript syntax highlighting but it seems that it doesn’t detect it. When I open an AS file it uses the Haskell syntax highlighting, and that is very annoying especially when you open a couple of files [...]

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

Link dump: 18-03-2008

Just a linkdump, because my wrist is still broken: We needed a external font library for a project that we did. Here are two links to useful information: (Runtime font loading with AS3 / Flash CS3 (not Flex!)) http://blog.sitedaniel.com/2008/10/fontcontrol-class-external-font-library/ http://www.betriebsraum.de/blog/2007/06/22/runtime-font-loading-with-as3-flash-cs3-not-flex/ There is just one thing that could drive you mad: If you additionally place a [...]

FlashDevelop 3.0.0 RC2 released

I said it before: I don’t like to regurgitate, but program is so good that I can’t help myself…. As we are now approaching the final release of FlashDevelop 3, this release is the last feature release. FlashDevelop.org – View topic – FlashDevelop 3.0.0 RC2 released. FlashDevelop is awesome! If you never used it, give [...]

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

Document Class in AS3

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

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

Hello box2D – part 4

In my previous post I update the “Hello world” for box2D so that you can see something visual interesting. You can find the original here: AS3: Hello Box2D. Today I will post the same code but now how it should be. Keeping the coding conventions in mind and making it easier to reuse code. Still [...]