Class Sprite

Hierarchy

Index

Constructor methods

Properties

Methods

Constructor methods

constructor(texture: Texture): Sprite

Parameters

Returns

Sprite

Properties

public alpha: number

public anchor: Point

public blendMode: number

public buttonMode: boolean

public children: DisplayObject[]

public click: IInteractionDataCallback

public filter: boolean

public height: number

public hitArea: IHitArea

public interactive: boolean

public mask: Graphics

public mousedown: IInteractionDataCallback

public mousemove: IInteractionDataCallback

public mouseout: IInteractionDataCallback

public mouseover: IInteractionDataCallback

public mouseup: IInteractionDataCallback

public mouseupoutside: IInteractionDataCallback

public parent: DisplayObjectContainer

public pivot: Point

public position: Point

public renderable: boolean

public rotation: number

public scale: Point

public stage: Stage

public tap: IInteractionDataCallback

public texture: Texture

public touchend: IInteractionDataCallback

public touchendoutside: IInteractionDataCallback

public touchmove: IInteractionDataCallback

public touchstart: IInteractionDataCallback

public visible: boolean

public width: number

public worldAlpha: number

Methods

public addChild(child: DisplayObject)

Parameters

public addChildAt(child: DisplayObject, index: number)

Parameters

public static fromFrame(frameId: string): Sprite

Parameters

  • frameId: string

Returns

Sprite

public static fromImage(url: string): Sprite

Parameters

  • url: string

Returns

Sprite

public getChildAt(index: number): DisplayObject

Parameters

  • index: number

Returns

DisplayObject

public removeChild(child: DisplayObject)

Parameters

public setInteractive(interactive: boolean)

Parameters

  • interactive: boolean

public setTexture(texture: Texture)

Parameters

public swapChildren(child: DisplayObject, child2: DisplayObject)

Parameters