Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

14.2. View states in Flex

In Flex, each application, custom component, or view has at least one state, which is known as the default view state. You can define additional states by adding a state to the states property.

The default state is the original state of the components you code into your application. Other states modify that original state by setting properties or removing or adding child objects. The following snippet demonstrates how you can define two additional states:


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint