package away3d.events
{
import away3d.cameras.*;
import flash.events.Event;
/**
* Passed as a parameter when a session event occurs
*/
public class CameraEvent extends Event
{
/**
* Defines the value of the type property of a cameraUpdated event object.
*/
public static const CAMERA_UPDATED:String = "cameraUpdated";
/**
* A reference to the session object that is relevant to the event.
*/
public var camera:Camera3D;
/**
* Creates a new FaceEvent object.
*
* @param type The type of the event. Possible values are: FaceEvent.UPDATED.
* @param camera A reference to the camera object that is relevant to the event.
*/
public function CameraEvent(type:String, camera:Camera3D)
{
super(type);
this.camera = camera;
}
/**
* Creates a copy of the FaceEvent object and sets the value of each property to match that of the original.
*/
public override function clone():Event
{
return new CameraEvent(type, camera);
}
}
}