Created
June 17, 2015 02:44
-
-
Save diverted247/be5381f3f0df3afa5f6b to your computer and use it in GitHub Desktop.
New Child Event Syntax - Allows you to put a click event on ever character
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
var text = new txt.Text( { | |
text:'The fox jumped over the log.', | |
font:'raleway', | |
align:txt.Align.TOP_RIGHT, | |
tracking:-4, | |
character:{ | |
click:function( event ){ | |
console.log( 'click'); | |
} | |
}, | |
lineHeight:120, | |
width:600, | |
height:360, | |
size:120, | |
x:10, | |
y:10 | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment