Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: Re: [flasher] reformat text (was NEED HELP PLEASE!)
From: Helen Triolo
Date: Sat, 10 Mar 2001 14:25:29 -0000

Patrick,

If your input field is sInput and your output field is sOutput, then
this will work (coded on a button):

on (release) {
delimiter = chr(13);
a = sInput.split(delimiter); // makes an array of the words
sOutput = a.join(" "); // joins the array elements into a
string
}

Regards,
Helen
-------------------------------------------------------------------
1240 Flash Answers from 424 people: http://i-technica.com/flashlist

Patrick Mullady wrote:
>
> I have an dynamic input field where the user will type in text that will
> have returns in it like so
>
> This
> is
> my
> text
>
> I would like to display that inputted text in another field as one line with
> spaces between the returns like so
>
> This is my text
>
> Any ideas on how to do this?
>
> Thanx.......
>
> ReTrOpUnK
> Digital Artist



[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]