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

Flash lite 2.x actionscript language reference
Hide thumbs Also See for FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE:
Table of Contents

Advertisement

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.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
— Description of the error or status condition (device specific).
code:String
— Zero for error and non-zero for success (device specific).
level:Number
Example
The following example shows how to create 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");
- The
parameter has two properties:
infoObject
function that displays a
Video.onStatus()
.
video1
Video
713

Advertisement

Table of Contents
loading

Table of Contents