Question
var on a clip
Hi,
I am trying to set a variable on a new sprite attatched to the main
timeline (addchild). But I am too stupid I tried several ways. Last one
looks like this
for (n=0;n<50;n++){
this["newClip" + n] = new Sprite();
newClip = this["newClip" + n]
...
newClip.name = "clip" + n + "_mc";
var clip = this.addChild(newClip);
// how do I set a simple variable on it?
clip.idx = n;
..
TIA!
I am trying to set a variable on a new sprite attatched to the main
timeline (addchild). But I am too stupid I tried several ways. Last one
looks like this
for (n=0;n<50;n++){
this["newClip" + n] = new Sprite();
newClip = this["newClip" + n]
...
newClip.name = "clip" + n + "_mc";
var clip = this.addChild(newClip);
// how do I set a simple variable on it?
clip.idx = n;
..
TIA!