I have a for loop
for(var i:int = 0; i<arrX.length();i++){
arrLoader = new Loader();
arrLoader.load(new URLRequest(arrX*.@asset));
arrLoader.name = "arrH"+i
arrLoader.x = i * 200;
mainHolder.arrHolder.addChild(arrLoader);
}
// for testing purpose i added a button, i want to shift all items to the LEFT 50 pixels, but i don't want to move the container mainHolder.
button.addEventListener(MouseEvent.CLICK,clicked);
function clicked(e:MouseEvent):void{
for(var c:int = 0; c<arrX.length();c++){
mainHolder.arrHolder.arrH[c].x =+ 50;
}
}
This should be simple solution… anyone got suggestions?