over/hover/out events in HTML5 alternative with position listener?

  • Hi,

    I understand that over/hover/out events aren't possible in HTML5. Instead, I was wondering - Is it possible to listen out for the position of the viewer and cause an action to take place if that viewer enters a polygonal hotspot for example?

    e.g. if the centre point of the viewer enters a polygonal hotspot, do an action.

    I am trying to get this to work independent of viewer control i.e. it should work with both touch, gyro and keyboard controls.

    Many thanks!

  • I've just seen Klaus' post here about triggering events onviewchange.

    "
    e.g. here a a one-time check if hlookat is greater then 90:

    Code
    <events name="viewtest" onviewchange="if(view.hlookat GT 90, events.removearrayitem(viewtest); trace(...do your stuff here...); );" />


    "


    I'm only concerned about onenter but don't want to remove the arrayitem. Can somebody help me figure out how to trigger the event when entering a polygonal hotspot already defined in the tour?

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!