Archive for the 'Actionscript 2.0' Category

Page 2 of 2

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’