Using the ToggleSwitch component


show more Using the ToggleSwitch component provides you with in-depth training on Developer. Taught by James Talbot as part of the Flex 4.6 and AIR 3.0 New Features for Mobile Apps show less
please wait ...

Using the ToggleSwitch component

The new spark ToggleSwitch component defines a typical tablet control for defining a binary switch such as an on/off switch for an application. Clicking anywhere inside of the control toggles the state. We can also slide our thumb along the track to change the state, and we can even set the duration for how long that lasts. The default values for the unselected and selected labels are off if they're unselected or on if they are selected. We can also easily change the labels shown by defining a custom skin.

Let's explore how to use the brand-new ToggleSwitch component to build truly compelling tablet-based applications. So the first thing I want you to do is just import the Flash Builder project. This is our 1-5.fxp file. So go ahead and just import that and then click Finish, and I'm just going to run this really quickly to show you what we have. Okay, here is our toggle switch component. We don't have any toggle switches added in in the starting files here, so for those of...

Using the ToggleSwitch component
Video duration: 7m 42s 1h 49m Intermediate

Viewers:

Using the ToggleSwitch component provides you with in-depth training on Developer. Taught by James Talbot as part of the Flex 4.6 and AIR 3.0 New Features for Mobile Apps

Subject:
Developer
Software:
AIR Flash Builder Flex
Author:
please wait ...