Partager via


TimerTrigger

You can use the TimerTrigger trigger to invoke an action that is based on a timer.

To add a TimerTrigger

  1. 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.

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

    TimerTrigger

  3. 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 **Icône Sélecteur d'élément de la planche graphique 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.