Jump to content
Search Community

fr3d

Members
  • Posts

    2
  • Joined

  • Last visited

Everything posted by fr3d

  1. fr3d

    split text with canvas

    Hi, I am new with canvas so thank you for the clarification. fred
  2. Hello, I am trying to use splitText with text on a canvas. The js is exported from flash CC. (lib.download_free_app = function() { this.initialize(); this.text = new cjs.Text("download free app", "16px 'Proxima Nova Rg'", "#6D1930"); this.text.lineHeight = 16; this.text.setTransform(88,168); this.addChild(this.text); }).prototype = p = new cjs.Container(); p.nominalBounds = new cjs.Rectangle(0.3,0,122.2,23.5); mySplitText = new SplitText(download_free_app, {type:"chars,words"}); I am getting an error: TypeError: 'undefined' is not a function (evaluating 't.getElementsByTagName("*")') Any idea? Thank you, fred
×
×
  • Create New...