LoadEvent

Kind of class:public class
Package:org.casalib.events
Inherits from:ProgressEvent
Known subclasses:
Dispatched by:
Version:10/27/08
Author:Aaron Clinger
Classpath:org.casalib.events.LoadEvent
File last modified:Wednesday, 31 December 2008, 20:18:28
An event dispatched during loading.

Summary


Constructor
  • LoadEvent (type:String, bubbles:Boolean = false, cancelable:Boolean = false)
    • Creates a new LoadEvent.
Constants
Instance properties
  • progress : Percent
    • The percent that the requested file has loaded.
  • Bps : int
    • The current download speed of the requested file in bytes per second.
Instance methods

Constructor

LoadEvent

public function LoadEvent (
type:String, bubbles:Boolean = false, cancelable:Boolean = false)

Creates a new LoadEvent.
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

COMPLETE

public static const COMPLETE:String = 'complete'
(read)

PROGRESS

public static const PROGRESS:String = 'progress'
(read)

START

public static const START:String = 'start'
(read)

STOP

public static const STOP:String = 'stop'
(read)

Instance properties

Bps

public Bps:int
(read,write)

The current download speed of the requested file in bytes per second.

progress

public progress:Percent
(read,write)

The percent that the requested file has loaded.

Instance methods

clone

override public function clone (
) : Event

Returns:
  • Duplicates an instance of the event.
Overrides:
  • ProgressEvent.clone

toString

override public function toString (
) : String

Returns:
  • A string containing all the properties of the event.
Overrides:
  • ProgressEvent.toString