onStatus (Video.onStatus handler)

onStatus = function(infoObject:Object) {}

Callback handler that can be invoked by the device to indicate status or error conditions.

Parameters

infoObject:Object - The infoObject parameter has two properties:

Example

The following example shows how to create a Video.onStatus() function that displays a status or error condition.

var v:Video; // v is a Video object on the stage.
v.onStatus = function(o:Object)
{
    if ( o.level )
    {
        trace( "Video Status Msg (" + o.level + "): " + o.code );
    }
    else
    {
        trace( "Video Status Error: " + o.code );
    }
}
v.play("a.vid");

Flash CS3