How to determine the index in a string for a line-break in Actionscript?
August 22, 2004 3:05 AM
Subscribe
Actionscript: Is there any way to determine the index in a string of a line-break, when that string is presented in a text field?
posted by FidelDonson to computers & internet (4 comments total)
//txtInput is an input text field
btnSubmit.onRelease = function()
{
var strInput:String = txtInput.text;
strInput = escape(strInput);
trace(strInput);
trace(strInput.indexOf("%0"));
}
posted by grumblebee at 5:32 AM on August 22, 2004