We help IT Professionals succeed at work.
Get Started

multiline text box in flash as3

691 Views
Last Modified: 2012-05-09
Hi all. I have a text box that fills dynamically with quiz questions from an array. However the text doesn't automatically go down to the next line when it reaches the edge of the box it just continues off the edge of the stage. what i need to know how to do is to get the text to jump down onto the next line when with width dimension of the text box is filled. my as3 code is bellow here for the text box


 //create and position the textfield (question):
            questionField = new TextField();
            questionField.text = question;
   
            questionField.width = 476.05;
                  questionField.height = 50.00;
                  questionField.x = questionX;
            questionField.y = questionY;
                  questionField.setTextFormat(format);
            addChild(questionField);
Comment
Watch Question
Commented:
This problem has been solved!
Unlock 1 Answer and 2 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE