1568 posts
  • Has been part of the Envato Community for over 6 years
  • Has referred 1+ members
  • Has sold $100+ on Envato Market
  • Has collected 10+ items on Envato Market
+2 more
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
  • Has been part of the Envato Community for over 7 years
  • Has referred 200+ members
  • Has sold $10,000+ on Envato Market
  • Has been a beta tester for an Envato feature
+9 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
  • Has been part of the Envato Community for over 6 years
  • Has referred 10+ members
  • Has sold $1,000+ on Envato Market
  • Has collected 1+ items on Envato Market
+2 more
benny_dh says
Twinkle Twinkle Little Star
How I Wonder What You Are”;

you guys are pretty funny :D :D :D

765 posts
  • Has been part of the Envato Community for over 6 years
  • Has referred 10+ members
  • Has sold $1,000+ on Envato Market
  • Has collected 1+ items on Envato Market
+2 more
benny_dh says

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

691 posts
  • Has been part of the Envato Community for over 7 years
  • Has sold $5,000+ on Envato Market
  • Located in Canada
  • Has collected 10+ items on Envato Market
+2 more
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 referred 50+ members
  • Has sold $40,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Had an item featured on Envato Market
+5 more
wickedpixel says

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

“First line \n Second line”

572 posts
  • Has been part of the Envato Community for over 7 years
  • Has referred 100+ members
  • Has sold $10,000+ on Envato Market
  • Has collected 10+ items on Envato Market
+4 more
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