Next you need to alter the ActionScript
attached to the hotspots so the labels pop up near to the cursor.
Click on a hotspot and then press F9.
Edit the on(rollOver) instruction as shown below.
on (release) {
_root.spearlabel._x = _root._xmouse + 15;
_root.spearlabel._y = _root._ymouse + 15;
_root.spearlabel._visible = true;
}
The popup will only appear if the user clicks on a hotspot (so
you might want to change the instruction on the movie).
The x coordinate of the label (_x) is made the
same as the mouse (_xmouse) with a small addition
to offset it away from the cursor. The y coordinate is then altered
in the same way. The label is then made visible.
Leave the on(rollOut) alone. It will tidy up the
screen, removing the popup once the user moves the mouse.
Test the movie to check that this works before editing the ActionScript
in the hotspots for all the other labels. |