1. Home
  2. Computing & Technology
  3. Animation

Flash ActionScripting Beginner's Challenge: Candy Heart

By Adrien-Luc Sanders, About.com

For an easy ActionScripting Challenge with a holiday theme, here's a little Valentine's time-killer that lets you create a custom candy heart just like the ones handed out in grade school. The scripting is fairly simple, and can be done all in one frame. Your challenge is to take a look at the basic version that I created, then try making your own without step-by-step instructions other than past tutorials on the methods used to accomplish various parts of it; I'll post the tutorial separately in a week.

Your SWF should include:

  • The ability to change the message on the candy heart.
  • The ability to change the color of the candy heart.
  • Character limits on the input box to prevent overflowing the available text area on the candy heart.
  • Text that changes colors to match the candy heart background when the user selects a new color.

Lessons you can use for reference on how to accomplish this are:

For bonus points, you can combine Flash and PHP to create a candy heart e-card that can send your custom message to your friends in a URL. For reference on how to do this, see Dynamic E-Card Using Flash and PHP.

See if you can come up with something like mine, or do ten times better!

Interested in other ActionScripting Challenges?

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. Flash ActionScripting Beginner's Challenge: Candy Heart

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

All rights reserved.