spacer

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

home / web / dev / flash / tweening
Developer News
Mandrake Linux Founder Back, Virtually
Amazon: We're a Technology Company
Sun Expands MySQL With Closed Source

Tweening Touches

Serving Up Web-Friendly Animations: In a Flash

"IS YOURS" seems like the logical conclusion to the line I've added. So I'm going to add that bit of text (a taunt if you will) to the movie. But I want it to stand out.

In a new layer, one frame after the scrolling text stops, I add "IS YOURS," and I use the "rotate" icon to set this text at an angle.

I still have some empty space on the left-hand side, so why miss the opportunity to add a little more punch? In layer 4, one frame after "IS YOURS," I want to add an arrow -- one that appears at the top of the screen and then moves down to the bottom as if it is pointing at the page below.

This requires some tweening. Tweening means you mark a beginning and end point, and the selection will automatically move along that path. This eliminates the need for you to reposition an image in every frame. Because my target path is a straight line, I don't need to create a symbol. Flash's tweening is smart enough to handle moving the arrow for me as long as I tell it where to start, where to stop, and how long to take to move between the two points.

If I wanted to tween along a curved path, I would be better off making a symbol first and then setting up the tweening.

So I create my arrow by making four straight lines with Line Tool (one of the options for the pencil).

Tweening Menu Now, I create another key frame 7 frames later. The arrow shows up as a selection, and I move it towards the bottom of the banner until it almost touches the bottom edge. Then, right-clicking on the original key frame where the arrow begins, I select "tweening," and, from the drop-down menu, "Motion" and then "okay."

A red line now connects the two key-frames that contain my arrow in the timeline. A quick "play back" shows me that the arrow now moves from off screen to the bottom. (There are much more sophisticated things you can do with tweening and with symbols, but this gives you a taste of Flash's tweenability.)

The only thing left to do is to make sure that all of your layers have the same number of frames. That's important, here, because we want each object, once it appears, to stay on-screen for the duration of the movie. If one layer didn't have enough frames, it would disappear once the marker passed its final frame.

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: Aug. 24, 1997
Revised: Aug. 24, 1997

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