Long time reader, first time question asker . . .
I have to use AS2 to parse a very long string into two text fields.
However - the catch is the second text field can only hold (x) characters (two words) and everything left over is pushed into the first text field.
I've started with two movie clips on my stage:
and now I need help. I can create the static string to test, but I'm not sure how to parse only 'some' of the text into one field and what ever is left into the second.
Any help would be greatly appreciated.
Look at the methods of the String class and try to figure out how to make use of one or two or more of them to break down the string.
It is not clear to me how you differentiate the last from the first. You should be able to make use of the substr() method to create the two separate strings from the one.