Hello everyone,
recently i have been working on a interctive map application. the diea behind it is when i scroll over a space it increases in size and adds a drop shadow. i achieved this by using adobe photoshop. i then used a motion tween to make it look as if the shadow was fading in or our. Ontop of each piece i use a button with an invisible hotspot to overlay each section of the map(the pieces woudlnt be sqaure of course) however i have run into a problem. if i move my mouse too fast over the hit area, the piece will stay highlighted. i have found a temporary solution to this however. what i did was added an onFrameEvent to check everytime the movieclip (each piece of the map) entered its frame. this checks to see if the mouse is hovereing the movie clip when the clip is in a ‘over state’ (when the clip reaches frame 5 for me.) this works almost perfectly except for the fact that this hittest will look at the full sqaure of the movie clip instead of the invisible hit area i made.
I tried the bellow on frame 5 (the hover frame) to no avail:
if(woodsideButton, hitTest(_root._xmouse, _root._ymouse, false))
{
stop();
}
the theory here is to check and see if the mouse is over the button for a given piece fo the map. if ti is then stop otherwise finish the animation. (shrink back down into the map)
this doesnt work. does anybody have suggestions?