You are not logged in.

Dear visitor, welcome to krpano.com 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.

1

Friday, April 16th 2010, 5:15pm

Scaling objects

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: www.visiteinteractive.com

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


Thanks

2

Friday, April 16th 2010, 6:26pm

Hi,

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

or in krpano?

in as3 you have the "FullScreenEvent",
see here:
http://help.adobe.com/en_US/AS3LCR/Flash…creenEvent.html

and in krpano you have the "onenterfullscreen" and "onexitfullscreen" events,
see here:
http://krpano.com/docu/xml/#events

best regards,
Klaus

3

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