[Xerte] Re: hotspots

Dave Burnett d_b_burnett at hotmail.com
Mon Feb 28 12:34:51 GMT 2011



The transparent button thing seems to be working pretty well.
I leave the first frame empty and have the transparent core with the edgework in the second frame.


From: Julian.Tenney at nottingham.ac.uk
To: xerte at lists.nottingham.ac.uk
Date: Mon, 28 Feb 2011 12:15:24 +0000
Subject: [Xerte] Re: hotspots



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?)


This message and any attachment are intended solely for the addressee and may 
contain confidential information. If you have received this message in error, 
please send it back to me, and immediately delete it.   Please do not use, 
copy or disclose the information contained in this message or in any attachment.  
Any views or opinions expressed by the author of this email do not necessarily 
reflect the views of the University of Nottingham.


This message has been checked for viruses but the contents of an attachment
may still contain software viruses which could damage your computer system:
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation.


_______________________________________________
Xerte mailing list
Xerte at lists.nottingham.ac.uk
http://lists.nottingham.ac.uk/mailman/listinfo/xerte

This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it.   Please do not use, copy or disclose the information contained in this message or in any attachment.  Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.

This message has been checked for viruses but the contents of an attachment
may still contain software viruses which could damage your computer system:
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation. 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20110228/08a46eff/attachment.html>


More information about the Xerte mailing list