API Documentation for: 1.0.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:123

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

handleError

(
  • error
)
protected

Defined in handleError:133

Receive error event from flash and pass it to callback.

Parameters:

handleProgress

(
  • loaded
  • total
)
protected

Defined in handleProgress:112

called from flash when loading has progress

Parameters:

setFlash

(
  • flash
)

Defined in setFlash:84

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 private

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

flash

Object | Embed private

Defined in flash:68

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