adding custom properties to an object. AND does an object have to be declared
Hi
I have seen the following code
var mc:MovieClip = new MovieClip;
mc.id = 1;
Which means you can just invent whatever custom property you want attach it to the object. Is this true?
like
mc.colour = "red"
mc.speed = 20
etc...
Also - I have seen an object that wasn't even declared
eg:
mcContainer = addChild(game1)
Well that mcContainer isn't even declared so how on earth can it exist??? You have to instantiate a class to get an object don't you?
