Video
713
close (Video.close method)
public close() : Void
Stops playback of the video, frees the memory associated with this Video object, and clears the
video area onscreen.
Availability:
ActionScript 2.0; Flash Lite 2.0
Example
The following example closes the video that is playing in a Video object named
video1
.
video1.close()
See also
play (Video.play method)
onStatus (Video.onStatus handler)
onStatus = function(infoObject:
Object
) {}
Callback handler that can be invoked by the device to indicate status or error conditions.
Availability:
ActionScript 2.0; Flash Lite 2.0
Parameters
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).
Example
The following example shows how to create a
Video.onStatus()
function that displays a
status or error condition.
v = new Video();
v.onStatus = function(o:Object)
{
if ( o.level )
{
trace( "Video Status Msg (" + o.level + "): " + o.code );
}
else
{
trace( "Video Status Error: " + o.code );
}
}
v.open("a.vid");
Summary of Contents for Flash Lite 2
Page 1: ...Flash Lite 2 x ActionScript Language Reference...
Page 22: ...22 Contents...
Page 244: ...244 ActionScript language elements...
Page 760: ...760 ActionScript classes...