Author Topic: Which class do I need to extend to catch updateEvent in Flash CS6?  (Read 145 times)

J B   «   on: July 16, 2012, 03:37:02 PM »
Hi,

The following appears to be using Flash Builder:

http://wiki.flare3d.com/index.php/Test02_-_The_Basics_2 

Which class do I need to extend to catch the updateEvent event in Flash CS6? 

Is it possible to attach a listener on the scene?

I just want the model to rotate etc. based on a mouse click.

Sincere thanks.

Ivan Vodopiviz   «   Reply #1 on: July 17, 2012, 09:43:23 AM »
Hi, you don't need to extend any class, you can add an event listener to the scene like this:

scene.addEventListener( Scene3D.UPDATE_EVENT, updateEventListener );

You can then add your input processing code into the updateEventListener function.

Regards,

J B   «   Reply #2 on: July 18, 2012, 08:58:01 AM »
Many thanks indeed.