Hello away3d community,
To hold my loaded dae and 3ds objects with additional parameteres I
derived/extended from ObjectContainer3D. Then I have access to the
additional parameters in an e. g. mouseDown event handler no matter to
which object the handler is dedicated:
public class test extends ObjectContainer3D { }
When I load a new object from a dae file I already created my derived
object and parse in a non static function of class test:
var collada:Collada;
var oc:ObjectContainer3D;
collada = new Collada();
oc = collada.parseGeometry(...) as ObjectContainer3D;
oc.cloneAll(this);
collada object is thrown away automatically at the end of the function
an I have the object returned by parseGeometry(...).
I then do oc.cloneAll(this);
Sadly animation does not play after cloning. I can go and dig deep
inside the cloning. But before I wanted to ask if someone has an easy
solution or idea.
When I use oc:ObjectContainer3D as a member of my class test then it
works.
Maybe I can change the return type of collada.parseGeometry(...) but
this is not what I want to do.
Thanks in advance
Volker