
129
Use motion paths
Last updated 6/15/2014
The next statement appears as follows:
mySymbolObject.stop(0);
6 Preview your Edge Animate composition in a browser by choosing File > Preview in your browser, or pressing
Ctrl+Enter (Windows)/Command+Return (Mac OS).
When you roll over the triangular button at the top of the Stage, the moreinfo symbol plays its animation, which
r
ev
eals the text box and text. When you roll off the button, the text box and text collapse.
Using jQuery Effects
The Edge Animate API offers a nice balance of power, flexibility, and ease-of-use to incorporate interactivity to your
designs and animations. Inserting script by simply clicking a button in the script panel is (mostly) foolproof. However,
adding a bit of jQuery to your scripts can often make your job easier. As you learned earlier in this lesson, jQuery is a
JavaScript library that was written specifically to make selecting elements on a web page and creating animations and
transitions simple. There are many jQuery methods for animating elements, such as a fade-in, fade-out, or slide-in and
slide-out. Since Edge Animate is fully compatible with JavaScript and jQuery, you can use these methods wherever you
see fit. Let’s examine one particular jQuery method, fadeToggle(). The method fadeToggle() animates an element's
transparency to fade up or fade down, depending on its current state. If the element is transparent, it will become
opaque. If the element is opaque, it will become transparent.
1 In a new Edge Animate composition, add a small rectangle and an image on the Stage. Name the rectangle
Rectangle, and the image Image.
Comentarios a estos manuales