FORUMS: list search recent posts

Flash Action Script

COW Forums : Adobe Flash

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Drew Holzinger
Flash Action Script
on Jan 12, 2011 at 12:37:09 am

I have a dynamic text field with the instance name price1_txt that has been restricted to just numbers using the code

price1_txt.restrict = "0-9";

it will only accept number but i need it to accept them with 2 decimal points since this is a dollar amount. I don't see and options for this in the properties window, is it in the code?

Return to posts index

Drew Holzinger
Re: Flash Action Script
on Jan 12, 2011 at 1:01:19 am

i changed

"0-9" to "0.00-9.99"

and that allows me to use decimals but i can use multiple decimals like "0.1232.666"

so my question still stands how does one restrict the possible input to numbers with one decimal point and 2 decimal places?

Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 All Rights Reserved