Detecting frame change

Q&A about the latest versions
Post Reply
MCabral
Posts: 1
Joined: Tue Mar 03, 2015 2:24 pm

Tue Mar 03, 2015 2:25 pm

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
User avatar
JimWatters
Posts: 329
Joined: Thu Oct 07, 2010 6:16 pm
Location: Saint John, New Brunswick
Contact:

Tue Mar 03, 2015 3:12 pm

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.
Post Reply