Flash Phobia

Q&A about the latest versions
Post Reply
Howard
Posts: 209
Joined: Wed Jun 03, 2009 5:58 am

With all the hacking-induced Flashophobia in the media in the last few days, with stories encouraging people to block Flash in their browsers, it would be nice if the Javascript in Pano2VR's HTML template to "prefer Flash" (appended below) would load the HTML5 version if Flash is blocked in the browser. Unfortunately, it does not seem to do so.

Code: Select all

if (swfobject.hasFlashPlayerVersion("10.0.0")) {
			var flashvars = {};
			var params = {};
			// enable javascript interface
			flashvars.externalinterface="1";
			params.quality = "high";
			params.bgcolor = "#ffffff";
			params.allowscriptaccess = "sameDomain";
			params.allowfullscreen = "true";
			var attributes = {};
			attributes.id = "pano";
			attributes.name = "pano";
			attributes.align = "middle";
			swfobject.embedSWF(
				"cairnV.swf", "container", 
				"100%", "100%",
				"9.0.0", "", 
				flashvars, params, attributes);
			
		} else 
		// check for CSS3 3D transformations and WebGL
		if (ggHasHtml5Css3D() || ggHasWebGL()) {
	
			// create the panorama player with the container
			pano=new pano2vrPlayer("container");
			// add the skin object
			skin=new pano2vrSkin(pano);
			// load the configuration
			pano.readConfigUrl("cairnV.xml");
			// hide the URL bar on the iPhone
			setTimeout(function() { hideUrlBar(); }, 10);
		}
User avatar
Hopki
Gnome
Posts: 13028
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi,
From what I can see its not blocked as such more a user activation.
So yep really screwing things up. If the browser did not report having the plug in until activated then it would work ok.
Ill bring this to the attention to the dev's to see what they make of it.
But for now use HTML5, with fallback to Flash.
Hopki
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
Post Reply