You can use the SketchFlowAnimationTrigger trigger to add a trigger to a SketchFlow animation and specify the event that triggers the action that you want. For example, you can play a sound when your animation pauses, or trigger a state change based on a particular event, such as a mouse click.

To add a SketchFlowAnimationTrigger

  1. In the Assets panel, click Behaviors, and then drag the behavior that you want onto an object on the artboard. The Trigger category appears in the Properties panel.

  2. In the Trigger category, next to TriggerType (EventTrigger), click New. In the Select Object dialog box, click SketchFlowAnimationTrigger, and then click OK.

  3. In the Trigger category, select one of the following from the FiredOn drop-down list:

    • Completed   Fires the specified event when the SketchFlow animation has finished.

    • Paused   Fires the specified event when the SketchFlow animation has paused.

    • FrameChanged   Fires the specified event each time the SketchFlow animation frame changes.

    SketchFlow Animation Trigger

  4. In the SketchFlowAnimation drop-down list, select the SketchFlow animation that you want to apply the trigger to.

To see a sample of this trigger, visit the Expression Community Gallery Ff724008.xtlink_newWindow(en-us,Expression.40).png.

Send feedback about this topic to Microsoft. © 2011 Microsoft Corporation. All rights reserved.