VideoLoadEvent
| Kind of class: | public class |
|---|---|
| Package: | org.casalib.events |
| Inherits from: | LoadEvent < ProgressEvent |
| Dispatched by: | |
| Version: | 10/27/08 |
| Author: | Aaron Clinger |
| Classpath: | org.casalib.events.VideoLoadEvent |
| File last modified: | Monday, 01 December 2008, 11:16:36 |
An event dispatched from VideoLoad.
Summary
Constructor
- VideoLoadEvent (type:String, bubbles:Boolean = false, cancelable:Boolean = false)
- Creates a new VideoLoadEvent.
Constants
Instance properties
- millisecondsUntilBuffered : int
- The time remaining in milliseconds until the video has completely buffered.
- buffer : Percent
- The percent the video has buffered.
Constructor
VideoLoadEvent
public function VideoLoadEvent (
type:String,
bubbles:Boolean = false,
cancelable:Boolean = false)
Creates a new VideoLoadEvent.
Parameters:
type :
The type of event.
bubbles :
Determines whether the Event object participates in the bubbling stage of the event flow.
cancelable:
Determines whether the Event object can be canceled.
Constants
BUFFERED
public static const BUFFERED:String = 'buffered'
(read)
PROGRESS
public static const PROGRESS:String = 'progress'
(read)
Instance properties
buffer
The percent the video has buffered.
Usage note:
- VideoLoad will report
0percent until two seconds of load time has elapsed.
millisecondsUntilBuffered
public millisecondsUntilBuffered:int
(read,write)
The time remaining in milliseconds until the video has completely buffered.
Usage note:
- VideoLoad will report
-1milliseconds until two seconds of load time has elapsed.
Instance methods
clone
override public function clone (
) : Event
Returns:
- Duplicates an instance of the event.
Overrides:
toString
override public function toString (
) : String
Returns:
- A string containing all the properties of the event.
Overrides: