[SWFObject] FW: Replacements for ../ and BASE attribute?

Ricardo Cardenas ricardo.cardenas at oracle.com
Mon May 15 15:09:57 PDT 2006


As for Problem 1, having it in a different directory works fine for me... I
normally start with / from the top directory to avoid referencing problems,
like so
 
  var fo = new SWFObject("/bin/pbmap/map/map.swf", "map", "600", "320", "8",
"#ffffff");
 
If your html page is 2 directories down from the swf, you might need
"../../flash_file.swf", or try starting out with "/dir1/dir2/flash_file.swf"
to see if that works. -Ricardo
 

  _____  

From: swfobject-bounces at lists.deconcept.com
[mailto:swfobject-bounces at lists.deconcept.com] On Behalf Of Dan Bohea
Sent: Monday, May 15, 2006 4:57 PM
To: swfobject at lists.deconcept.com
Subject: [SWFObject] Replacements for ../ and BASE attribute?



Hi List.  Thank you so much for all your hard work.  You're saving my ass.

 

I'm fairly new to a lot of this kind of stuff so be gentle..

 

I have the swfObject working on a basic level but cannot figure out how to
get round the following 2 problems:

 

Problem 1:

 

Some of my html pages are in a folder, 2 directories down from the swf file
to be embedded.  Normally I would just insert the swf file location as
"../flash_file.swf" as opposed to just "flash_file.swf".  This doesn't seem
to work using swfObject.  For example, the following script doesn't load my
swf at all:

 

var so = new SWFObject("../flash_file.swf", "mymovie", "200", "100", "7",
"#336699");
so.write("flashcontent");
 

This problem also seems to stop swf files from being displayed when I
publish from a Template in Dreamweaver.  This isn't the end of the world,
but sometimes I'd like to see how the swf sits in the page, even if it is
only a Template.

 

 

 

Problem 2:

 

Simliar to problem 1.  I have pages in folders that are 2 directories down
from the swf file to be embedded.  This swf file acts as a navigaion bar for
the website.  In order for the nav to work once it's loaded in to one of the
'buried in folders' pages, I normally have to use the BASE attribute when
the swf is inserted.  I got this tip from here: 

 

http://www.adobe.com/cfusion/knowledgebase/index.cfm?event=view
<http://www.adobe.com/cfusion/knowledgebase/index.cfm?event=view&id=KC.tn_04
157&extid=tn_04157&dialogID=29269559&iterationID=1&sessionID=9630dc11c536616
17c69&stateID=0+0+29277289&mode=simple>
&id=KC.tn_04157&extid=tn_04157&dialogID=29269559&iterationID=1&sessionID=963
0dc11c53661617c69&stateID=0+0+29277289&mode=simple

 

 

Any ideas?

 

 

Regards,

 

 

Dan.

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.deconcept.com/pipermail/swfobject-deconcept.com/attachments/20060515/6fc31fa9/attachment-0004.htm>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ATT00259.txt
URL: <http://lists.deconcept.com/pipermail/swfobject-deconcept.com/attachments/20060515/6fc31fa9/attachment-0004.txt>


More information about the Swfobject mailing list