I have the parent movieClip with multiple children in it.
How do i resize the parent without effecting the children movieClip?
Memo:The children must stay with the parent.
import flash.display.MovieClip;
import flash.events.MouseEvent;
/*The parents*/
var motherFather:MovieClip = new MovieClip();
motherFather.graphics.beginFill(0xAA0022);
motherFather.graphics.drawCircle(40, 40, 40);
motherFather.width=100
motherFather.height=100
motherFather.x=10
motherFather.y=60
addChild(motherFather);
for (var i:Number=1; i<=6;i++){
var children:MovieClip = new MovieClip();
children.graphics.beginFill(0xFF0260);
children.graphics.drawCircle(40, 40, 40);
children.width=30
children.height=30
children.x=10 +(i*30)
children.y=50
motherFather.addChild(children);
}
//CLICK ON STAGE TO RESIZE THE PARENT.
motherFather.addEventListener(MouseEvent.CLICK, ResizeParent);
function ResizeParent(e:MouseEvent){
motherFather.width+=150;
}