text-tutorial-$15.lzx
<canvas height="200" width="100%" debug="true">
<debug x="200"/>
<font name="sansSerifFont" src="helmetr.ttf"/>
<script>
function writeOutBit() {
var myText = canvas.theField.text;
Debug.debug("%s", myText);
}
</script>
<button x="15" y="15" onclick="writeOutBit();">
Write part of line
</button>
<text x="45" y="60" width="150" height="75" multiline="true" name="theField">
<font face="sansSerifFont" size="12">Some lovely sample
text.
</font>
</text>
</canvas>
Cross References
Named Instances