Interactions and action sequencesInteractions are events that occur in response to some user action, such as the click of a button. For example, the application can display a new page when a user clicks a button. In this case, you define an interaction triggered by clicking that button. ![]() With an interactive component button selected, you can use
the Interactions panel to connect your buttons to view states in
your project. Flash Catalyst CS5 has many built-in interactions that you can quickly add to components or grouped objects, including:
![]() From the Interactions panel, choose the event that triggers
the interaction, such as On Click. Then choose the response to that
event, such as Play Video. Last, choose the state where that interaction occurs. Add interactionsYou can add interactions to components or grouped artwork. Use groups to hold interactions when you don't need a reusable component.
Create action sequencesAction sequences are interactions that trigger one or more actions. Action sequences occur within a single state, so they can play over and over. For example, you can have an object that animates each time a user moves the pointer over it. The types of actions that are available include:
Action sequences are added to components or groups using the interactions panel. Note: To add an action sequence to a component or group within another component,
double-click the parent component to open it in Edit-In-Place mode.
Edit an action sequenceAction sequences are edited in the Timelines panel. Editing an action is similar to editing a transition.
On Application Start interactionsYou can create an interaction that plays automatically when someone starts the application. This is called an On Application Start interaction. For the interaction type, you can choose to play a transition to state, go to a URL, control a video, or play an action sequence. For example, you use an On Application Start interaction to trigger an action sequence that plays a SWF file. When you add an action sequence, you can use the create an On Application Start interaction, make sure that nothing is selected in the artboard when you click Add Interaction. The actions you define occur as soon as the application starts. To do this:
![]() On Application Start interaction that plays a SWF movie from
a specific frame Conditional interactionsConditional interactions are behaviors predicated upon some condition. For example, clicking a Next button takes the user viewing page 1 to page 2, and the user viewing page 2 to page 3. Conditional interactions are added just like any other interaction. The only difference is that you change the conditional setting from When In Any State to something more specific. Conditional list interactionsYou can add conditional interactions to a data list that trigger an action when someone selects an item in the list. The list can be images or text. Conditional interactions are similar to other interaction. The difference is that the conditional setting, When In Any State, becomes When Any Item Is Selected or When A Specific Item Is Selected. If you choose When A Specific Item Is Selected, you enter the number of the item in the list that triggers the interaction. ![]() Conditional list interaction |
|