Can you create a "constructor" for movie clips?
-----------------
What I'm doing:
var this_array[counter] = new monster; //monster is a movie clip
init_monster(); //set's things like .name, .x, .y, etc.
-----------------
What I want to do:
var this_array[counter] = new monster();
-----------------
When I add a "monster" I then call a function to "initialize" all of it's stats.
Is there a way in the creation of the object, like with a constructor, where it automatilly does it on 1 line?
I'm teaching myself and am a little stuck on this part. If I have to create a "monster class" to do what I want just say so.
Any simple examples or links to simple examples would be great. Thanks in advance.
