package away3d.events { import away3d.core.base.*; import flash.events.Event; /** * Passed as a parameter when a face event occurs */ public class FaceEvent extends Event { /** * Defines the value of the type property of a mappingChanged event object. */ public static const MAPPING_CHANGED:String = "mappingChanged"; /** * A reference to the face object that is relevant to the event. */ public var face:Face; /** * Creates a new FaceEvent object. * * @param type The type of the event. Possible values are: FaceEvent.MAPPING_CHANGED and FaceEvent.MATERIAL_CHANGED. * @param face A reference to the face object that is relevant to the event. */ public function FaceEvent(type:String, face:Face) { super(type); this.face = face; } /** * 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 FaceEvent(type, face); } } }