Flash Builder
Cut down Flex in a Week
Watch the videos, indicated by the
icon;
then do the exercises indicated by the
icon.
You should do all of these before the timetabled workshop so that you can do the independent task at the end of this page during the workshop with the lecturer.
Section 4: Validating and formatting data
- Using formatters (9:17) covers:
- Using the formatter classes for displaying data
- Formatting dates
- Validating form data (14:54) video coving:
- Introducing client-side validation
- Using the
Validatorsubclasses - Triggering validation with events
- Triggering validation with ActionScript
- Validating form data
Independent Task
This task you can do in class if you want having first followed the videos and exercises above in your own time.
- Implement code that formats phone numbers appropriately, assume English style phone numbers with optional parens around the area code and spaces between sets of numbers.
- Create a validator that will prevent the user from entering a blank surname or forename, or a surname or forename with fewer that two characters.
Summary
There are a couple of extra pages linked to below, which contain optional topics you can cover if you want to. They are largely, though not exclusively, about things to make your application look better and behave in a slicker more professional manner —do them if you want to.