From a41a87730af01aa664ee010f024655be2424627e Mon Sep 17 00:00:00 2001 From: s_kimura Date: Thu, 28 Nov 2013 12:19:00 +0900 Subject: [PATCH] added type information to tweenjs-test.ts and loadHandler method of soundjs-test.ts. --- soundjs/soundjs-tests.ts | 2 +- tweenjs/tweenjs-tests.ts | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/soundjs/soundjs-tests.ts b/soundjs/soundjs-tests.ts index d3b60908a..39a0581b5 100644 --- a/soundjs/soundjs-tests.ts +++ b/soundjs/soundjs-tests.ts @@ -5,7 +5,7 @@ // Feature set example: createjs.Sound.addEventListener("fileload", createjs.proxy(this.loadHandler, this)); createjs.Sound.registerSound("path/to/mySound.mp3|path/to/mySound.ogg", "sound"); -function loadHandler(event):void { +function loadHandler(event:Object):void { // This is fired for each sound that is registered. var instance: createjs.SoundInstance = createjs.Sound.play("sound"); // play using id. Could also use full sourcepath or event.src. instance.addEventListener("complete", createjs.proxy(this.handleComplete, this)); diff --git a/tweenjs/tweenjs-tests.ts b/tweenjs/tweenjs-tests.ts index d05c8d9ac..5cb3b79c6 100644 --- a/tweenjs/tweenjs-tests.ts +++ b/tweenjs/tweenjs-tests.ts @@ -2,12 +2,11 @@ /// var target: createjs.DisplayObject = new createjs.DisplayObject(); -var Tween: createjs.Tween = createjs.Tween; // source : http://www.createjs.com/Docs/TweenJS/modules/TweenJS.html // Chainable modules : target.alpha = 1; -Tween.get(target).wait(500, false).to({ alpha: 0, visible: false }, 1000).call(onComplete); +createjs.Tween.get(target).wait(500, false).to({ alpha: 0, visible: false }, 1000).call(onComplete); function onComplete() { //Tween complete } \ No newline at end of file