Packagecom.acapela.vaas.advanced.synchro
Classpublic class PositionsManager
InheritancePositionsManager Inheritance flash.events.EventDispatcher

Used to instuct the service to generate word, mouth and bookmark positions; then, when generated, it downloads and parses it.

So that it is made available as a table of position objects. At that time, the appropriate event is dispatched.

The Player uses this class to synchronize MP3 sound playback and positions.

You can access to a ready to use PositionsManager instance through the positionsManager property of the Connector class.

See also

com.acapela.vaas.advanced.synchro.WordPosition
com.acapela.vaas.advanced.synchro.MouthPosition
com.acapela.vaas.advanced.synchro.BookmarkPosition
com.acapela.vaas.advanced.Connector


Public Properties
 PropertyDefined by
  bookmarkPositions : Array
[read-only] The table of bookmark positions associated to this PositionsManager instance.
PositionsManager
  mouthPositions : Array
[read-only] The table of mouth positions associated to this PositionsManager instance.
PositionsManager
  wordPositions : Array
[read-only] The table of word positions associated to this PositionsManager instance.
PositionsManager
Public Methods
 MethodDefined by
  
constructor: use it to create a new PositionsManager object instance.
PositionsManager
Events
 EventSummaryDefined by
   Dispatched when the bookmark positions corresponding to the message are available (file data downloaded and parsed).PositionsManager
   Dispatched when the mouth positions corresponding to the message are available (file data downloaded and parsed).PositionsManager
   Dispatched when the word positions corresponding to the message are available (file data downloaded and parsed).PositionsManager
Public Constants
 ConstantDefined by
  BOOKMARK_POSITIONS_AVAILABLE : String = "bookmarkPositionsAvailable"
[static] The PositionsManager.WORD_POSITIONS_AVAILABLE constant defines the value of the type property of an bookmarkPositionsAvailable event object.
PositionsManager
  MOUTH_POSITIONS_AVAILABLE : String = "mouthPositionsAvailable"
[static] The PositionsManager.WORD_POSITIONS_AVAILABLE constant defines the value of the type property of an mouthPositionsAvailable event object.
PositionsManager
  WORD_POSITIONS_AVAILABLE : String = "wordPositionsAvailable"
[static] The PositionsManager.WORD_POSITIONS_AVAILABLE constant defines the value of the type property of an wordPositionsAvailable event object.
PositionsManager
Property detail
bookmarkPositionsproperty
bookmarkPositions:Array  [read-only]

The table of bookmark positions associated to this PositionsManager instance.

It containt the details information of the bookmark positions

Each element in this table is a BookmarkPosition instance. You should access it only from the WORD_POSITIONS_AVAILABLE event handlers.

Implementation
    public function get bookmarkPositions():Array

See also

mouthPositionsproperty 
mouthPositions:Array  [read-only]

The table of mouth positions associated to this PositionsManager instance.

It contains the details information of the mouth positions

Each element in this table is a MouthPosition instance. You should access it only from the WORD_POSITIONS_AVAILABLE event handlers.

Implementation
    public function get mouthPositions():Array

See also

wordPositionsproperty 
wordPositions:Array  [read-only]

The table of word positions associated to this PositionsManager instance.

It contains the details information of the word positions

Each element in this table is a WordPosition instance. You should access it only from the WORD_POSITIONS_AVAILABLE event handlers.

Implementation
    public function get wordPositions():Array

See also

Constructor detail
PositionsManager()constructor
public function PositionsManager(connector:Connector)

constructor: use it to create a new PositionsManager object instance.

Parameters
connector:Connector
Event detail
bookmarkPositionsAvailableevent 
Event object type: flash.event.Event
Event.type property = com.acapela.vaas.advanced.synchro.PositionsManager.BOOKMARK_POSITIONS_AVAILABLE

Dispatched when the bookmark positions corresponding to the message are available (file data downloaded and parsed).

The PositionsManager.WORD_POSITIONS_AVAILABLE constant defines the value of the type property of an bookmarkPositionsAvailable event object.

This event has the following properties:
PropertyDescription
bubblesfalse
cancelablefalse
target The PositionsManager instance that generated it.

You can access to the tableau data corresponding to the bookmark positions using bookmarkPositions property of this instance.
mouthPositionsAvailableevent  
Event object type: flash.event.Event
Event.type property = com.acapela.vaas.advanced.synchro.PositionsManager.MOUTH_POSITIONS_AVAILABLE

Dispatched when the mouth positions corresponding to the message are available (file data downloaded and parsed).

The PositionsManager.WORD_POSITIONS_AVAILABLE constant defines the value of the type property of an mouthPositionsAvailable event object.

This event has the following properties:
PropertyDescription
bubblesfalse
cancelablefalse
target The PositionsManager instance that generated it.

You can access to the tableau data corresponding to the word positions using mouthPositions property of this instance.
wordPositionsAvailableevent  
Event object type: flash.event.Event
Event.type property = com.acapela.vaas.advanced.synchro.PositionsManager.WORD_POSITIONS_AVAILABLE

Dispatched when the word positions corresponding to the message are available (file data downloaded and parsed).

The PositionsManager.WORD_POSITIONS_AVAILABLE constant defines the value of the type property of an wordPositionsAvailable event object.

This event has the following properties:
PropertyDescription
bubblesfalse
cancelablefalse
target The PositionsManager instance that generated it.

You can access to the tableau data corresponding to the word positions using wordPositions property of this instance.
Constant detail
BOOKMARK_POSITIONS_AVAILABLEconstant
public static const BOOKMARK_POSITIONS_AVAILABLE:String = "bookmarkPositionsAvailable"

The PositionsManager.WORD_POSITIONS_AVAILABLE constant defines the value of the type property of an bookmarkPositionsAvailable event object.

This event has the following properties:
PropertyDescription
bubblesfalse
cancelablefalse
target The PositionsManager instance that generated it.

You can access to the tableau data corresponding to the bookmark positions using bookmarkPositions property of this instance.

See also

com.acapela.vaas.avanced.synchro.PositionManager.bookmarkPositionsAvailable
MOUTH_POSITIONS_AVAILABLEconstant 
public static const MOUTH_POSITIONS_AVAILABLE:String = "mouthPositionsAvailable"

The PositionsManager.WORD_POSITIONS_AVAILABLE constant defines the value of the type property of an mouthPositionsAvailable event object.

This event has the following properties:
PropertyDescription
bubblesfalse
cancelablefalse
target The PositionsManager instance that generated it.

You can access to the tableau data corresponding to the word positions using mouthPositions property of this instance.

See also

com.acapela.vaas.avanced.synchro.PositionManager.mouthPositionsAvailable
WORD_POSITIONS_AVAILABLEconstant 
public static const WORD_POSITIONS_AVAILABLE:String = "wordPositionsAvailable"

The PositionsManager.WORD_POSITIONS_AVAILABLE constant defines the value of the type property of an wordPositionsAvailable event object.

This event has the following properties:
PropertyDescription
bubblesfalse
cancelablefalse
target The PositionsManager instance that generated it.

You can access to the tableau data corresponding to the word positions using wordPositions property of this instance.

See also

com.acapela.vaas.avanced.synchro.PositionManager.wordPositionsAvailable