PDA

View Full Version : About "Hotspots example review" from Flashpanorama blog..


hyung
11-23-2007, 06:50 AM
Hello,

I used to create virtual tour based on ImmerVision PurePlayerPro

and now I wish to convert my virtual tours from Java to Flash.

While reading "Hotspots example review (http://flashpanoramas.com/blog/2006/12/27/hotspot-example-review/)" article from Flashpanorama

blog, one question came to my mind. The article says that I should write

XML files but when I look at the HTML code of the hotstpot example (http://flashpanoramas.com/player/test/hotspots_window.html), I don't see any .xml file given as a parameter.

Following is the html code of hotspot example:

<script type="text/javascript">
var so = new SWFObject("show_pano.swf", "pano", "100%", "100%", "6.0.65", "#999999");
so.addVariable("movie", "wood.swf");
so.addVariable("redirect", window.location);
so.addParam("allowFullScreen","true");
so.addParam("allowScriptAccess","sameDomain");
so.write("flashcontent");
</script>

It uses wood.swf as panorama file input, but I have no idea how to create
this .swf file. Do I need only this .swf file or do I need additional image files
such as pano0.jpg,...,pano5.jpg?

And in the hotspot example, there are 2 types xml files -> one is for
panorama and the other is for hotspots. Do they have to be separate or
can I put them all in one .xml file?

Any help would be very much appreciated..

I wish there were more detailed example based documentation. Other
than that, FPP is a great panorama viewer and I think it will be the main
viewer pretty soon.

Best Regards,

Hyung.

zleifr
11-23-2007, 07:32 AM
First, the hotspots example review is old, and FPP can still be used that way, but it usually is not.

wood.swf is a renamed copy of pano.swf, so if there is no xml file named, it looks for the cube faces and xml with the same name as the .swf. In other words, it looks for wood_f.jpg, wood_r.jpg etc, and wood.xml.

And there only needs to be one xml file for everything with version 2.2

hyung
11-23-2007, 10:20 AM
Hi zleifr,

Thank you for your reply!

So I should rename the pano.swf file and it automatically searches for
tiles images (pano_r.jpg,pano_f.jpg,etc..) and pano.xml file.

Thanks again! :)

Hyung

zleifr
11-23-2007, 03:10 PM
yes, that would work. A better practice is to put pano.swf in one central location for all the tours/panoramas, and to specify an xml file in the embedding code in the html. Put all the cube faces in a folder named images, and in the xml file put use the panoName="images/myPanoName"

Then when pano.swf gets updated, there is only one file to change, and when you would reuse your code for the next panorama, you only have to change one line in the xml.