1. Home
  2. Computing & Technology
  3. Animation

Flash Color Quiz: What's Your Mood?

By , About.com Guide

3 of 10

To move my animation beyond the intro movie clip and start the quiz, I used an on (release) and gotoAndPlay attached to an invisible hotspot movie clip that overlaps the area of my intro animation that I want to be clickable:
on (release) {
_root.gotoAndPlay(2);
}

Note that I used _root in front of my gotoAndPlay? Since we're talking about the main timeline, just using the gotoAndPlay on a movie clip would confuse Flash just a touch, as it wouldn't be sure if you were referring to the movie clip timeline or the main stage's timeline.

Please note: code is not meant to be copied directly. Page template issues and formatting may automatically convert some symbol characters to formatted/HTML equivalents, and they won't work properly when pasted into Flash. Please use this code as guidelines to write your own.

Explore Animation
About.com Special Features

Holiday Central

What to eat, where to go, fun things to do and how to save money on the perfect gifts. More >

Family Tech Center

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

  1. Home
  2. Computing & Technology
  3. Animation
  4. Flash Animation Tutorials
  5. Flash for Games & Fun Stuff
  6. Flash Color Quiz: What's Your Mood?

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

All rights reserved.