EDOBE XDOM EM Manual do Utilizador Página 119

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 138
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 118
115
Use motion paths
Last updated 6/15/2014
Changing the references to the Timeline
Now that the Timeline contains labels, you can change the references in the JavaScript code.
1 Choose Window > Code, or press Ctrl+E (Windows)/Command+E (Mac OS).
The Code panel opens.
2 If it is not already selected, click the Full Code button to display the panel in Full Code mode.
All the code for the thumbnail events and actions are displayed in the single script pane.
3 Replace all the millisecond times in the stop() methods with your labels. The following lines of code should be
changed:
Change sym.stop(0); to sym.stop("fishermen");
Change sym.stop(1500); to sym.stop("statues");
Change sym.stop(3500); to sym.stop("houses");
Change sym.stop(5500); to sym.stop("monk");
Change sym.stop(7500); to sym.stop("women");
Note: Make sure that you are using straight quotation marks around your label names. The quotation marks are
es
sential for JavaScript to identify the names as a String (and not a variable). Straight quotes and curly quotes (or smart
quotes) are different characters in HTML and JavaScript and they are not interchangeable.
4 Preview your Edge Animate composition in a browser by choosing File > Preview in the browser, or pressing
Ctrl+Enter (Windows)/Command+Return (Mac OS).
Vista de página 118
1 2 ... 114 115 116 117 118 119 120 121 122 123 124 ... 137 138

Comentários a estes Manuais

Sem comentários