MACROMEDIA COLDFUSION MX 7.0.2-USING COLDFUSION MX WITH FLEX 2 Betriebsanweisung Seite 159

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 256
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 158
159
14
CHAPTER 14
Use View States
and Transitions
You can use view states and transitions in Adobe Flex to create richer, more interactive user
experiences. For example, you can use view states to create a user interface that changes its
appearance based on the task the user is performing.
A view state is a named layout that you define for a single MXML application or component.
You can define several view states for an application or component, and switch from one view
state to another depending on the user’s actions. View states allow you to dynamically change
the user interface in response to users’ actions or progressively reveal more information based
on the context.
A transition is one or more effects grouped together to play when a view state changes. The
purpose of a transition is to make the visual change smoother and more interesting.
This lesson shows you how to use view states and transitions to create a user interface that
reveals more information when users request it.
In this lesson, you’ll complete the following tasks:
Set up your project. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 160
Design the base state . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 160
Design a view state . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 164
Define how users switch view states . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 168
Create a transition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 171
NOTE
Alternatively, you can use the ViewStack navigator container with other navigator
containers to achieve similar results. For more information, see Chapter 16, “Using
Navigator Containers” in Flex 2 Developer’s Guide.
Seitenansicht 158
1 2 ... 154 155 156 157 158 159 160 161 162 163 164 ... 255 256

Kommentare zu diesen Handbüchern

Keine Kommentare