1. Home
  2. Computing & Technology
  3. Animation

Creating Easy Flash-Style Tooltips

By Adrien-Luc Sanders, About.com

7 of 8

Now insert a goto function, and click the radio button that specifies gotoandStop. Your resulting code will look like this:

on (rollOver) {
gotoandStop (1) ;
}

It should look like this:

on (rollOver) {
this.gotoandStop (2) ;
}

Set the Frame Number field to 2, then switch to Expert Mode to type in the this. before the gotoandStop. When you’re done, switch back to Normal Mode. (If you’ll remember, the this parameter, placed before the command, and separated by a period, is a pointer reminding Flash that it needs to act on the symbol that the script is currently attached to.)

This causes the second frame of the movie clip, with the tooltip visible, to display and hold as long as the mouse cursor is in place over the active area.

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. Creating Easy Flash-Style Tooltips

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

All rights reserved.