1568 posts
  • Bought between 10 and 49 items
  • Exclusive Author
  • Has been a member for 6-7 years
  • India
  • Referred between 1 and 9 users
  • Sold between 100 and 1 000 dollars
rahulbist says

hi everyone,

I am not an expert with flash.
I want to know how to take text to the next line with actionscript 2.0
e.g. Twinkle twinkle little star
      how i wonder what you are

I want the line “how I wonder what you are” to come to next line below the first line . i want to write the poem through actionscript by creating textfield.

do anyone help me?

thanks in advance

3868 posts
  • Author had a Free File of the Month
  • Beta Tester
  • Bought between 100 and 499 items
  • Contributed a Blog Post
  • Contributed a Tutorial to a Tuts+ Site
  • Exclusive Author
  • Has been a member for 7-8 years
+4 more
flashjunkie says

make it a htmlText field and use this code…

mytext_txt.htmlText = "Twinkle Twinkle Little Star<br />How I Wonder What You Are";
765 posts
  • Bought between 1 and 9 items
  • Exclusive Author
  • Has been a member for 6-7 years
  • India
  • Referred between 10 and 49 users
  • Sold between 1 000 and 5 000 dollars
benny_dh says
Twinkle Twinkle Little Star
How I Wonder What You Are”;

you guys are pretty funny :D :D :D

765 posts
  • Bought between 1 and 9 items
  • Exclusive Author
  • Has been a member for 6-7 years
  • India
  • Referred between 10 and 49 users
  • Sold between 1 000 and 5 000 dollars
benny_dh says

click and select the Dynamic Text and then select “Multi Line” in the properties Panel

691 posts
  • Bought between 10 and 49 items
  • Canada
  • Exclusive Author
  • Has been a member for 7-8 years
  • Sold between 5 000 and 10 000 dollars
geoken says
click and select the Dynamic Text and then select “Multi Line” in the properties Panel

The problem is that he’s trying to force the new line to start before it reaches the end of the text box.

3072 posts
  • Has been a member for 6-7 years
  • Won a Competition
  • Sold between 50 000 and 100 000 dollars
  • Bought between 10 and 49 items
  • Referred between 50 and 99 users
  • Exclusive Author
  • Romania
wickedpixel says

Without html text all he needs is to add \n in the texts… + multiline enabled…

“First line \n Second line”

572 posts
  • Bought between 10 and 49 items
  • Exclusive Author
  • France
  • Has been a member for 6-7 years
  • Referred between 100 and 199 users
  • Sold between 10 000 and 50 000 dollars
wildwise says

another way to do it is to put your field “multiline”, then write it like this

myText.text = "this is my first line" + newline + "this is my line number 2";

or 

myText.text = "this is my first line";
myText.text += newline;
myText.text += "this is my line number 2";
by
by
by
by
by
by