Archive for October 19th, 2007

19
Oct

Creating a credit card validator in ActionScript

A loyal reader asked in a comment how one could go about creating a credit card validator using ActionScript instead of MXML. Peter loves his readers, so behold, my solution…

The following example shows how you can create a credit card validator using the CreditCardValidator and CreditCardValidatorCardType classes.

Full code after the jump.

Continue reading ‘Creating a credit card validator in ActionScript’

19
Oct

Determining when the selected radio button has changed

The following examples show how you can detect when the user has selected a different radio button by listening for the change event on the RadioButton control or RadioButtonGroup control.

Full code after the jump.

Continue reading ‘Determining when the selected radio button has changed’