PDA

View Full Version : simple question...



outback
February 26th, 2009, 04:06 PM
Hi all,

I'm having some problems with input text.

II'm using
mytext_txt.restrict = "0-9.-"

my only problem is that that the minus sign isn't working in can type everithing from 0 to 9 (0-9) and dots (.) but no minus sign (-)...

somenone please help!!!!

thanks for the attention.

creatify
February 26th, 2009, 04:51 PM
mytext_txttf.restrict = "0-9.\\-";

http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/text/TextField.html#restrict

outback
February 27th, 2009, 01:04 PM
thanks...

:)