to access the parent of any object, simply use:
myObject3D.parent
generally speaking, it is good practice to keep object a scene hierarchy
with names, so that they are easy to access. A named object can be returned
simply by doing:
scene.getChildByName("myobjectName");
this will locate the object with the given name no matter where it is in the
scene hierarchy
Rob
On Thu, Feb 12, 2009 at 6:03 PM, timdiacon <[email protected]> wrote:
>
> Hi,
>
> I need to get the position and size of a 3D object so that I can
> overlay some text on it. I have found the following method in the
> away3D examples:
>
> http://away3d.com/examples.php?example=203&_searchterm=;
>
> However the problem I have is that my scene contains many items, and
> as I have no way of getting the name or depth of the 3dObject I cannot
> access it.
>
> Surely there must be some way of accessing the parent container of any
> 3dObject. I know in Sandy you can simply call myObject.container.
>
> Any ideas?
--
Rob Bateman
Flash Development & Consultancy
[email protected]
www.infiniteturtles.co.uk
www.away3d.com