Class: FlashImageAsset

FlashImageAsset(flashElement, imageId)

new FlashImageAsset(flashElement, imageId)

Static asset referencing an image loaded by the Flash application.

Parameters:
Name Type Description
flashElement Element

HTML element with the Flash application that loaded the image.

imageId number

ID of the image inside the Flash application.

Implements:

Methods

destroy()

Destroys the instance.

Implements:

element() → {*}

Retrieves the element that will be used for rendering.

Implements:
Returns:

Something that the Texture can use to refresh itself. e.g. for CssTexture, this is some value that can be used in CanvasRenderingContext2D.drawImage().

Type
*

timestamp() → {number}

Retrieves a timestamp which identifies the current version of the Asset. This is used to prevent dynamic textures from refreshing when not necessary.

Implements:
Returns:
Type
number