PDA

View Full Version : Trouble with paths


nmendes
07-23-2007, 12:54 PM
Hi.
I've having some trouble trying to embed a pano located on a subfolder inside an html document.
This is the code I have on the html in the root of the site:

<div id="vrObject">
<script type="text/javascript" src="js/swfobject.js"></script>
<div id="flashcontent">
This content requires <a href="http://www.adobe.com/go/getflashplayer/">Adobe Flash Player</a>.<br />
Built on <a href="http://flashpanoramas.com/player/">Flash Panorama Player</a>.</div>
<script type="text/javascript">
var so = new SWFObject("ALEV91/vr/vr2.swf", "pano", "700", "450", "9", "#666666");
so.useExpressInstall('misc/expressinstall.swf')
so.write("flashcontent");
</script>

</div>

Now, the problem is that I cannot load the swf located in that folder (ALEV91/vr/vr2.swf), the message LOADING:FAILED appears.
If I move everything to the root and change the path to var so = new SWFObject("vr2.swf", "pano", "700", "450", "9", "#666666"); everything works great. What is the problem here?

360DegreeViews
07-25-2007, 10:00 PM
Try adding a panoName parameter, like this:

so.addVariable("panoName", "ALEV91/vr/vr2");

(note: do not use the .swf extension).

This worked for me.

Bob S.

nmendes
07-26-2007, 09:46 AM
Bob, thanks for your reply.

It worked with the parameter! Thanx!

But now how do I load the xml file associated with it?

This way, it's not loading the the xml with the paramenters where I define the hotspots, etc. And I really need a xml per panorama.

Nelson Mendes

PS: I'm trying to find a way that I can apply to multiple properties with panos, so that I don't have to duplicate files or code (like the html/php that loads the panos).

nmendes
07-26-2007, 10:28 AM
Problem solved. I had to change the paths to the hotspot images and plugins inside the XML files.

eybel
07-26-2007, 07:45 PM
Hi first of all i want to tell you that english is not my first languague, but something I know.

I have a problem I created a pano and I put it in a SWF whit code provided by Flash Player Panoramas.

When I want to see the HTML online, using FTP in my case, I canґt see the pano in full screen mode and I put the plugin and the botom.

In the swf works right, but in the html it appears a message that say something like denied...

Maybe you know about some code to put in the html file...

Please help me, Is difficult for me to explain all in english...

Thanks you!!!

nmendes
07-27-2007, 01:07 PM
Hi eybel.
You need to pass a paramenter to the swf. If you use SWFObject to embed your panorama in html, do the following:

<script type="text/javascript" src="js/swfobject.js"></script>
<div id="flashcontent">No Flash</div>
<script type="text/javascript">
var so = new SWFObject("pano.swf", "pano", "750", "500", "9", "#666666");
so.addParam("allowFullScreen","true");
so.write("flashcontent");
</script>

So, the parameter you are missing is the "allowFullScreen".

Nelson Mendes

eybel
07-27-2007, 04:46 PM
Thanks you, I resolved the problem exporting the .fla inserted in a .html file whit the option of exporting with fullscreen mode.That code you gived me I have it.

We think that the Action Scripts 3 is an horror.I know something about AS 2 but It doesnґt work for me in this case.

We will embeed the panos in .HTML files, I hope we can do it well and that the .XML file work.I hear about a permision you have to put in .HTML file to permit the connection between the .XML file and the .swf that is in embbed in the .HTML file.

I hope you can understand me, if you have some information whit that I would say to you thanks you.

Bye, bro.

phberlin
09-08-2007, 07:08 PM
Solved. See the linked thread for solution.

_______________
Seems like I have a very similar problem compared to the original poster's one; but I don't use SWFobject.js, since I want to use a "Greybox". Maybe someone has a hint for me? That would be fantastic! My problem is described here (http://flashpanoramas.com/forum/showthread.php?t=362).

Thanks in advance
Ph.

popunonkok
10-22-2007, 02:21 PM
I have exactly the same problem but cant get this to work...
My code is

<script type="text/javascript" src="omrullningen/swfobject.js"></script>
<div id="flashcontent">
This text is replaced by the Flash movie.
</div>
<p>
<script type="text/javascript">
var so = new SWFObject("kappaomr.swf", "pano", "100%", "100%", "9", "#666666");
so.addVariable("kappaomr", "omrullningen");
so.write("flashcontent");
</script>


My panorama is in the folder "omrullningen".

Please, need help... Im going to sell a couple of panos and want to place the klickable IE7 icon in a seperat folder to make it easy...