Class MovieClip

Hierarchy

Index

Constructor methods

Properties

Methods

Constructor methods

constructor(mode?: string, startPosition?: number, loop?: boolean, labels?: Object): MovieClip

Parameters

  • mode?: string optional
  • startPosition?: number optional
  • loop?: boolean optional
  • labels?: Object optional

Returns

MovieClip

Properties

public static INDEPENDENT: string

public static SINGLE_FRAME: string

public static SYNCHED: string

public actionsEnabled: boolean

public alpha: number

public autoReset: boolean

public static buildDate: string

public cacheCanvas: any

public cacheID: number

public children: DisplayObject[]

public compositeOperation: string

public currentFrame: number

public cursor: string

public filters: Filter[]

public frameBounds: Rectangle[]

public hitArea: DisplayObject

public id: number

public loop: boolean

public mask: Shape

public mode: string

public mouseChildren: boolean

public mouseEnabled: boolean

public name: string

public parent: Container

public paused: boolean

public regX: number

public regY: number

public rotation: number

public scaleX: number

public scaleY: number

public shadow: Shadow

public skewX: number

public skewY: number

public snapToPixel: boolean

deprecated

public startPosition: number

public tickChildren: boolean

public tickEnabled: boolean

public timeline: Timeline

public static version: string

public visible: boolean

public x: number

public y: number

Methods

public addChild(child?: DisplayObject[]): DisplayObject

Parameters

Returns

DisplayObject

public addChildAt(child: DisplayObject, index: number): DisplayObject

Parameters

Returns

DisplayObject

public addChildAt(childOrIndex?: Array<any>): DisplayObject

Parameters

  • childOrIndex?: Array<any> optional

Returns

DisplayObject

public addEventListener(type: string, listener: (eventObj: Object) => boolean, useCapture?: boolean): Function

Parameters

  • type: string
  • listener: (eventObj: Object) => boolean
  • useCapture?: boolean optional

Returns

Function

public addEventListener(type: string, listener: (eventObj: Object) => void, useCapture?: boolean): Function

Parameters

  • type: string
  • listener: (eventObj: Object) => void
  • useCapture?: boolean optional

Returns

Function

public addEventListener(type: string, listener: { handleEvent: (eventObj: Object) => boolean; }, useCapture?: boolean): Object

Parameters

  • type: string
  • listener: { handleEvent: (eventObj: Object) => boolean; }
  • useCapture?: boolean optional

Returns

Object

public addEventListener(type: string, listener: { handleEvent: (eventObj: Object) => void; }, useCapture?: boolean): Object

Parameters

  • type: string
  • listener: { handleEvent: (eventObj: Object) => void; }
  • useCapture?: boolean optional

Returns

Object

public cache(x: number, y: number, width: number, height: number, scale?: number)

Parameters

  • x: number
  • y: number
  • width: number
  • height: number
  • scale?: number optional

public clone(): MovieClip

Returns

MovieClip

public contains(child: DisplayObject): boolean

Parameters

Returns

boolean

public dispatchEvent(eventObj: Object, target?: Object): boolean

Parameters

  • eventObj: Object
  • target?: Object optional

Returns

boolean

public dispatchEvent(eventObj: string, target?: Object): boolean

Parameters

  • eventObj: string
  • target?: Object optional

Returns

boolean

public dispatchEvent(eventObj: createjs.Event, target?: Object): boolean

Parameters

  • eventObj: createjs.Event
  • target?: Object optional

Returns

boolean

public draw(ctx: CanvasRenderingContext2D, ignoreCache?: boolean): boolean

Parameters

  • ctx: CanvasRenderingContext2D
  • ignoreCache?: boolean optional

Returns

boolean

public getBounds(): Rectangle

Returns

Rectangle

public getCacheDataURL(): string

Returns

string

public getChildAt(index: number): DisplayObject

Parameters

  • index: number

Returns

DisplayObject

public getChildByName(name: string): DisplayObject

Parameters

  • name: string

Returns

DisplayObject

public getChildIndex(child: DisplayObject): number

Parameters

Returns

number

public getConcatenatedMatrix(mtx?: Matrix2D): Matrix2D

Parameters

Returns

Matrix2D

public getCurrentLabel(): string

Returns

string

public getLabels(): Array<Object>

Returns

Array<Object>

public getMatrix(matrix?: Matrix2D): Matrix2D

Parameters

Returns

Matrix2D

public getNumChildren(): number

Returns

number

public getObjectUnderPoint(x: number, y: number): DisplayObject

Parameters

  • x: number
  • y: number

Returns

DisplayObject

public getObjectsUnderPoint(x: number, y: number): DisplayObject[]

Parameters

  • x: number
  • y: number

Returns

DisplayObject[]

public getStage(): Stage

Returns

Stage

public getTransformedBounds(): Rectangle

Returns

Rectangle

public globalToLocal(x: number, y: number): Point

Parameters

  • x: number
  • y: number

Returns

Point

public gotoAndPlay(positionOrLabel: string)

Parameters

  • positionOrLabel: string

public gotoAndPlay(positionOrLabel: number)

Parameters

  • positionOrLabel: number

public gotoAndStop(positionOrLabel: string)

Parameters

  • positionOrLabel: string

public gotoAndStop(positionOrLabel: number)

Parameters

  • positionOrLabel: number

public hasEventListener(type: string): boolean

Parameters

  • type: string

Returns

boolean

public hitTest(x: number, y: number): boolean

Parameters

  • x: number
  • y: number

Returns

boolean

public isVisible(): boolean

Returns

boolean

public localToGlobal(x: number, y: number): Point

Parameters

  • x: number
  • y: number

Returns

Point

public localToLocal(x: number, y: number, target: DisplayObject): Point

Parameters

Returns

Point

public off(type: string, listener: (eventObj: Object) => boolean, useCapture?: boolean)

Parameters

  • type: string
  • listener: (eventObj: Object) => boolean
  • useCapture?: boolean optional

public off(type: string, listener: (eventObj: Object) => void, useCapture?: boolean)

Parameters

  • type: string
  • listener: (eventObj: Object) => void
  • useCapture?: boolean optional

public off(type: string, listener: { handleEvent: (eventObj: Object) => boolean; }, useCapture?: boolean)

Parameters

  • type: string
  • listener: { handleEvent: (eventObj: Object) => boolean; }
  • useCapture?: boolean optional

public off(type: string, listener: { handleEvent: (eventObj: Object) => void; }, useCapture?: boolean)

Parameters

  • type: string
  • listener: { handleEvent: (eventObj: Object) => void; }
  • useCapture?: boolean optional

public off(type: string, listener: Function, useCapture?: boolean)

Parameters

  • type: string
  • listener: Function
  • useCapture?: boolean optional

public on(type: string, listener: (eventObj: Object) => boolean, scope?: Object, once?: boolean, data?: any, useCapture?: boolean): Function

Parameters

  • type: string
  • listener: (eventObj: Object) => boolean
  • scope?: Object optional
  • once?: boolean optional
  • data?: any optional
  • useCapture?: boolean optional

Returns

Function

public on(type: string, listener: (eventObj: Object) => void, scope?: Object, once?: boolean, data?: any, useCapture?: boolean): Function

Parameters

  • type: string
  • listener: (eventObj: Object) => void
  • scope?: Object optional
  • once?: boolean optional
  • data?: any optional
  • useCapture?: boolean optional

Returns

Function

public on(type: string, listener: { handleEvent: (eventObj: Object) => boolean; }, scope?: Object, once?: boolean, data?: any, useCapture?: boolean): Object

Parameters

  • type: string
  • listener: { handleEvent: (eventObj: Object) => boolean; }
  • scope?: Object optional
  • once?: boolean optional
  • data?: any optional
  • useCapture?: boolean optional

Returns

Object

public on(type: string, listener: { handleEvent: (eventObj: Object) => void; }, scope?: Object, once?: boolean, data?: any, useCapture?: boolean): Object

Parameters

  • type: string
  • listener: { handleEvent: (eventObj: Object) => void; }
  • scope?: Object optional
  • once?: boolean optional
  • data?: any optional
  • useCapture?: boolean optional

Returns

Object

public play()

public removeAllChildren()

public removeAllEventListeners(type?: string)

Parameters

  • type?: string optional

public removeChild(child?: DisplayObject[]): boolean

Parameters

Returns

boolean

public removeChildAt(index?: Array<number>): boolean

Parameters

  • index?: Array<number> optional

Returns

boolean

public removeEventListener(type: string, listener: (eventObj: Object) => boolean, useCapture?: boolean)

Parameters

  • type: string
  • listener: (eventObj: Object) => boolean
  • useCapture?: boolean optional

public removeEventListener(type: string, listener: (eventObj: Object) => void, useCapture?: boolean)

Parameters

  • type: string
  • listener: (eventObj: Object) => void
  • useCapture?: boolean optional

public removeEventListener(type: string, listener: { handleEvent: (eventObj: Object) => boolean; }, useCapture?: boolean)

Parameters

  • type: string
  • listener: { handleEvent: (eventObj: Object) => boolean; }
  • useCapture?: boolean optional

public removeEventListener(type: string, listener: { handleEvent: (eventObj: Object) => void; }, useCapture?: boolean)

Parameters

  • type: string
  • listener: { handleEvent: (eventObj: Object) => void; }
  • useCapture?: boolean optional

public removeEventListener(type: string, listener: Function, useCapture?: boolean)

Parameters

  • type: string
  • listener: Function
  • useCapture?: boolean optional

public set(props: Object): Container

Parameters

  • props: Object

Returns

Container

public setBounds(x: number, y: number, width: number, height: number)

Parameters

  • x: number
  • y: number
  • width: number
  • height: number

public setChildIndex(child: DisplayObject, index: number)

Parameters

public setTransform(x?: number, y?: number, scaleX?: number, scaleY?: number, rotation?: number, skewX?: number, skewY?: number, regX?: number, regY?: number): Container

Parameters

  • x?: number optional
  • y?: number optional
  • scaleX?: number optional
  • scaleY?: number optional
  • rotation?: number optional
  • skewX?: number optional
  • skewY?: number optional
  • regX?: number optional
  • regY?: number optional

Returns

Container

public sortChildren(sortFunction: (a: createjs.DisplayObject, b: createjs.DisplayObject) => number)

Parameters

  • sortFunction: (a: createjs.DisplayObject, b: createjs.DisplayObject) => number

public stop()

public swapChildren(child1: DisplayObject, child2: DisplayObject)

Parameters

public swapChildrenAt(index1: number, index2: number)

Parameters

  • index1: number
  • index2: number

public toString(): string

Returns

string

public uncache()

public updateCache(compositeOperation?: string)

Parameters

  • compositeOperation?: string optional

public updateContext(ctx: CanvasRenderingContext2D)

Parameters

  • ctx: CanvasRenderingContext2D

public willTrigger(type: string): boolean

Parameters

  • type: string

Returns

boolean