EDOBE XDOM EM Bedienungsanleitung Seite 57

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 138
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 56
53
Create animations using the Timeline
Last updated 6/15/2014
You can also click the Open Actions button on the left side of an element or symbol name in the Elements panel.
2 Select an event to trigger the action.
The Actions Editor appears with a code editor and a list of code snippets on the right.
3 Write the code for the event.
You can write your own code or use the code snippets to add common functions. For reference information, see the
Edge Animate API guide.
Use the Code editor
The Code editor gives you a complete view of the JavaScript code in your project. It also allows you to view the raw code
for the actions file.
1 Select Window > Code.
You can also press Ctrl+E (Windows) or Cmd+E (Macintosh).
2 Select an event or an element by clicking the Plus (+) icon on the left of Stage in the left sidebar.
3 To edit the entire JavaScript file, click the Full Code button on the upper right of the panel.
Add labels to the Timeline
You can insert labels on the Timeline and then use them as time references in function parameters. You can use a label
name as a parameter for any playback function expecting a timecode value. Labels let you create actions like playing or
seeking to a point on the Timeline.
To add a label:
1 Move the Playhead to the location you want.
2 Click the Insert Label button on the upper-right corner of the Timeline.
You can also press Ctrl+L (Windows) or Cmd+L (Macintosh).
3 Specify a name for the label.
4 When defining an action for an element in the code editor, use the label name as a parameter for playback functions
expecting a timecode value.
For example, instead of sym.play(1000), you can use sym.play('mylabel').
Seitenansicht 56
1 2 ... 52 53 54 55 56 57 58 59 60 61 62 ... 137 138

Kommentare zu diesen Handbüchern

Keine Kommentare