PDA

View Full Version : Html path = wierd problem...


popunonkok
11-28-2007, 07:37 PM
My wierd problem is as follows:

I sometimes deliver panos on a cd and want a folder structure that allows me to have the first folder with (almost) only one (or more) .htm files named something like pano1.htm so that my custumer just have to dubbelclick that file, nothing else. I thought that this would be verry simple.

But when I have a html file with the code:
<script type="text/javascript" src="swfobject.js"></script>
<div id="flashcontent">
This text is replaced by the Flash movie.
</div>
<script type="text/javascript">
var so = new SWFObject("pano/pano1.swf", "pano", "300", "150", "9", "#666666");
so.write("flashcontent");
</script>
FPP says "Loading failed" wich I belive means that the path to the .swf file is correct.

The pano works when I move the html file into the folder "pano" and change the code to:
<script type="text/javascript" src="swfobject.js"></script>
<div id="flashcontent">
This text is replaced by the Flash movie.
</div>
<script type="text/javascript">
var so = new SWFObject("pano1.swf", "pano", "300", "150", "9", "#666666");
so.write("flashcontent");
</script>

To me this is wierd, I mean it is just a simple path.

Please, anyone, help me... Im starting to get desperate...

//Peter F

popunonkok
11-30-2007, 10:01 AM
No body? Man I am getting desperate... =)

vtourdk
11-30-2007, 10:45 AM
I'm not sure, but I believe someonr once told me that for some (security?) reasons you're not allowed to call an applet/object from html-pages in the root-dir of a CD.
A workaround could be to have the pano-page in a sub-dir and create an opener-page in the root-dir containing the pano-page in a frame or iframe.

popunonkok
12-01-2007, 09:17 AM
Oki, thats good to know...

The thing is that I havent burnt it to a cd yet... Its still in a ordinary folder on my computer... That wats I think is sooo wierd...

ericob
12-03-2007, 07:01 AM
"Loading Failed" is not much help is it? I mean... WHAT happened!?

Meanwhile, read "Adobe Flash Player 9 Security" (51 pages) http://www.adobe.com/devnet/flashplayer/articles/flash_player_9_security.pdf.

Yes, this file is 51 pages long (!).

There are MANY things you should know about, if you plan to / hope to / try to run Flash files from a CD or from your your hard drive.

See also
Global Security Settings panel
http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager.html (Also available from Right Click on a Flash movie, click the "Settings" menu, then click the "Advanced" button.)
and Global security settings for content creators
http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04a.html#119065

eo

PauloGGPX
12-06-2007, 11:18 PM
Hi, try installing firefox extension "Flash Tracer", you need to also instal the Debug version of the Flash player but is a HUGE help in these things :)

If you install don't forget to change the Output file in the options to something like this:

"C:\Documents and Settings\USERNAME\Application Data\Macromedia\Flash Player\Logs\flashlog.txt"

Replace "USERNAME" with your name obviously :P