EasyManua.ls Logo

MACROMEDIA FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE - Close (Video.close Method); Onstatus (Video.onstatus Handler)

MACROMEDIA FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE
780 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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");

Table of Contents

Related product manuals