Scene3DEvent.ADDED_TO_SCENE

Software: Away3D 4.x

YG, Newbie
Posted: 19 December 2011 11:49 PM   Total Posts: 18

hello,

why the Scene3DEvent.ADDED_TO_SCENE, dispatched from the scene?

Is it on purpose?

i think it’s more logical that the object that added to the scene will fire that event?

   

R Villani, Newbie
Posted: 02 February 2012 10:31 PM   Total Posts: 13   [ # 1 ]

Since we can’t get the event from the object that fired it, how to get the scene from anywhere?

Like this: you create a class that extends ObjectContainer3D and want it to execute some code when it’s added. How to access the scene from inside this class to add the eventListener to?

Are there any static properties at any class, like a global view property, that I’m missing? Or do I have to create that global static myself?

Anyways, it would be great to trigger the ADDED_TO_SCENE from the object itself.

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X