[Xerte] Re: hotspots

Julian Tenney Julian.Tenney at nottingham.ac.uk
Mon Feb 28 12:15:24 GMT 2011


You will hit the same problem. The answer is to get a generic mouse down to tell you where the mouse is, and then run over an array of objects and call hitTest() on each one, passing hitTest() the mouse coords, rather than another object. You might need to mess with globalToLocal / localToGlobal so the mouse cords are in the same space as the object's coords.,

From: xerte-bounces at lists.nottingham.ac.uk [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Dave Burnett
Sent: 27 February 2011 15:59
To: Xerte list
Subject: [Xerte] hotspots


Is there any sort of precedence I can set up that will allow overlapped HS to both function?
Or do I need another architecture?

Issue:

I have a graphic with multiple hotspots.
The hs areas need to both react when they are rolled over, (draw a shadow effect to indicate user over hs) and when they are clicked (show  feedback).
The feedback also needs to erase on rollout.
(This is a proto, so I can't use a button, unless it's transparent. Hmm there's a thought).

If over a spot I lay 2 hotspots (1 click=0, another click=1) then no matter how I order them in the flow, the hs higher in the tree blocks anything below it from functioning.
Also, if I lay a catchall in there, it block everything else.

I suspect I'm using a hammer when I should be using a saw.
Is the transparent button feasible?
Maybe a transparent png hot object? (or do i run into the same precedence issue?)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20110228/34864840/attachment-0001.html>


More information about the Xerte mailing list