Packagevegas.media
Classpublic class MediaExpert
InheritanceMediaExpert Inheritance CoreModelObject Inheritance CoreModel Inheritance CoreEventDispatcher Inheritance Object
Subclasses CameraExpert, MicrophoneExpert

This core expert is a basic implementation to create the MicrophoneExpert and CameraExpert class.



Public Properties
 PropertyDefined By
 Inheritedchannel : String
[read-only] Indicates the channel of this dispatcher if this instance is global.
CoreEventDispatcher
 Inheritedid : *
Returns the id of this IModelObject.
CoreModel
 Inheritedsecurity : 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
Public Methods
 MethodDefined By
  
MediaExpert(global:Boolean = false, channel:String = null, id:* = null)
Creates a new MediaExpert instance.
MediaExpert
 Inherited
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
 Inherited
clear():void
Clear the model.
CoreModelObject
 Inherited
Returns and creates a new empty ModelObjectEvent.
CoreModelObject
 Inherited
dispatchEvent(event:Event):Boolean
Dispatches an event into the event flow.
CoreEventDispatcher
 Inherited
Returns the current ValueObject selected in this model.
CoreModelObject
 Inherited
Returns the internal system.events.EventDispatcher reference.
CoreEventDispatcher
 Inherited
Returns the event name use in the setCurrentVO method before is changed.
CoreModelObject
 Inherited
Returns the event name use in the setVO method.
CoreModelObject
 Inherited
Returns the event name use in the clear method.
CoreModelObject
 Inherited
hasEventListener(type:String):Boolean
Checks whether the EventDispatcher object has any listeners registered for a specific type of event.
CoreEventDispatcher
  
[override] This method is invoked in the constructor of the class to initialize all events.
MediaExpert
 Inherited
isGlobal():Boolean
Indicates if the dispatcher use a global event flow.
CoreEventDispatcher
 Inherited
isLocked():Boolean
Returns true if the object is locked.
CoreEventDispatcher
 Inherited
lock():void
Locks the object.
CoreEventDispatcher
 Inherited
Notify a ModelObjectEvent before the current ValueObject selected in the model is changed.
CoreModelObject
 Inherited
Notify a ModelObjectEvent when a ValueObject change in the model.
CoreModelObject
 Inherited
Notify a ModelObjectEvent when the model is cleared.
CoreModelObject
 Inherited
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
 Inherited
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
Removes a listener from the EventDispatcher object.
CoreEventDispatcher
 Inherited
run(... arguments):void
Run the first process with this model.
CoreModel
 Inherited
Sets the current ValueObject selected in this model.
CoreModelObject
 Inherited
Sets the internal EventDispatcher reference.
CoreEventDispatcher
  
setEventTypeACTIVITY(type:String):void
Sets the event name when the Camera activity change.
MediaExpert
 Inherited
setEventTypeBEFORE_CHANGE(type:String):void
Returns the event name use in the setCurrentVO method before is changed.
CoreModelObject
 Inherited
setEventTypeCHANGE(type:String):void
Returns the event name use in the setVO method.
CoreModelObject
 Inherited
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
 Inherited
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
 Inherited
supports(value:*):Boolean
Returns true if the IValidator object validate the value.
CoreModelObject
 Inherited
unlock():void
Unlocks the display.
CoreEventDispatcher
 Inherited
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
 Inherited
validate(value:*):void
Evaluates the specified value and throw a TypeError object if the value is not valid.
CoreModelObject
 Inherited
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
Protected Methods
 MethodDefined By
 Inherited
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
Property Detail
verboseproperty
public var verbose:Boolean = true

Indicates if the expert use verbose debug mode or not.

Constructor Detail
MediaExpert()Constructor
public function MediaExpert(global:Boolean = false, channel:String = null, id:* = null)

Creates a new MediaExpert instance.

Parameters
global: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.
Method Detail
initEventType()method
override public function initEventType():void

This method is invoked in the constructor of the class to initialize all events.

onActivity()method 
protected function onActivity(e:ActivityEvent = null):void

Invoked when the microphone starts or stops detecting sound.

Parameters

e:ActivityEvent (default = null)

onStatus()method 
protected function onStatus(e:StatusEvent = null):void

Invoked when the microphone status change.

Parameters

e:StatusEvent (default = null)

setEventTypeACTIVITY()method 
public function setEventTypeACTIVITY(type:String):void

Sets the event name when the Camera activity change.

Parameters

type:String

setEventTypeMUTED()method 
public function setEventTypeMUTED(type:String):void

Sets the event name when the Camera is muted.

Parameters

type:String

setEventTypeUNMUTED()method 
public function setEventTypeUNMUTED(type:String):void

Sets the event name when the Camera is unmuted.

Parameters

type:String

update()method 
public function update():void

Updates the media settings.