RetryableLoad

Kind of class:class
Inherits from:Load < EventDispatcher < CoreObject
Implements:
Known subclasses:
Version:12/22/06
Author:Aaron Clinger
Classpath:org.casalib.load.base.RetryableLoad
File last modified:Monday, 01 December 2008, 13:34:40
Retryable load class. Class needs to be extended further to function properly.
Since:
  • Flash Player 7
Events broadcasted to listeners:
  • onLoadRetry = function (sends:RetryableLoad, attempts:Number) {}

Summary


Class properties
Instance methods
  • setLoadRetries (loadRetries:Number) : Void
    • Sets the number of additional load attempts before failing.
  • destroy : Void
    • Removes any internal variables, intervals, enter frames, internal MovieClips and event observers to allow the object to be garbage collected.

Class properties

EVENT_LOAD_RETRY

static EVENT_LOAD_RETRY:String = 'onLoadRetry'
(read,write)

loadRetries

static loadRetries:Number = 2
(read,write)

Instance methods

destroy

function destroy (
) : Void

Removes any internal variables, intervals, enter frames, internal MovieClips and event observers to allow the object to be garbage collected.

Always call filePath before deleting last object pointer.
#

setLoadRetries

function setLoadRetries (
loadRetries:Number) : Void

Sets the number of additional load attempts before failing.
#
Parameters:
loadRetries:
Number of additional load retries.
#
Usage note:
  • Class defaults to 2 additional retries / 3 total load attempts.