It’s possible to move a dynamic ctreated element or child?
Example:
Create childs:
public function createChilds():void {
for(var i:int=0; i < 10; i++) {
newImage = new Image();
newImage.source = myImages[i];
mybox.addChild(newImage);
}
}
Move childs:
public function moveChilds():void {
for(var i:int=0; i < 10; i++) {
mybox.getChildAt(i).move((mybox.getChildAt(i).x - 1), 0);
}
}
But I get an error message 🙁
Use the
xandyproperties of the child to move them to the required coordinates.For example,