You are not logged in.

Dear visitor, welcome to Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.


Friday, April 16th 2010, 5:15pm

Scaling objects

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:

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



Friday, April 16th 2010, 6:26pm


do you mean in AS3? (because your are posting in the AS3 subforum)

or in krpano?

in as3 you have the "FullScreenEvent",
see here:…creenEvent.html

and in krpano you have the "onenterfullscreen" and "onexitfullscreen" events,
see here:

best regards,


Friday, April 16th 2010, 8:03pm

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">
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);
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);