That sort of works - but not as well as the AS2 version i had

Your example calls the function twice - and the real problem is still that the textfield is updated before the function ran.

In the AS2 version.. if the user clicked the "." key --- the function checked to see if there already was a dot in the textfield - and if there was, it removed it.

With your AS3 version -- the user clicks the "." and for a second it appears in the textfield - the function runs, and it is removed. So you can see the dot for a second.

Although this works -- it just isnt quite as nice as the AS2 version.

If anyone has any other ideas - that would be great.

if not -- Thanks for the code Steven, it works better than mine