Last active
January 2, 2016 22:16
-
-
Save fabiobiondi/7f000d189397794839dd to your computer and use it in GitHub Desktop.
EaselJS Custom Display Object in ES6 - v.0.0.1
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
import MyButton from './MyButton.js'; | |
const stage = new createjs.Stage("demo"); | |
const btn = new MyButton('red'); | |
stage.addChild(btn); | |
btn.x = 100; | |
btn.y = 100; | |
stage.update(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment