PDA

View Full Version : allow fullscreen via query string: possible?


phberlin
07-21-2008, 11:38 PM
Hi all,

I am currently working on a site that displays the panoramas in a lightbox-like window ("shadowbox", actually). I have to reference directly the pano.swf including it's XML because of mouse event catching trouble if doing it as HTML in a shadowbox. So I do it with a query string like this:

<a href="pano.swf?xml_file=my-xml-file.xml" rel="shadowbox;height=600;width=900">panorama</a>

OK, so everything works fine instead one thing: Flash won't allow me to go fullscreen! Normally, I use SWFObject and "allowFullScreen", "true" which I can't here. So I tried:

<a href="pano.swf?xml_file=my-xml-file.xml&allowFullScreen=true" rel="shadowbox;height=600;width=900">panorama</a>

...but it's not working: Flash would always tell me that fullscreen is not allowed when clicking onto the fullscreen button inside the pano.
Could anyone please tell me how I can allow Flash to go fullscreen via query string?

Any help would be greatly appreciated!
Regards, Ph

phberlin
07-22-2008, 05:39 PM
OK, I finally found a possibility to have shadowbox show a website containing the pano and still react to scroll wheel in a correct way.

Still I am curious if it is possible to pass a "allowFullscreen" parameter via query string... Does someone has a clue?

siesfor
07-24-2008, 05:43 PM
from all appearances, you should be able to pass along parameters w/ a query string.

the website for SWFObject 1.5 (http://blog.deconcept.com/swfobject/) has some info on passing along query info using "getQueryParamValue". I believe this is the version that came with FPP(?)

and http://pipwerks.com/lab/swfobject/ has a tutorial for SWFObject 2.0 on setting up your embed info in the <head> for certain <div> IDs, then loading new SWF's into it using onClick.

I haven't experimented much with SWFObject yet, much less in conjunction w/ Shadowbox, so I can't vouch for whether the info at the above sites will work or not, but it looks promising.

phberlin
07-25-2008, 09:14 AM
Thank you, siesfor, for the information.

Unfortunately, the examples given there only cover just the way I tried to do it; the answer (Patrick gave it over here (http://flashpanos.com/forum/pass-allow-fullscreen-query-string-possible)) seems to be that it's simply impossible due to Flash's security restrictions.

Anyway, it's solved and I'm satisfied with my solution..

Best regards, Ph.