Page 1 of 1

How to change Fullscreen button to Exit Fullscreen on toggle

Posted: Sat Mar 06, 2010 7:02 pm
by ricepixels
Is this possible: while viewing in normal screen mode to have the button "view fullscreen" and then when in fullscreen mode have the button change to "exit fullscreen". Currently I am using a generic button with arrows to indicate enter/exit fullscreen using the Toggle Fullscreen Action/Modifiers but would rather have two different buttons with text to toggle between. Thanks in advance for any ideas.

Re: How to change Fullscreen button to Exit Fullscreen on toggle

Posted: Sat Mar 06, 2010 7:56 pm
by smooth
You simply need to stack buttons.
When you click one set it to hide and expose another.
Then reverse it to set it back again.

If you don't want them in the same place just make the button hide/vanish.

Regards, Smooth 8)

Re: How to change Fullscreen button to Exit Fullscreen on toggle

Posted: Sat Mar 06, 2010 9:32 pm
by ricepixels
Thanks Smooth,
I'm with you for the first 2 steps but can't seem to get the third step of "Then reverse it to set it back again." The first click to "view full screen" reveals the "exit full screen" button fine but when that is clicked it goes back to normal screen without any buttons. I tried adding an extra action to the buttons to "Toggle Element Visibilty" of the other but it doesn't work. I've attached the skin and buttons if anyone has a chance to see what I'm doing wrong. Thanks!

Re: How to change Fullscreen button to Exit Fullscreen on toggle

Posted: Sat Mar 06, 2010 11:26 pm
by Andrew H
The method outlined by Smooth will work for other toggle actions, such as Auto Rotate, but will fall apart in your instance if the viewer exits fullscreen mode by pressing their keyboard's 'Escape' key. Then the wrong button will be left visible.

Currently there seems to be no way to overcome this with Pano2VR - unless someone can tell us otherwise?

Regards
Andrew

Re: How to change Fullscreen button to Exit Fullscreen on toggle

Posted: Sat Mar 06, 2010 11:37 pm
by ricepixels
Ah, I didn't consider that possible circumstance. Thanks

Re: How to change Fullscreen button to Exit Fullscreen on toggle

Posted: Sun Mar 07, 2010 3:46 am
by Sebastian
I would suggest you place a request with Thomas, the pano2vr author, to incorporate that in the future release. I don't see it to be too much of a problem, because it's quite simple from the action script perspective. We use it all the time, literally.... simple events listener monitoring the stage changes and toggling the buttons back and forth. It could be a bit tricky tho to find universal action to facilitate all kind of custom and different buttons that we all do for our navigation interface. So perhaps Thomas could come up with one that works just like the built in preloader option. Add a ready made fullscreen button to stage and then customize the look using the property editor, to match with the navigation theme...


regards
Sebastian

Re: How to change Fullscreen button to Exit Fullscreen on toggle

Posted: Sun Mar 07, 2010 6:01 am
by smooth
Here is your .ggsk modified to work.
test_smooth.ggsk
(2.54 KiB) Downloaded 283 times
The issue with "change state" not being recognised by pressing the ESC key is a long going issue. Things can get out of sink.
You are though assuming people actually use the ESC key or for that matter YOUR button. What "real public" use vs "us" who put these things together are two different things.

It is NOT possible to change in anyway or remove the Flash message you see when changing to full screen mode.
That said, Tourweaver has no problem knowing what state the tour/panorama scene size is in. So if they can offer it I'm sure it is also possible for Thomas to code up Pano2VR to do the same.
We look forward to this feature being added.

Regards, Smooth 8)

Re: How to change Fullscreen button to Exit Fullscreen on toggle

Posted: Sun Mar 07, 2010 8:24 am
by ricepixels
That's awesome! I just downloaded your reworked skin. Thanks Smooth!

Re: How to change Fullscreen button to Exit Fullscreen on toggle

Posted: Tue Mar 16, 2010 11:41 pm
by Lvilleneuve
Oups! It does not work on my Mac. I used Pano2VR 64 bit. I will try with a different version of Pano2VR.

Re: How to change Fullscreen button to Exit Fullscreen on toggle

Posted: Tue Mar 16, 2010 11:44 pm
by Lvilleneuve
I also checked with version 2.2.3 and 2.3.1 same result. The fullscreen mode does not work! Tried with Safari on a Mac.

Re: How to change Fullscreen button to Exit Fullscreen on toggle

Posted: Wed Mar 17, 2010 5:33 am
by smooth
Your issue is because you are NOT using HTML which you must for the fullscreen button to work.
You also MUST have the parameter "AllowFullScreen=True" in this HTML code. Simplest way is to output the HTML from Pano2VR.

Regards, Smooth 8)