TimerTrigger |
You can use the TimerTrigger trigger to invoke an action that is based on a timer.
To add a TimerTrigger
-
In the Assets panel, click Behaviors, and then drag the behavior that you want onto the object that you want to apply the behavior to. The Trigger category appears in the Properties panel.
-
In the Trigger category, next to TriggerType (EventTrigger), click New. In the Select Object dialog box, click TimerTrigger, and then click OK.
-
In the Trigger category, set the following:
-
SourceObject���Specifies the element that you want. If the object that you want to apply the trigger to doesn't appear in the box, use the Artboard Element Picker� to select the object on the artboard. If the SourceObject is specified, you can set the EventName property. The timer will start when the specified event occurs.
-
MillisecondsPerTick���Specifies the time between invocations of the action, in milliseconds. By default, the value is 1000, or 1 second.
-
TotalTicks���Specifies an upper limit for the number of times the action will be invoked. By default, the value is set to Infinite. You can also type a number directly into the text box.
-
To see a sample of this behavior, visit the
��Copyright � 2010 by Microsoft Corporation. All rights reserved.