array of objects
array of objects
Out of context: Reply #10
- Started
- Last post
- 23 Responses
- unfittoprint0
merda______
myArr = [];
function obj(n:Number, y:Number) {
this.n = n;
this.y = y;
}for (i=0; i < 5; i++) {
myArr[i] = new obj(i, 100+i)
trace(myArr[i].n+" | "+myArr[i].y);
}