parameter: fullscreen

Contributed by: Patrick Cheatham

fullscreen is a built-in Flash Panorama Player function, which will:

  • open the panorama window in fullscreen mode, if supported
  • change from fullscreen view to the normal view

Syntax 1: fullscreen([url])
Example: onClick="fullscreen(myPano.swf)"

Syntax 2: fullscreen()
Example: onClick="fullscreen()"

Syntax 3: fullscreen(-)
Example: onClick="fullscreen(-)"

Flash Player Plugin versions 9.0.0.0 to 9.0.18.60 do not support the fullscreen feature. Syntax example 1 shows using the optional [url] parameter, which will open a new browser window when the fullscreen feature is unsupported.

onClick="fullscreen()" switches screen mode to fullscreen, but does nothing if the Flash Player Plugin version doesn't support fullscreen mode.

onClick="fullscreen(myPano.swf)" switches screen mode to fullscreen; if Flash Player doesn't support fullscreen mode it opens a new browser window with the indicated URL (myPano.swf in this example).

onClick="fullscreen(-)" switches screen mode to fullscreen, if Flash Player doesn't support fullscreen mode it opens a new browser window with the current document URL (window.location).

Notes regarding security restrictions (as of this writing):
The current version of Flash Player disables keyboard events for fullscreen mode in browser.
The user must click inside the Flash Player window to enact a fullscreen() event; Using onLoad or onOver events is not recommended. Attach fullscreen() only to the onClick event.

Full XML example:

<?xml version='1.0' encoding="utf-8"?>
<panorama>

<parameters>

layer_20 = hotspots.swf

</parameters>

<hotspots>

<global>

<pano></pano>

<spot
id="myFullscreen"

url="myFullscreenButton.png"

onClick="fullscreen(-)"
/>

</global>

</hotspots>

</panorama>

Hello. I still have problem

Hello. I still have problem with the full screen funcion. It does not work on my computer. It mean if I put this XML example to one of my pano. I have error 2153 on my tracer, but I have no problem to open other panoramas made by You or by Denis. Shoud I put other plugin to parameters section or what?
My second question is about tooltips. All I write is in one single line, how can I move a part of text to next line. If I do it by clicking Enter too much space is between the lines. Thanks for Your job and Happy Christmas.
If You don't understand my problem I can sent You an Example.

Hi Krzysztof: Yes, a link to

Hi Krzysztof:

Yes, a link to an example would be helpful! Smile

--
Regarding the tooltips: I don't know which version you're using, but I think you can use "\n" to indicate a line break. So, you might have a line which reads:

"merry christmas to all\nand to all a good night"

?

Cheers,

Patrick

Thanks!!! Tolltips work

Thanks!!! Tolltips work perfectly.
That is raport from tracer;
SecurityError: Error #2152: Full screen mode is not allowed.
at flash.display::Stage/set displayState()
at Hotspots/fullscreen()
at Hotspots/execute()
at Hotspots/executeFunction()
at Hotspots/doHSClick()
But it works corectly in Adobe Flash Player 9.
Ill send You zipped panorama by email

Just like it says, this is a

Just like it says, this is a "security error."

"To enable full-screen mode, developers must add a new and embed tag parameter, allowFullScreen, to their HTML. This parameter defaults to false, or not allowing full screen. To allow full-screen, developers must set allowFullScreen to true in their object/embed tags."

See http://www.adobe.com/devnet/flashplayer/articles/full_screen_mode.html

Hey Eric: Good tip! This

Hey Eric:

Good tip!

This went under my radar, since I've been putting in the allowFullScreen parameter by default on all my panos, and I forgot about it.

Thanks for the post & link --

Cheers,

Patrick

Thanks Eric. I had a problem

Thanks Eric. I had a problem with full screen, couse I have been trying to do it directly to swf file, not to Html. It was the reason it didn't work.