Sie sind nicht angemeldet.

Lieber Besucher, herzlich willkommen bei: krpano.com Forum. Falls dies Ihr erster Besuch auf dieser Seite ist, lesen Sie sich bitte die Hilfe durch. Dort wird Ihnen die Bedienung dieser Seite näher erläutert. Darüber hinaus sollten Sie sich registrieren, um alle Funktionen dieser Seite nutzen zu können. Benutzen Sie das Registrierungsformular, um sich zu registrieren oder informieren Sie sich ausführlich über den Registrierungsvorgang. Falls Sie sich bereits zu einem früheren Zeitpunkt registriert haben, können Sie sich hier anmelden.

1

Donnerstag, 11. Februar 2010, 22:07

Elements not resizing with Escape Key

Hello everyone this is my first time posting to this forum.

I am new but learning alot about flash, xml etc but I cannot find how to fix my issue of when I hit escape from full screen my elements (logo, fsbutton, scrolling thumbnails) do not resize. They resize on hitting the fsbutton but not using the actual escape key.

This is the relevant settings in my xml

<plugin name="openfs" url="tour2data/graphics/btn_openfs.png" blendmode="screen" keep="true" align="bottomright" x="10" y="5"
onclick="set(fullscreen,true); set(plugin[logo].scale,1.5); set(plugin[logo].x,20); set(plugin[logo].y,20); set(plugin[thumbnails].scale,1.5); set(plugin[thumbnails].x,-170); tween(plugin[thumbnails].y,60);"
onover="set(blendmode,add);"
onout="set(blendmode,screen);"/>

<plugin name="closefs" url="tour2data/graphics/btn_closefs.png" blendmode="screen" keep="true" visible="false" align="bottomright" x="10" y="5"
onclick="set(fullscreen,false); set(plugin[logo].scale,1); set(plugin[logo].x,10); set(plugin[logo].y,10); set(plugin[thumbnails].scale,1); set(plugin[thumbnails].x,-10); set(plugin[thumbnails].y,40);"
onover="set(blendmode,add);"
onout="set(blendmode,screen);"/>



Any ideas would be great, I'm sure it's easy but as I said I'm new to XML so googling for the answer has finally driven me crazy...




If anyone knows how to fix this I would really appreciate it.

2

Donnerstag, 11. Februar 2010, 22:17

Hi spins1uk,

You can use onenterfullscreen and onexitfullscreen events.... More info here: http://krpano.com/docu/xml/#events
You can view an example here: http://krpano.com/examples/buttons/
And here the xml: http://krpano.com/examples/buttons/buttons.xml

SAlut.

3

Donnerstag, 11. Februar 2010, 22:45

michal is right. your close fullscreen button is set to an onlick event. by pressing esc it never gets clicked thus never reduces your scale sizes. copy the same onclick for the closefs and add the to the exitfullscreen event. that way either method will work.

myself i would create an action for closefullscreen then jsut call that same action via onclick="action(closefs);" and onexitfullscreen="action(closefs);"

4

Freitag, 12. Februar 2010, 00:10

Thanks alot for getting back so quickly. That fixed it. I will go in and clean it up soon. I now can't seem to get everything embedded cleanly using the sliding thumbnails action. I have seen some chat about it but can't seem to get it right. I will post in that forum..

Thanks again guys