Pano2QTVR Flash .js file + htm code

Specific Q&A about the new Flash export
Locked
User avatar
360Texas
Moderator
Posts: 3684
Joined: Sat Sep 09, 2006 6:06 pm
Location: Fort Worth, Texas USA
Contact:

We updated to pano2qtvr/Flash Ver 1.5 Final.

When you generate a new flash panorama .swf and the Flash Helper HTML file it contains some revised detection code as well as a REVISED p2q_embed_object.js file.

First thing we did was forward to our client the new p2q_embed_object.js file to be use with a set of html pages we created last year thinking all was well. All they needed to do is upload the new .js file and it should work with the old HTML files. Well I got it 50% correct.

YES you do have to use the new .js file because it contains Adobe Flash Detection recommended coding.

AND here is the matching code that you should use in the old html pages



Code: Select all

<!--
			if ((window.p2q_Version) && (window.p2q_Version>=1.3)) {
				// Check to see if the version meets the requirements for playback
				if (DetectFlashVer(8,0,0)) {
					p2q_EmbedFlash('yourpano.swf','700','433');
				} else {  // flash is too old or we can't detect the plugin
					document.write('<b>This content requires Adobe Flash Player Version 8 or higher. '
								 + '<a href=http://www.adobe.com/go/getflash/>Get Flash</a></b><br>');
				}
			} else {
				document.writeln('<br><b>p2q_embed_object.js is not included or it is too old! Please copy this file into your html directory.</b><br>');
			}
//-->
		</script>
		<noscript>
			<br><b>Please enable Javascript!</b></br>
		</noscript>
In other words just uploading the new .js file will stop your panoramas from being displayed. You have to revise the old html with the above replacement code set. The above code is already in the pano2qtvr generated HELPER TAB html page.

ARE WE HAVING FUN YET ??
Dave
Pano2VR Forum Global Moderator
Image
Visit 360texas.com
Locked