13.08.2012 Views

ACTIONSCRIPT 3 Developer’s Guide en

ACTIONSCRIPT 3 Developer’s Guide en

ACTIONSCRIPT 3 Developer’s Guide en

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>ACTIONSCRIPT</strong> 3.0 DEVELOPER’S GUIDE<br />

Working with motion twe<strong>en</strong>s<br />

Copying motion twe<strong>en</strong> scripts in Flash<br />

Flash Player 9 and later, Adobe AIR 1.0 and later, requires Flash CS3 or later<br />

A twe<strong>en</strong> g<strong>en</strong>erates intermediate frames that show a display object in differ<strong>en</strong>t states in two differ<strong>en</strong>t frames on a<br />

timeline. It creates the appearance that the image in the first frame evolves smoothly into the image in the second. In<br />

a motion twe<strong>en</strong>, the change in appearance typically involves changing the position of the display object, thus creating<br />

movem<strong>en</strong>t. In addition to repositioning the display object, a motion twe<strong>en</strong> can also rotate, skew, resize, or apply filters<br />

to it.<br />

Create a motion twe<strong>en</strong> in Flash by moving a display object betwe<strong>en</strong> keyframes along the timeline. Flash automatically<br />

g<strong>en</strong>erates the ActionScript code that describes the twe<strong>en</strong>, which you can copy and save in a file. See the Motion Twe<strong>en</strong>s<br />

section in Using Flash Professional for information about creating a motion twe<strong>en</strong>.<br />

You can access the Copy Motion as ActionScript 3.0 command in Flash two ways. The first way is from a twe<strong>en</strong> context<br />

m<strong>en</strong>u on the stage:<br />

1 Select the motion twe<strong>en</strong> on the stage.<br />

2 Right-click (Windows) or Control-click (Macintosh).<br />

3 Choose Copy Motion as ActionScript 3.0 . . .<br />

The second way is to choose the command directly from the Flash Edit m<strong>en</strong>u:<br />

1 Select the motion twe<strong>en</strong> on the stage.<br />

Last updated 6/6/2012<br />

336

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!