HTML5 - Flash fallback - hard code with old pano

Q&A about the latest versions
Post Reply
zeus3d
Posts: 3
Joined: Thu Dec 02, 2010 12:51 pm

Mon Dec 06, 2010 2:32 pm

Hello everyone,
Some time ago I created a virtual tour in flash with 7 "PANO" and many hotspots for interaction. The problem is that now need to see that tour made HTML5/CSS3, I created a copy of the tour in HTML5 to the limitations of the technology, and now I wanted to make the fallback to give visibility to users Ipad / Iphone.

The problem is that the tour being made with differrent provide software to run the following code:
old tour code

Code: Select all

<script type="text/javascript" src="files/swfobject.js"></script>
		<script type="text/javascript">
			var swfVersionStr = "10.0.0.0";
			var xiSwfUrlStr = "files/playerProductInstall.swf";
			var flashvars = {};
			flashvars.xml_file = "files/xml/DonFilippo.xml";
			var params = {};
			params.quality = "high";
			params.bgcolor = "#ffffff";
			params.allowscriptaccess = "sameDomain";
			params.allowfullscreen = "true";
			var attributes = {};
			attributes.id = "DonFilippo";
			attributes.name = "DonFilippo";
			attributes.align = "middle";
			swfobject.embedSWF(
				"files/pano.swf", "flashContent",
				"100%", "100%",
				swfVersionStr, xiSwfUrlStr,
				flashvars, params, attributes);
			swfobject.createCSS("#flashContent", "display:block;text-align:left;");
		</script>
New tour code made with Pano2vr

Code: Select all

// use Flash panorama
			if (DetectFlashVer(9,0,0)) {
				p2q_EmbedFlash('files%2fpano.swf', '1024', '1024',
					'bgcolor', '#f0f0f0',
					'play', 'true',
					'cache','true',
					'allowFullscreen','true',
					'autoplay','true'); 
			} else {  // flash is too old or we can't detect the plugin
				document.write('This content requires the Adobe Flash Player Version 9 or higher. ');
			}
		}
I'm not a genius but I understand that the two software using two different methods to integrate the flashplayer, described respectively in the files
p2q_embed_object.js (pano2vr)
swfobject.js (other software)
I enclose for anyone who is able to understand and / or modify
if you have any ideas let me know ... I'm really going crazy behind this code. (I'm not a programmer).
Thanks to all


I'm sorry for my English is very bad.
Attachments
swfobject.js
Other software (OLD TOUR)
(25.73 KiB) Downloaded 121 times
p2q_embed_object.js
Pano2vr
(11.03 KiB) Downloaded 89 times
User avatar
alabwab
Posts: 21
Joined: Thu Nov 25, 2010 3:43 pm
Contact:

Mon Dec 06, 2010 4:25 pm

Hi!
A simple solution for flash-fallback can be found here.
http://gardengnomesoftware.com/forum/vi ... f=6&t=5265
Hans' template works flawlessly for this purpose in fullscreen (full window) mode. Generate your HTML pano and the HTML-output and then just change the reference for flash fallback in the HTML-output-tab to your flash version. No guarantee!
Or:
Generate flash and HTML output with Hans' template.

Greetings
Alois
Post Reply