how to split continuous text in a variable into two text-variables...?

Ask a Question related to Macromedia Flash, Design and Development.

  1. #1

    Default how to split continuous text in a variable into two text-variables...?

    Hi,

    i have a little problem.

    i need to split a continuous text-variable into two text-variables but in
    whole words!
    so i can show these two variables in a dynamic text-field...

    example of loaded text:
    variable1="this is my loaded text. i need to split these text. otherwise the
    text is running out of the text field"

    and now i want this:
    variable1="this is my loaded text. i need to split these text."
    variable2="otherwise the text is running out of the text field"

    is this possible in flash (5)? and how?

    greetings, megaron


    bp-fan Guest

  2. Similar Questions and Discussions

    1. Text and variables
      Hello Forums, Just for some fun, i'm trying to make something somewhat similar to a stat calculator. I'm testing out my design using the base for...
    2. Setting PHP Variable to a combination of text and another variables value
      I am trying to set a variable in PHP to a concatinated version of another variable with some text Current I know that both of these two line...
    3. variables to text box
      Why won't this code work? The first part is in an swf that has been loaded into an emptymovie clip. It works. The trace whichQuestion also shows...
    4. Split Text Block into Paragraphs
      I have this large text block, but I would like to split it into smaller ones by a number of characters. It needs to _split at whole words_, and not...
    5. Split text into two columns
      Hi I want to be able to split the contents of a text field into two or maybe three columns. The text field contains text AND HTML mark-up. My...
  3. #2

    Default Re: how to split continuous text in a variable into two text-variables...?

    use split .. see the help.


    Jeckyl Guest

  4. #3

    Default Re: how to split continuous text in a variable into two text-variables...?

    bp-fan <spamcheck23@email.de> wrote:
    > Hi,
    >
    > i have a little problem.
    >
    > i need to split a continuous text-variable into two text-variables but in
    > whole words!
    > so i can show these two variables in a dynamic text-field...
    >
    > example of loaded text:
    > variable1="this is my loaded text. i need to split these text. otherwise the
    > text is running out of the text field"
    >
    > and now i want this:
    > variable1="this is my loaded text. i need to split these text."
    > variable2="otherwise the text is running out of the text field"
    >
    > is this possible in flash (5)? and how?
    Have you set your textfield to "multiple lines" and "wrap"? You can also
    use _height=auto to make sure it will get all your text.

    HTH
    --
    Knut Einar Skjær
    [url]www.rsd.no[/url]
    knut einar skjær Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139