| Package | com.acapela.vaas.advanced |
| Class | public class Connector |
| Inheritance | Connector flash.events.EventDispatcher |
This class handles the connection to the service and gives access to its features.
The message generation is made by the Synthesizer instance accessible from synthesizer of this class.
All the potential errors/warnings reported by the API are also dispatched by this class.
Note about authentication :
Our service is constantly evolving and we do our best to maintain backward compliance.
That is why there is different ways to proceed with authentication:
accountLogin, applicationLogin and password parameters of the constructor.
serviceURL parameters.
See also
| Property | Defined by | ||
|---|---|---|---|
| messageManager : MessageManager
[read-only]
the
MessageManager | Connector | ||
| player : Player
[read-only]
the
Player | Connector | ||
| positionsManager : PositionsManager
[read-only]
the
PositionsManager | Connector | ||
| synthesizer : Synthesizer
[read-only]
the
Synthesizer | Connector | ||
| Method | Defined by | ||
|---|---|---|---|
|
Connector(accountLogin:String, applicationLogin:String, password:String, serviceURL:String = null)
Create a new connector object instance.
| Connector | ||
| Event | Summary | Defined by | ||
|---|---|---|---|---|
| Dispatched when an error was reported as a result to a request. | Connector | |||
| Dispatched when an warning was reported as a result to a request. | Connector | |||
| messageManager | property |
messageManager:MessageManager [read-only]
the MessageManager instance associated to this Connector instance.
It allows for generating deleting/notifying messages.
Implementation public function get messageManager():MessageManager
| player | property |
player:Player [read-only]
the Player instance associated to this Connector instance.
It allows for generating and retrieving message with position managers options.
Implementation public function get player():Player
| positionsManager | property |
positionsManager:PositionsManager [read-only]
the PositionsManager instance associated to this Connector instance.
It allows for generating the word-positions, bookmark-positions, and mouth-positions.
Implementation public function get positionsManager():PositionsManager
| synthesizer | property |
synthesizer:Synthesizer [read-only]
the Synthesizer instance associated to this Connector instance.
It allows for generating new messages and retrieve existing ones.
Implementation public function get synthesizer():Synthesizer
See also
| Connector | () | constructor |
public function Connector(accountLogin:String, applicationLogin:String, password:String, serviceURL:String = null)Create a new connector object instance.
ParametersaccountLogin:String — your main account login (received from Acapela).
|
|
applicationLogin:String — the login of your application (received from Acapela / created by you), pass null |
|
password:String — the password associated to the application or, if no application, the password of the account.
|
|
serviceURL:String (default = null) — If you receive a service URL from acapela, copy it here (do not forget the ending slash "/" is there is one).If not, ommit this parameter, the default URL will be used. |
See also
| error | event |
com.acapela.vaas.advanced.events.VaasErrorEvent
com.acapela.vaas.advanced.events.VaasErrorEvent.ERROR
Dispatched when an error was reported as a result to a request.
You can access to the corresponding VaasError instance using error property of this event.
The VaasErrorEvent.ERROR constant defines the value of the type property of an error event object.
| Property | Description |
|---|---|
| bubbles | false |
| cancelable | false |
| error | The VaasError instance corresponding to this event |
| target | The Connector instance that generated it. |
| warning | event |
com.acapela.vaas.advanced.events.VaasWarningEvent
com.acapela.vaas.advanced.events.VaasWarningEvent.WARNING
Dispatched when an warning was reported as a result to a request.
You can access to the corresponding warning using warning property of this event.
The VaasErrorEvent.ERROR constant defines the value of the type property of an error event object.
| Property | Description |
|---|---|
| warning | The warning corresponding to this event |
| bubbles | false |
| cancelable | false |
| target | The Connector instance that generated it. |