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";

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by