How to check if dynamic multiline textfield is empty

Hello everyone.

My question is quite simple although I can't find a good answer... I want to be able to check whether a multiline textfield is empty or not.

I tried this, but without result.

If (my_txt.text! = "")

{

do something;

}

If (my_txt.text.length! = 0)

{

do something;

}

Non of these work. I searched other forums and I realized that it could operate only on the single line textfield. But what about multiline?

use:

lockgun wrote:

Hello everyone.

My question is quite simple although I can't find a good answer... I want to be able to check whether a multiline textfield is empty or not.

I tried this, but without result.

If (stripWhiteF (my_txt.text)! = "")

{

do something;

} else {}

do something else;

}

function stripWhiteF(s:String):String {}

While (s.substr(s.Length-1) is"" | ") s.substr(s.Length-1) == '\r ' | s.substr(s.Length-1) == "r" | {s.substr(s.Length-1)=="\t")}

s = s.substr(0,s.length-1);

}

return s;

}

Tags: Adobe Animate

Similar Questions

Maybe you are looking for

  • MacKeeper install nightmare

    After installing the MacKeeper stupidly, I now have a guest user account that never existed since the first get this MBP. MacKeeper is eliminated, along with most of the BS, she has created. Using Malwarebytes that I also deleted /private/etc/St-up.s

  • Force the images open in a new tab rather than download it.

    Some pages Web force download of images with the image mime type change or (I think) with javascript.Is it possible to force all jpg/png/gif files open in a new tab when a direct link to it.

  • Re: laptop won't turn on

    I have a Satellite A215 who just won't turn on. I have the blue light flash on the power cable and battery. I tried to take out the battery and memory.I tried to use only the power cord power, but with no luck please please help got all my pics on la

  • Closing problems

    I use a HP s5310f, mem 4 GB, 600 gb hd, IE8, Norton 2010 All of a sudden, whenever I made a web page, I get the error message a problem has been detected (see stopwatch). I did not download anything except an ext file converter, that works very well.

  • Media Center losing channel tv help

    I have happiliy used the WMC to receive television over the past five years. However, often the information in the guide begins to disappear and using the download of TV Guide is not recover lost information "no data available" shows on the screen ma