Hi there,
So I’m attaching a MC to the stage, then I’m trying to declare a new variable within it, but its not working… When I list the variables after, they have not been added? I’m really not sure… The ID variable is the one thats not working…
[AS]var curDepth:Number = 0;
var someNumber:Number = 9;
function makeImage(){
_root.attachMovie('theBox', 'b'+ curDepth, curDepth);
var mc:MovieClip = _root['b'+ curDepth];
mc.ID = someNumber;
}
makeImage();[/AS]
Any help appreciated, thanks