| Package | vegas.media |
| Class | public class MediaExpert |
| Inheritance | MediaExpert CoreModelObject CoreModel CoreEventDispatcher Object |
| Subclasses | CameraExpert, MicrophoneExpert |
| Property | Defined By | ||
|---|---|---|---|
![]() | channel : String [read-only]
Indicates the channel of this dispatcher if this instance is global. | CoreEventDispatcher | |
![]() | id : *
Returns the id of this IModelObject. | CoreModel | |
![]() | security : Boolean = true
This property defined if the setCurrentVO method can accept the same vo in argument as the current one. | CoreModelObject | |
| verbose : Boolean = true
Indicates if the expert use verbose debug mode or not. | MediaExpert | ||
| Method | Defined By | ||
|---|---|---|---|
MediaExpert(global:Boolean = false, channel:String = null, id:* = null)
Creates a new MediaExpert instance. | MediaExpert | ||
![]() | addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0.0, useWeakReference:Boolean = false):void
Allows the registration of event listeners on the event target. | CoreEventDispatcher | |
![]() | clear():void
Clear the model. | CoreModelObject | |
![]() |
Returns and creates a new empty ModelObjectEvent. | CoreModelObject | |
![]() | dispatchEvent(event:Event):Boolean
Dispatches an event into the event flow. | CoreEventDispatcher | |
![]() |
Returns the current ValueObject selected in this model. | CoreModelObject | |
![]() |
Returns the internal system.events.EventDispatcher reference. | CoreEventDispatcher | |
![]() | getEventTypeBEFORE_CHANGE():String
Returns the event name use in the setCurrentVO method before is changed. | CoreModelObject | |
![]() | getEventTypeCHANGE():String
Returns the event name use in the setVO method. | CoreModelObject | |
![]() | getEventTypeCLEAR():String
Returns the event name use in the clear method. | CoreModelObject | |
![]() | hasEventListener(type:String):Boolean
Checks whether the EventDispatcher object has any listeners registered for a specific type of event. | CoreEventDispatcher | |
initEventType():void [override]
This method is invoked in the constructor of the class to initialize all events. | MediaExpert | ||
![]() | isGlobal():Boolean
Indicates if the dispatcher use a global event flow. | CoreEventDispatcher | |
![]() | isLocked():Boolean
Returns true if the object is locked. | CoreEventDispatcher | |
![]() | lock():void
Locks the object. | CoreEventDispatcher | |
![]() | notifyBeforeChange(vo:ValueObject):void
Notify a ModelObjectEvent before the current ValueObject selected in the model is changed. | CoreModelObject | |
![]() | notifyChange(vo:ValueObject):void
Notify a ModelObjectEvent when a ValueObject change in the model. | CoreModelObject | |
![]() | notifyClear():void
Notify a ModelObjectEvent when the model is cleared. | CoreModelObject | |
![]() | registerEventListener(type:String, listener:*, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Allows the registration of event listeners on the event target (Function or EventListener). | CoreEventDispatcher | |
![]() | removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
Removes a listener from the EventDispatcher object. | CoreEventDispatcher | |
![]() | run(... arguments):void
Run the first process with this model. | CoreModel | |
![]() | setCurrentVO(vo:ValueObject):void
Sets the current ValueObject selected in this model. | CoreModelObject | |
![]() | setEventDispatcher(dispatcher:EventDispatcher):void
Sets the internal EventDispatcher reference. | CoreEventDispatcher | |
setEventTypeACTIVITY(type:String):void
Sets the event name when the Camera activity change. | MediaExpert | ||
![]() | setEventTypeBEFORE_CHANGE(type:String):void
Returns the event name use in the setCurrentVO method before is changed. | CoreModelObject | |
![]() | setEventTypeCHANGE(type:String):void
Returns the event name use in the setVO method. | CoreModelObject | |
![]() | setEventTypeCLEAR(type:String):void
Returns the event name use in the clear method. | CoreModelObject | |
setEventTypeMUTED(type:String):void
Sets the event name when the Camera is muted. | MediaExpert | ||
setEventTypeUNMUTED(type:String):void
Sets the event name when the Camera is unmuted. | MediaExpert | ||
![]() | setGlobal(flag:Boolean = false, channel:String = null):void
Sets if the instance use a global system.events.EventDispatcher to dispatch this events, if the flag value is false the instance use a local EventDispatcher. | CoreEventDispatcher | |
![]() | supports(value:*):Boolean
Returns true if the IValidator object validate the value. | CoreModelObject | |
![]() | unlock():void
Unlocks the display. | CoreEventDispatcher | |
![]() | unregisterEventListener(type:String, listener:*, useCapture:Boolean = false):void
Removes a listener (Function or EventListener object) from the EventDispatcher object. | CoreEventDispatcher | |
update():void
Updates the media settings. | MediaExpert | ||
![]() | validate(value:*):void
Evaluates the specified value and throw a TypeError object if the value is not valid. | CoreModelObject | |
![]() | willTrigger(type:String):Boolean
Checks whether an event listener is registered with this EventDispatcher object or any of its ancestors for the specified event type. | CoreEventDispatcher | |
| Method | Defined By | ||
|---|---|---|---|
![]() |
Creates and returns the internal EventDispatcher reference (this method is invoked in the constructor). | CoreEventDispatcher | |
onActivity(e:ActivityEvent = null):void
Invoked when the microphone starts or stops detecting sound. | MediaExpert | ||
onStatus(e:StatusEvent = null):void
Invoked when the microphone status change. | MediaExpert | ||
| verbose | property |
public var verbose:Boolean = trueIndicates if the expert use verbose debug mode or not.
| MediaExpert | () | Constructor |
public function MediaExpert(global:Boolean = false, channel:String = null, id:* = null)Creates a new MediaExpert instance.
Parametersglobal:Boolean (default = false) — the flag to use a global event flow or a local event flow.
| |
channel:String (default = null) — the name of the global event flow if the global argument is true.
| |
id:* (default = null) — the id of the model.
|
| initEventType | () | method |
override public function initEventType():voidThis method is invoked in the constructor of the class to initialize all events.
| onActivity | () | method |
protected function onActivity(e:ActivityEvent = null):voidInvoked when the microphone starts or stops detecting sound.
Parameters
e:ActivityEvent (default = null) |
| onStatus | () | method |
protected function onStatus(e:StatusEvent = null):voidInvoked when the microphone status change.
Parameters
e:StatusEvent (default = null) |
| setEventTypeACTIVITY | () | method |
public function setEventTypeACTIVITY(type:String):voidSets the event name when the Camera activity change.
Parameters
type:String |
| setEventTypeMUTED | () | method |
public function setEventTypeMUTED(type:String):voidSets the event name when the Camera is muted.
Parameters
type:String |
| setEventTypeUNMUTED | () | method |
public function setEventTypeUNMUTED(type:String):voidSets the event name when the Camera is unmuted.
Parameters
type:String |
| update | () | method |
public function update():voidUpdates the media settings.