Ok, I’ve been climbing the walls trying to figure this out, looked everywhere for an answer, learned a few bits and pieces along the way, but still can’t do it.
I’ve made my Class which is a little movieclip called ‘block’, it’s fine and does what I tell it to do ie. I can reposition it\stretch it\rotate it and stuff.
The problem is… I want to make more of them and reference them individualy so I can change the properties of them individualy ie, the x and y values etc…
Here’s my code:-----------
for (var i=0; i<2; i++){
**
var newBlock:blocks = new blocks();
this.addChild(newBlock); **
}
I wanna be able to change the ‘this.addChild(newBlock)’ thing so that it’s called
(newBlock+i)
That way I can make as many as I want and be able to change the new ones about ie. **newBlock2.x=100 **etc…
Sorry for the lack of termanology, I’ve only been using AS3 for a week or so, hope you can sort of understand what I’m trying to do…
Also, I’ve never quite understood what ‘this’ means, and where and when to use it?? Is there anything about that gives a good explanation to that?? Try typing ‘as3 this’ into google LOL - no good…