| Issue 22: | how to get partculier object in getChildren array | |
| 1 person starred this issue and may be notified of changes. | Back to list |
public function getNewWidthHeight(e:ObjectHandleEvent):void{
var children:Array = generic.getChildren();
var n:int = children.length;
for (var i:int = 0; i < n; i++)
{
var child:DisplayObject = DisplayObject(children[i]);
//trace(child.x, child.y, child.width, child.height);
//Alert.show(" width "+child.width+" height "+child.height);
}
// var newWidth:Number = (e.currentTarget as ObjectHandles).width;
// var newHeight:Number = (e.currentTarget as ObjectHandles).height;
//Alert.show(" width "+newWidth+" height "+newHeight);
}
Dec 22, 2009
I believe your question was answered, closing this issue.
Status:
Done
Dec 22, 2009
Issue 21 has been merged into this issue. |
var totalHeight:Number; var totalWidth:Number; var children:Array = generic.getChildren(); var n:int = children.length; for (var i:int = 0; i < n; i++) { var child:objectHandles = children[i] as objectHandles; if(child != null) { totalWidth += child.width; totalHeight += child.height; } }