View Full Version : roll-over versus drag-over
cheathamlane
11-17-2007, 01:14 AM
Dumb question probably.. ;)
What's the best way, in FPP, to distinguish between a drag-over mouse event and a roll-over one? This is assuming that it's a <spot/> or <box/> I'm rolling or dragging over.
?
zleifr
11-17-2007, 02:59 AM
I don't know if you can distinguish between them just using the events built into hotspots. Maybe with more context of what you are doing, something can be thought up, as obviously a drag over would be preceded by an onPress event and a rollover would be preceded by an onRelease or neither....
Obviously it is a whole lot different if your are writing your own actionscript.
Maybe that helps....
cheathamlane
11-17-2007, 03:08 AM
That's kind of what I thought... Doing it solely through FPP with the built-in hotspot will be iffy. I was trying to avoid writing my own plugin just to be able to capture a drag-over event...
Although, capturing a drag-over via AS3 seems to be almost as murky... ;)
What got me thinking about it was that <spot/> rollovers happen when the user's mouse is down, dragging the panorama. To me, that's a big no-no as far as interactivity goes; I wanted to be able to pre-empt it, or ignore it.
Cheers,
zleifr
11-17-2007, 05:54 AM
I don't know if you can capture the user's onPress event to drag the panorama, if so it would probably be used in global, maybe as pano.onPress, or maybe as onPress alone, and IF that works, you could have the event remove the functionality of the other spots, which you don't want to have interfere with the pano drag, and then you could replace the functionality with the onRelease event. All that is predicated on being able to capture the pano onPress event.
cheathamlane
11-17-2007, 03:06 PM
Thanks zleifr --
I capture the panorama's onPress inside the <pano/> element. I already use this to stop autorotation things, so that seems the obvious place to try it out.
That said, though -- I would find it nice if it didn't have to be scripted.
Cheers,
vBulletin® v3.7.1, Copyright ©2000-2012, Jelsoft Enterprises Ltd.