• Hi,
    I would like to know if there's a way to detect if we are in fullscreen mode.
    What i want to do is to scale the objects of hotspots depending on if you are in fullscreen or not. You can see on my website: http://www.visiteinteractive.com

    When we get on fullscreen, objects are really small and i want to get them bigger


    Thanks

  • Hi Klaus,

    I fixed this bug with this code finally:

    I created an action that was called when the hotspot was clicked, detected if fullscreen was true then set the scaling attribute.
    Could be cleaner but it does the job ;)

    <action name="setScale">
    if(fullscreen==true,
    set(plugin[object1].scale, 1);
    set(plugin[object2].scale, 1);
    set(plugin[object3].scale, 1);
    set(plugin[object4].scale, 1);
    set(plugin[object5].scale, 1);
    set(plugin[object6].scale, 1);
    set(plugin[object7].scale, 1);
    set(plugin[object8].scale, 1);
    set(plugin[object9].scale, 1);
    set(plugin[object10].scale, 1);
    set(plugin[object11].scale, 1);
    );
    if(fullscreen==false,
    set(plugin[object1].scale, 0.5);
    set(plugin[object2].scale, 0.5);
    set(plugin[object3].scale, 0.5);
    set(plugin[object4].scale, 0.5);
    set(plugin[object5].scale, 0.5);
    set(plugin[object6].scale, 0.5);
    set(plugin[object7].scale, 0.5);
    set(plugin[object8].scale, 0.5);
    set(plugin[object9].scale, 0.5);
    set(plugin[object10].scale, 0.5);
    set(plugin[object11].scale, 0.5);
    );
    </action>

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!