PDA

View Full Version : rollover events with mouse pressed?



snawbel
March 10th, 2005, 02:17 PM
hiya,

this should be fairly simple, but i'm still having trouble.

my interface consists of two graphical moviclips: A and B (B is a palette that contains several movieclips). it should work like this:
- click mc A to show mc B (initially hidden).
- while the mouse is still pressed, hover over the various mc:s of mc B. keep track of the mc:s i have hovered over in an array.
- when the mouse button is released, hide mc B.

so... i need to generate somekind of event (like onRollOver) while my mousebutton is pressed. however onRollOver is not fired when the mousebutton is pressed.

any suggestions?

thanks!

E

mpelland
March 10th, 2005, 03:21 PM
might have to use mouse move, test to make sure the mouse button is still down. if it is then store all your variables based on the location of the mouse or on mouseovers for the other mc's in mcB

flashead
March 11th, 2005, 11:08 AM
you could use:

if (myMC.hitTest(_xmouse, _ymouse)) {
//code here
}

to check for a rollOver too.