My favorites | Sign in
Project Home Downloads Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 28: how to add new children in array
1 person starred this issue and may be notified of changes. Back to list
Status:  Done
Owner:  ----
Closed:  Dec 2009


 
Reported by abidr...@gmail.com, Oct 27, 2009
var children:Array = genericTshirt.getChildren();
var n:int = children.length;
for (var i:int = 0; i < n; i++)
{
  var child:ObjectHandles = children[i] as ObjectHandles;
}

how to count ObjectHandles children. 
Dec 22, 2009
Project Member #1 marc.hug...@gmail.com
I'd suggest something like

var children:Array = genericTshirt.getChildren();
var n:int = 0;
for (var i:int = 0; i < n; i++)
{
  var child:ObjectHandles = children[i] as ObjectHandles;
  if( child ) n++
}

Status: Done

Powered by Google Project Hosting