Flash ‘Fuzzy Felt’
(See the updated version for better dragging and dropping)
This’ll all seem horribly simplistic to experienced Flash developers, and irrelevant to those who don’t use Flash at all, but I thought a few people in-between those two extremes might find it useful. With a teeny bit of ActionScript you can add crude drag’n’drop to individual graphics to quickly produce things like:
- ‘Fuzzy Felt’-type activities for kids
- A ‘Build a Snowman’ Christmas e-card
- Simple jigsaws
- Daft Identikits
- A mystery object to piece together
Simply insert your graphic/animation into a button, and put this script on the button:
on (press)
{
startDrag(this);
}
on (release, releaseOutside)
{
stopDrag();
}
Then put the button into a movie clip. You should find you can pick it up and drop it using the mouse.
To help make things clearer, I’ve put together an example FLA (Flash MX or newer required) featuring 3 draggable items you can use to get started.
(If you end up producing something inspired by this weblog entry, feel free to mention/promote it in the comments)
Wed 16th Nov 2005, 8:01pm GMT (updated Fri 5th May 2006, 9:14pm GMT)
Filed under: Client-side Coding, Games and Multimedia, Hints and Tips
Comments
Comments are now closed for this entry.
Matt Round’s company blog, covering web development, media, technology and pretty much anything else.
- Web Sites
- Good-looking, effective, accessible sites.
- Multimedia
- Logos, Flash games, animation and illustration.
- Advice
- Help with strategy, planning and getting noticed.
