5 Replies Latest reply on Jun 10, 2008 5:34 PM by Reynold Dreamweaver CS6

    dynamic Text field during runtime, word wrap

    Reynold Dreamweaver CS6 Level 1

      I have this code fragment on a frame:

      this.createTextField ("tData",this.getNextHighestDepth (),189,353,600,100);
      tData.text="Alcohol is a powerful drug cause by fermentation of sugars and is the active principle of intoxicating drinks";

      I have placed the text onstage during runtime, starting from 189, however, the text is longer than what I have specified. I have specified 600, 100. I do not want to increase the length. How do I wrap the text so that it fits instead of disappearing off the stage? What is the additional code I need to embed?