PDA

View Full Version : temporarily disable rollover


zingzangzung
07-10-2008, 12:56 PM
I'm building a map application for a client, using AS2. There are several buttons which act as follows:
on rollover - associated map features appear
on rollout - map features disappear
on release(toggle) - map features stay visible (and have their own rollovers with info)
on release(toggle) - map features disappear and rollover action returns

All is fine except when releasing the map features. When clicking the button the features disappear, but on moving the mouse away from the button the rollover action causes the features to briefly reappear. What I want is for the user to move his mouse away without triggering the rollover, until the next time they visit this button. Any ideas on how I can achieve this?

ramm19
07-10-2008, 06:18 PM
it's a bit hard to tell with out looking at the actual movie, but after the initial onRelease(map features stay visible) move the play head to the "next" frame that will only contain an onRelease function only, that action would disable the map features and take him back to the previous frame containing all of your actions for that button.

gnomeontherun
07-10-2008, 08:49 PM
Using a hitTest is usually a good idea instead of using Buttons. You could run a Hit Test for a certain area so you avoid the accidental rollover.