FORUMS: list search recent posts

inserting line break in actionscript text

COW Forums : Adobe Flash

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
John McMullin
inserting line break in actionscript text
on Mar 20, 2008 at 10:32:05 am

Hello everyone,

I'm extremely new to Flash and I have this piece to code attached to a button to replace text in a dynamic text box:

on (release) {
text_box.text="line1 line2"
}


How do I put a line break in between the two lines? So that they display as

line1

line2

Obviously putting a return in after line1 just gives me errors and doesn't work.


Thanks for help on this probably basic thing.

John


Return to posts index

MA Carlson
Re: inserting line break in actionscript text
on Mar 20, 2008 at 1:19:45 pm

text_box.text="line1nline2";


check out the Help page entitled "About the escape character" for more



Return to posts index

John McMullin
Re: inserting line break in actionscript text
on Mar 20, 2008 at 1:47:01 pm

Thanks for help tip. I wouldn't have know the search term. That's my problem learning flash, knowing how to look up what I want to know. But my button is working now.


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 CreativeCOW.net All Rights Reserved
[TOP]