>I have a very large image, way larger than the card. I set the size to
>smaller than the card then group and add scroll bars. Now what I want to
>do is have the students scroll the image locating different objects in
>the image. When they think they have located the correct object they are
>to then click on the object. If I get the clickloc the result is
>different depending on exactly where the object is relative to the
>visible shrunken image. Is there any way to get the location of the
>click relative to the overall size of the image.

The simplest thing to do would be to create a couple graphic objects 
on top of where the students should click (over those objects) , then 
set their ink to noop so they're transparent.  Then you could just 
stick some script into the graphics' mouseup handler.

However, if there's some need for the clickloc, you can change the 
clickloc to what it is compared to the entire group by doing 
something like this:

put the mouseLoc into quickLoc
add the hscroll of group "myGroup" to item 1 of quickLoc
add the vscroll of group "myGroup" to item 2 of quickLoc

Now quickLoc will hold where on the entire image they clicked... for 
instance, let's say on the screen they clicked at 150,200.  But if it 
was scrolled 10 pixels to the left and 20 pixels down, the location 
for the entire image would be 160,220.  Kinda get it?  Hope I didn't 
confuse you too much!  :)


>
>       Thanks
>       Rick
>       Education Technology Group
>       Sciences, Health Sciences
>       University College of the Cariboo
>
>Archives: http://www.mail-archive.com/metacard%40lists.best.com/
>Info: http://www.xworlds.com/metacard/mailinglist.htm
>Please send bug reports to <[EMAIL PROTECTED]>, not this list.

-- 
Karl Becker, KB Productions
http://www.karlbecker.com
Featuring Tiger's Eye Casino,
The Fishin' Hole, & One Boring Month

Archives: http://www.mail-archive.com/metacard%40lists.best.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.

Reply via email to