1. Home
  2. Computing & Technology
  3. Animation

ActionScripting Challenge: Flash Candy Heart Explained

By Adrien-Luc Sanders, About.com

6 of 9

Next, draw a text box on top of the candy heart. Rotate and size it to fit in the proper area to overlap and center on the heart; make sure to set the text type as Dynamic Text, multiline, and assign an instance name to it. My instance name is heartmessage.

Don't forget to embed the fonts for the dynamic text field so that they'll display properly despite the scale and rotation transformation.

Once that's done, select the dynamic text field and convert it to a symbol with an assigned instance name (mine is texty - terribly creative, no?). Flash is a little iffy about what will work with swapDepths (which we'll need later when we're determining which color heart is visible), and often won't change the depth on a text field unless it's contained inside a symbol.

Explore Animation
About.com Special Features

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

Easy ways to connect two computers for networking purposes. More >

  1. Home
  2. Computing & Technology
  3. Animation
  4. Flash Animation Tutorials
  5. ActionScripting Challenges
  6. ActionScripting Challenge: Flash Candy Heart Explained

©2009 About.com, a part of The New York Times Company.

All rights reserved.