Flash CS3 Documentation |
|||
| Flash Lite 2.x ActionScript Language Reference > ActionScript classes > Video > onStatus (Video.onStatus handler) | |||
onStatus = function(infoObject:Object) {}
Callback handler that can be invoked by the device to indicate status or error conditions.
infoObject:Object - The infoObject parameter has two properties:
code:String -- Description of the error or status condition (device specific).level:Number -- Zero for error and non-zero for success (device specific).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