Actionscript : 24 hr clock
- Started
- Last post
- 2 Responses
- tobor
So I'm working on this:
http://offshootinc.com/temp/cloc…When you drag the red-hand (hour hand) it hitTest's over the blue squares. The problem is it's a twenty-four hour clock. So I'm put a AM to PM convertor over the twelve o'clock square. The problem is, it keeps switching back and forth between AM/PM before you can even move the hour-hand over the twelve o'clock square.
Doesn anyone know how to make an onMouseMove event only trigger a hitTest action once?
Does this make sense?
- ********0
just put some sort of conditional statement in there, i.e. onMouseMove, if active == true,
if hitTest occurs (or is occurring)
then active = false.then as soon as it occurs 'active' will be false and it won't check the hitTest anymore.
- tobor0
Yeah, the problem is the if statement you've suggested would already be in an onPress and onMouseMove events. So the issue would be how to set the trigger back to true, once it's been set to false.