API Documentation for: 0.6.0
Show:

FlashAudioLoader Class

Extends AbstractLoader
Defined in: FlashAudioLoader:40
Module: SoundJS

Loader provides a mechanism to preload Flash content via PreloadJS or internally. Instances are returned to the preloader, and the load method is called when the asset needs to be requested.

Methods

handleComplete

() protected

Defined in handleComplete:127

Called from Flash when sound is loaded. Set our ready state and fire callbacks / events

handleError

(
  • error
)
protected

Defined in handleError:137

Receive error event from flash and pass it to callback.

Parameters:

handleProgress

(
  • loaded
  • total
)
protected

Defined in handleProgress:116

called from flash when loading has progress

Parameters:

setFlash

(
  • flash
)

Defined in setFlash:88

Set the Flash instance on the class, and start loading on any instances that had load called before flash was ready

Parameters:

  • flash Object

    Flash instance that handles loading and playback

Properties

_preloadInstances

Array protected

A list of loader instances that tried to load before _flash was set

flash

Object | Embed protected

Defined in flash:72

A reference to the Flash instance that gets created.

flashId

String

Defined in flashId:55

ID used to facilitate communication with flash. Not doc'd because this should not be altered externally