Hi there,
I am using Object2VR on a project and I have customized the skin with Javascript to display a tooltip when a hotspot is clicked. However, the tooltip needs to change position when the displayed image changes. Is there a way to detect that the frame has changed (like an event or so)?
Thanks,
Manuel
Detecting frame change
- JimWatters
- Posts: 329
- Joined: Thu Oct 07, 2010 6:16 pm
- Location: Saint John, New Brunswick
- Contact:
In the skin you should be able to use the Loaded and Relaoded as a source on the hotspot with actions to update the position of the tooltip.
I am not a javascript expert but with another language I use to do a get_mouse_position(&x,&y) then set_mouse_position(x,y) and it would force a mouse move event without actually moving the mouse that would cause things like tooltips to be updated.
I am not a javascript expert but with another language I use to do a get_mouse_position(&x,&y) then set_mouse_position(x,y) and it would force a mouse move event without actually moving the mouse that would cause things like tooltips to be updated.
- Jim Watters
http://photocreations.ca
http://photocreations.ca