Created
October 7, 2013 01:54
-
-
Save HAKASHUN/6861474 to your computer and use it in GitHub Desktop.
CreateJSのクラスを名前空間'createjs'を書かなくても実行できるようにする
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- createJSのライブラリを読み込む前に以下を実行する--> | |
<script> | |
var createjs = window; | |
</script> | |
<!-- createJSのライブラリを読み込む--> | |
<script src="http://code.createjs.com/createjs-2013.09.25.min.js"></script> | |
<!-- 実行ソース--> | |
<script> | |
var canvasEl = document.getElementById("myCanvas"); | |
//Stageクラスをcreatejs.Stageで参照しなくてもよくなる | |
var stage = new Stage(canvasEl); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment