A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: return in string

  1. #1
    Professional Air Guitarist Frag's Avatar
    Join Date
    Dec 2002
    Location
    Brain, Body, Clothes, Computer Chair, Room, House, Neighborhood, City, State, Country, Continent, World, Galaxy, Universe, and on?
    Posts
    811

    return in string

    is there a way to write:

    "The dog ran fast.

    The dog ran slow."

    using a string? What I mean is is there a way to skip a line between a given amount of text? Like a return key.

    -thanks

  2. #2
    HELP>>>ACTIONSCRIPT DICTIONARY
    Join Date
    Feb 2000
    Location
    In the Present Moment
    Posts
    1,041
    someField.htmlText="The dog ran fast\n\nThe dog ran slow.";

    Make sure you have a dynamic textfield with an instance name, in this example it is someField, and multiline turned on. You should drag out the field so that it is big enough to contain the text you wish to display in it.

    In the properties window for the text field, check the <> button or add another line of code:

    someField.html=1;

    Good Luck!
    Antibody
    "Our deepest fear is not that we are inadequate.
    Our deepest fear is that we are powerful beyond measure." - N. Mandela

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center