|
initialize Method
Description
This method initializes the state of the TruveoVideoSearch object.
Arguments
This method does not accept any arguments.
Syntax
The following code sample illustrates how this method can be invoked:
var TVS = new TruveoVideoSearch(appid);
...
TVS.initialize();
Return Value
This method returns no value.
Response Data Objects
This method does not update any data objects.
Events
This method can fire the following events:
|
onload
|
This event fires when the TruveoVideoSearch object
initialization is complete. When this event fires, it will pass one argument, 'eventObj', of type com.truveo.flash.TruveoLoadEvent to any handler attached to this event. In addition
to the standard properties associated with event objects in ActionScript, 'eventObj' will have a property 'reloadStateFlag' that will be set to
true if the TruveoVideoSearch object was just initialized following a return from the AOL account login page.
Event binding syntax: TVS.addEventListener('onload', myHandler);
|
|
onupdate
|
This event fires when a response to an Flash request
is received by the TruveoVideoSearch object. When this event fires, it will pass one argument, 'eventObj', of type com.truveo.flash.TruveoUpdateEvent to any handler attached to this event.
In addition to the standard properties associated with event objects in ActionScript, 'eventObj' will have a property
'methodName' that will be set to the name of the method that issued the original Flash request associated with this onupdate event.
Event binding syntax: TVS.addEventListener('onupdate', myHandler);
|
|
onerror
|
This event fires when an error occurs.
When this event fires, it will pass one argument, 'eventObj', of type com.truveo.flash.TruveoErrorEvent to any handler attached to this event. In addition to the standard
properties associated with event objects in ActionScript, 'eventObj' will have two properties set: 'errorCode' and 'errorMessage'. The value
of 'eventObj.errorCode' will be the numerical code assigned to the error and 'eventObj.errorMessage' will be a text message that describes the error.
Event binding syntax: TVS.addEventListener('onerror', myHandler);
|
Errors
If execution of this method is not successful, the errors with the following error codes can be thrown:
|
400
|
Bad API request or API Service unavailable. Check that the parameters to the request are correctly specified.
A method of the Flash API was called with incorrect arguments or the XML API service is unavailable.
|
|