Screen user input for special characters and spaces?

I’m just wondering if there’s an easier way to screen user input for special characters like spaces, ,@, $, *, etc…

I don’t want them to input special characters because it will be use as a table name in sqlite.

As far as I can see there’s no TextField inputType that limits users to input special char.

Right now I have a table of special characters and I just compare each letter of the user’s input to that table. [import]uid: 121875 topic_id: 24166 reply_id: 324166[/import]

in the began phase of the input textfield handler add an enterFrame listener, which checks whether the last character entered is allowed. if it is not allowed remove the character from the textfield.

in the submitted phase, remove the enterFrame listener.

[import]uid: 6459 topic_id: 24166 reply_id: 97581[/import]

how would you do this? have a list of all characters that isn’t allowed?

how would you do this? have a list of all characters that isn’t allowed?