jferrer
04-18-2008, 07:37 PM
Help please!!!
I think I'm asking something stupid, at least I feel stupid because I've seen people doing it and I can't make it work.
I'm trying my application locally in a server at home and trying to load the images from a remote point, probably It's a flash security error but I can't find the solution.
Let's see.
I'm using the Flash Panorama Player 2.2, charging the flash object dynamically in a PHP page through the wonderful SWFObject library, and everything looks good if I use local images.
If it can be any help: For the purposes of the web-site I've decided to code all the specs for each photo in a XML file, so I don't use the panoName parameter but the xml_file, and it's only in the XML where I write down everything. Something like that:
HTML:
<div id="frame">
<div id="image"><h2>Blah Blah.</h2></div>
</div>
JavaScript function:
var so = new SWFObject("panorama.swf", "panoram", "640", "480", "9", "#666666");
so.addParam("allowFullScreen","true");
so.addVariable("xml_file", "photos/"+file+".xml");
/* JUST FOR DEVELOPMENT */
//so.addVariable("layer_9", "scripts/editor.swf" );
so.write("image");
XML Excerpt:
<panorama>
<parameters>
layer_1 = scripts/fps.swf
layer_2 = scripts/autorotator.swf
layer_3 = scripts/hotspots.swf
panoName=photos/cubica
panHome=7
tiltHome=17
...
...
...
All that is working fine, but when I try to change the panoName to "http://whateverdomain.com/folder/panoname", or when I use the image_f /r/b/l/u/d the panorama just doesn't show up.
Please help.
I think I'm asking something stupid, at least I feel stupid because I've seen people doing it and I can't make it work.
I'm trying my application locally in a server at home and trying to load the images from a remote point, probably It's a flash security error but I can't find the solution.
Let's see.
I'm using the Flash Panorama Player 2.2, charging the flash object dynamically in a PHP page through the wonderful SWFObject library, and everything looks good if I use local images.
If it can be any help: For the purposes of the web-site I've decided to code all the specs for each photo in a XML file, so I don't use the panoName parameter but the xml_file, and it's only in the XML where I write down everything. Something like that:
HTML:
<div id="frame">
<div id="image"><h2>Blah Blah.</h2></div>
</div>
JavaScript function:
var so = new SWFObject("panorama.swf", "panoram", "640", "480", "9", "#666666");
so.addParam("allowFullScreen","true");
so.addVariable("xml_file", "photos/"+file+".xml");
/* JUST FOR DEVELOPMENT */
//so.addVariable("layer_9", "scripts/editor.swf" );
so.write("image");
XML Excerpt:
<panorama>
<parameters>
layer_1 = scripts/fps.swf
layer_2 = scripts/autorotator.swf
layer_3 = scripts/hotspots.swf
panoName=photos/cubica
panHome=7
tiltHome=17
...
...
...
All that is working fine, but when I try to change the panoName to "http://whateverdomain.com/folder/panoname", or when I use the image_f /r/b/l/u/d the panorama just doesn't show up.
Please help.