I found this function is available in Away 3.6 but not implemented Away version 4, is it possible to add getChildByName api into the current release?
getChildByName in ObjectContainer3DSoftware: Away3D 4.x |
||
|
||
Apprentice, Jr. Member
Posted: 28 October 2011 11:32 AM Total Posts: 45 [ # 1 ] I suppose you could add something like this in ObjectContainer3D.as:
public function getChildByName(aName : String) : ObjectContainer3D Or if you don’t want to change Away3D code, you could also use this in your own code:
public function getChildByName(aYourObject : ObjectContainer3D, aName : String) : ObjectContainer3D —Apprentice |
||
Apprentice, Jr. Member
Posted: 28 October 2011 11:33 AM Total Posts: 45 [ # 2 ] Looks like Piwie beat me to it |
||
|
||
Richard Olsson, Administrator
Posted: 28 October 2011 09:03 PM Total Posts: 1192 [ # 4 ] Methods like these will be added in the next release probably. It is not yet decided, but it might be accompanied by a slightly more powerful iterator API (compare to the one in the AssetLibrary), to iterate over all nodes in a branch of the scene graph, search by name, iterate by type et c. |