ryanhamilton
03-05-2008, 09:25 AM
Aloha,
I have myself 10 movie clips which I want to put inside an array , and then position them using a forLoop. The instance names for each mc is column1, column2 . . . My code;
var columnWide:Number = Math.floor (stage.stageWidth/10);
function columnX (columnNum) {
var wide:Number = Math.floor (stage.stageWidth/10);
var position:Number = Math.floor(columnNum * wide);
return position;
}
var columns:Array = new Array [column1 , column2 , column3 , column4 , column5 , column6 , column7 , column8 , column9 , column10 ]
for ( var i = 0; i < 10; i++){
columns[i].y = 0;
columns[i].x = columnX(i);
columns[i].width = columnWide;
columns[i].height = stage.stageHeight;
}
They're neither repositioning nor or they resizing.
Gracias.
EDIT
please put code in
[ as ] [ /as ] tags (without spaces)
I have myself 10 movie clips which I want to put inside an array , and then position them using a forLoop. The instance names for each mc is column1, column2 . . . My code;
var columnWide:Number = Math.floor (stage.stageWidth/10);
function columnX (columnNum) {
var wide:Number = Math.floor (stage.stageWidth/10);
var position:Number = Math.floor(columnNum * wide);
return position;
}
var columns:Array = new Array [column1 , column2 , column3 , column4 , column5 , column6 , column7 , column8 , column9 , column10 ]
for ( var i = 0; i < 10; i++){
columns[i].y = 0;
columns[i].x = columnX(i);
columns[i].width = columnWide;
columns[i].height = stage.stageHeight;
}
They're neither repositioning nor or they resizing.
Gracias.
EDIT
please put code in
[ as ] [ /as ] tags (without spaces)