Merge pull request #606 from studiollama/patch-1

Added gotoAndStop to BitmapAnimation in easeljs.d.ts and declare to modu...
This commit is contained in:
Boris Yankov
2013-06-13 12:58:08 -07:00
+6 -4
View File
@@ -11,14 +11,14 @@
*/
/// <reference path="../tweenjs/tweenjs.d.ts" />
/// <reference path="tweenjs.d.ts" />
// rename the native MouseEvent, to avoid conflit with createjs's MouseEvent
interface NativeMouseEvent extends MouseEvent {
}
module createjs {
declare module createjs {
// :: base classes :: //
export class DisplayObject {
@@ -155,13 +155,15 @@ module createjs {
spriteSheet: SpriteSheet;
// methods
constructor (spriteSheet: SpriteSheet);
constructor(spriteSheet: SpriteSheet);
advance(): void;
cache(): void;
clone(): BitmapAnimation;
getBounds(): Rectangle;
gotoAndPlay(frameOrAnimation: string): void;
gotoAndPlay(frameOrAnimation: number): void;
gotoAndStop(frameOrAnimation: string): void;
gotoAndStop (frameOrAnimation: number): void;
play(): void;
stop(): void;
updateCache(): void;
@@ -695,4 +697,4 @@ module createjs {
// methods
static get(): number;
}
}
}