PDA

View Full Version : How to use fullscreen


maxer
02-16-2007, 10:40 AM
Has eyeryone experince with the fullscreen feature?

I'm looking for how to use it.

The example at www.flashpanoramas.com/player/fullscreen provides an actionscript, but I don't now how to integrate my own load-open-button.

Can I use the fullscreen.as with Flash 8 to compile an .swf?

I can't find any tutorial about the fullscreen feature or I'm to blind.


Thanks for tips

Maxer

jaaaab
02-16-2007, 01:42 PM
Hello Maxer and welcome.

You'll find everything to help you with fullscreen command here:

http://flashpanoramas.com/player/hotspotsXML

Scroll down to "Commands" paragraph.

There's the xml code to use Fullscreen function.

Hope this helps!

bye

maxer
02-16-2007, 06:44 PM
Yes, it helps :!:

Thank You Jaaab :D :D ,
it works perfecly.

Now, I have to learn to read instruction slowly :oops:

viktor-y
02-17-2007, 05:52 PM
Hi

Are there anybody who knows what could be the problem with these codes. Everything is working fine except the fullscreen function.

table.xml:
<?xml version="1.0" ?>
<params>
<param name="layer_1" value="auto_-3000_1_4000.swf" />
<param name="layer_2" value="hot_spots.swf" />
</params>

spots.xml:
<?xml version="1.0" ?>
<hotspots>
<spot id="fullscreen" url="fullscreen.png" static="1" staticAlign="RB" align="RB" staticX="50" staticY="2" smoothing="1"
onOver="change:-,alpha,1,30;"
onOut="change:-,alpha,0.5,30;"
onClick="fullscreen:test.htm;"
/>
</hotspots>

table.html:
<script type="text/javascript" src="swfobject.js"></script>
<div id="flashcontent">
This content requires Adobe Flash Player 9 plugin. Please, visit adobe.com (http://www.adobe.com/go/getflashplayer/) and install it.
</div>
<script type="text/javascript">
var so = new SWFObject("preview_table.swf", "pano", "600", "200", "6.0.65", "#999999");
so.addVariable("movie", "table.swf");
so.addVariable("redirect", window.location);
so.write("flashcontent");
so.addParam("allowFullScreen","true");
</script>

I have the following files in my folder: auto_-3000_1_4000.swf, hot_spots.swf, preview_table.swf, table.swf, preview_table.jpg, table_b.jpg _l, _f and so on, swfobject.js, fullscreen.png, spots.xml, table.xml.

Sorry about the long text. Please let me know what did I miss.
Thx

Denis
02-18-2007, 12:16 PM
Looks ok.
I have installed debug version of Flash Player (you can download it from Adobe site as well) and if you give me a link to this panorama I will see the bug description.

maxer
02-19-2007, 11:47 AM
Hi Jaaaab,

I don't know if your spot.xml is valid. I use this code:

<?xml version = '1.0'?>
<hotspots onStart="" onLoad="change:-,alpha,0;change:-,alpha,0.2,1000;" controller="hotspots_lc">

<spot id="1" static="1" staticAlign="RB" staticX="-40" staticY="-40" url="fullscreen.png" smoothing="1"
onOver="change:-,alpha,1,30;"
onOut="change:-,alpha,0.2,30;"
onClick="fullscreen:test.htm;"
/>

</hotspots>

Maybe the missing controller="hotspots_lc" is the reason.

And check your hot_spot.swf. The filesize must be 12kb, not larger.
I have one with 16kb, this doesn't work on my configuration.


maxer

viktor-y
02-20-2007, 01:52 PM
Hi

I’ve tried everything above but it still don’t work. I have just open in IE (in Firefox simply nothing happened) and I got this massage:

SecurityError: Error #2152: Full screen mode is not allowed.
at flash.display::Stage/set displayState()
at HotspotRenderer/fullscreen()
at HotspotRenderer/execute()
at HotspotRenderer/doHSClick()


Any ideas now?
Thx

PS: I have uploaded the panorama to http://viktory.dynamicweb.hu/table.html

Hostname: ftp.dynamicweb.hu
Username: viktory
Password: gadfly

maxer
02-20-2007, 02:50 PM
It doesn't work on my machine, XP and IE 6.

I get a JavaScript error in Line 140 type 1, 'so' is undefinded.

Mixed
02-20-2007, 04:49 PM
Viktor... you have:

so.write("flashcontent");
so.addParam("allowFullScreen","true");

in html source.
But it doesn't make sense to add a parameter to so object, after you use so.write...

Try to move so.write(... after addParam line.

viktor-y
02-20-2007, 05:39 PM
Ihhhhaaaaaaa

It works. That was the key to the mysterious door of fullscreen.
Many many Thx.

Viktor

Ken
06-28-2007, 04:45 PM
Couldn't get my fullscreens to work, then found this. Denis, might be an idea to add a line to the tutorial on hotspots to say that yor HTML needs

so.addParam("allowFullScreen","true");

for fullscreen to work.

Ken

Denis
06-28-2007, 05:09 PM
Ok. I thought it was there. :)