Archive for September, 2006

Web 2.0

“Foxtrot apparently understands Web 2.0 better than most developers”

Foxtrot cartoon web 2.0

extending MovieClip

Have you ever tried extending the MovieClip class? The standard way is to create your actionscript class extending from MovieClip, adding a MovieClip symbol to the library, setting a Linkage Identifier and specify the Actionscript 2 class. To create an instance of your class on the stage, you have to use attachMovie(). Problems of this method are: it requires a great deal of “work” to create class file, create library symbol & set it up and your code is more difficult to port between projects (recreate the library stuff in each projects). However, there are ways to extend MovieClip, without using the library directly.

Continue reading ‘extending MovieClip’

Passing arguments through parameter objects

Goodevening everyone!

In this first post, I’ll talk about the use of parameter objects to pass arguments to a function. Imagine you have written a kick-ass function to create a button movieclip. You want to use it in multiple applications, so it should be easy to change the colors, borders, labels etc… You might pass all this information as arguments in the function call, but the more parameters you want to set, the more arguments your function will get and… the messier your code will look.

Continue reading ‘Passing arguments through parameter objects’