spacer

Webref WebRef   Sitemap · Experts · Tools · Services · Newsletters · About i.com

home / web / dev / flash / motion

Motion Paths

Developer News
Mandrake Linux Founder Back, Virtually
Amazon: We're a Technology Company
Sun Expands MySQL With Closed Source

Interactivity, Sound, and Curvy Motions in Flash

After positioning the MySite.com symbol where I want it in the lower left corner, I'm ready to set my endpoint. Since I'm going to do a more elaborate movement sequence so that you can get a glimpse of the power of tweening, I'm going to set the endpoint along the left edge in the center. In other words, it will finish slightly above and to the right of the point at which it started. But it's got a ways to go first.

Current Frame Marker Display
Figure 6: Current Frame Marker

To set the endpoint, determine how many frames you want in between -- how much time the animation will take, in other words, and, in this case, how fast the text will move -- and then create a key frame at the furthest end. Move your current frame marker (Figure 6) to the end key frame and then, using the arrow tool, move the symbol to its final position.

Pencil icon
Figure 7: Pencil Icon
To add a motion path, click on the pencil next to the current layer and choose "add motion guide." (Figure 7)

Motion Guide Symbol
Figure 8: Motion Guide Symbol

Another layer appears and is marked by an aqua curved line (Figure 8). This is the layer that will hold the motion guide. Since you've already set the end point, the new layer will already be the right size, so you're ready to create your path. Using the pencil tool, draw the path. While the path I've created would probably annoy users, it is exaggerated so that you have plenty of time to see the effect of MySite.com following the curved path.

The red line indicates the motion guide I've drawn. The arrow points to the circle which indicates that the MySite.com symbol has been snapped in place.
Figure 9: "Snapped" path

Now that the path is created, it's time to "snap" the symbol into place. Move your current frame marker back to the first frame and, using the arrow tool, pick up the symbol in the center (where the small + sign is). Then, drag the symbol directly over the endpoint of the motion path. When it's lined up, you'll see a small black circle appear in the center. You can now release the symbol; it's snapped into place. Snap Magnet icon(If you have problems, doublecheck to make sure your "snapping" features are on. Either click the Magnet icon or click View/Snap.) Now move your current frame marker to the endpoint and snap the symbol onto the end of the motion guide. (Figure 9)

Insert Menu

Figure 10: Insert Menu

Final task, set the symbol to tween by clicking the small rectangular box next to the key symbol in frame one of the MySite.com layer and choose "tweening". (Figure 10) From the pop-up menu, choose "motion." (Figure 11)

Tweening Window

Figure 11: Tweening Dialog

To test that your tweening worked, use your VCR controls. If you don't see MySite.com follow the figure 8 across the screen, doublecheck that you snapped the symbol onto the path endpoints. If everything worked, and you like the effect, go ahead and turn off the motion guide (click the pencil icon next to the Motion Guide layer and choose "hidden").

Comments are welcome

internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info

Legal Notices, Licensing, Reprints, Permissions, Privacy Policy.
Advertise | Newsletters | Tech Jobs | Shopping | E-mail Offers

Whitepapers and eBooks

Intel Whitepaper: Comparing Two- and Four-Socket Platforms for Server Virtualization
IBM Solutions Brief: Go Green With IBM System xTM And Intel
HP eBook: Simplifying SQL Server Management
IBM Contest: Are You the Next Superstar? Join the "Search for the XML Superstar" Contest to Find Out
Microsoft PDF: Top 10 Reasons to Move to Server Virtualization with Hyper-V
Microsoft PDF: Six Reasons Why Microsoft's Hyper-V Will Overtake Vmware
Microsoft Step-by-Step Guide: Hyper-V and Failover Clustering
Intel PDF: Quad-Core Impacts More Than the Data Center
Intel PDF: Virtualization Delivers Data Center Efficiency
Go Parallel Article: PDC 2008 in Review
Microsoft PDF: Top 11 Reasons to Upgrade to Windows Server 2008
Avaya Article: Communication-Enabled Mashups: Empowering Both Business Owners and IT
Intel Whitepaper: Building a Real-World Model to Assess Virtualization Platforms
  PDF: Intel Centrino Duo Processor Technology with Intel Core2 Duo Processor
Microsoft Article: Build and Run Virtual Machines with Hyper-V Server 2008
Go Parallel Article: Q&A with a TBB Junkie
IBM Whitepaper: Innovative Collaboration to Advance Your Business
Internet.com eBook: Real Life Rails
IBM eBook: The Pros and Cons of Outsourcing
Internet.com eBook: Best Practices for Developing a Web Site
IBM CXO Whitepaper: The 2008 Global CEO Study "The Enterprise of the Future"
Avaya Article: Call Control XML in Action - A CCXML Auto Attendant
IBM CXO Whitepaper: Unlocking the DNA of the Adaptable Workforce--The Global Human Capital Study 2008
Adobe Acrobat Connect Pro: Web Conferencing and eLearning Whitepapers
HP eBook: Guide to Storage Networking
MORE WHITEPAPERS, EBOOKS, AND ARTICLES
webref The latest from WebReference.com Browse >
Popular JavaScript Framework Libraries: An Overview - Part 3 · Accessing Your MySQL Database from the Web with PHP · Working with the DOM Stylesheets Collection
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
Crucial Triples Up With New Three-Channel DDR3 Kits · Meet the Finalists: Excellence in Technology Awards · Tealeaf Offers Insight to Mobile Customer Behavior


Created: Sep. 29, 1997
Revised: Oct. 9, 1997

URL: http://webreference.com/dev/flash/motion.html