Skip to Content
Adobe Edge Animate Preview 7: The Missing Manual
book

Adobe Edge Animate Preview 7: The Missing Manual

by Chris Grover
September 2012
Intermediate to advanced
282 pages
8h 19m
English
O'Reilly Media, Inc.
Content preview from Adobe Edge Animate Preview 7: The Missing Manual

Chapter 9. Helpful JavaScript Tricks

Here’s the payoff for learning the JavaScript/jQuery basics covered in Chapter 8. You can apply those skills to your Animate projects. One of the easiest ways to start is to use Animate’s triggers and action snippets to write code, and then apply your own modifications to customize that code. That’s exactly how this chapter begins. Then it presents yet another version of the photo gallery, using a nifty image source swapping technique. Along the way you learn how to change an element’s dimensions, position, and background colors the JavaScript/jQuery way. This chapter explains how you can simplify your code by assigning symbols and elements to variables. You’ll also learn to create Animate compositions that make decisions for themselves, through the use of conditional statements. Last, but not least, you’ll see how to control symbols’ independent timelines.

More Showing and Hiding Tricks

Chapter 5 showed several examples using the Show and Hide actions. Now it’s time to revisit that subject and see how you can bend those simple tricks to your own iron will. Consider a simple Animate composition like the one in Figure 9-1. You can find 09-1_HideAndSeek with the exercises for this chapter on the Missing CD at www.missingmanuals.com/cds/edgepv7mm.

The idea is to make the text boxes with the words Show, Hide, and Toggle behave like buttons. Click on the word and the car picture disappears or reappears. For example, as covered in Chapter 5, this is the ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Fedora™ 7 and Red Hat® Enterprise Linux® Bible

Fedora™ 7 and Red Hat® Enterprise Linux® Bible

Christopher Negus

Publisher Resources

ISBN: 9781449342913Errata