Hi Maurice,
Check out the base attribute for the object / embed tag (you can also
define it with SwfObject and similar scripts for embedding swfs):
base - . or *[base directory]* or *[URL]*. Specifies the base directory or
URL used to resolve all relative path statements in the Flash Player
Hi Maurice,
How about sending it in as a URL variable when you load preloader.swf into
the html page?
In the HTML:
object .
param name=movie value=swf/preloader.swf?path=swf/ /
...
embed src=swf/preloader.swf?path=swf/ .../
/object
Then in preloader.swf:
var
Thanks for the replies. I'll be looking into both.
kind of been playing around with this as well:
str = _url;
slash = str.lastIndexOf(/);
str = str.substring(slash+1, str.length);
dot = str.lastIndexOf(.);
filename = str.substring(0, dot);
directoryLocation = _url.split(filename + .swf).join();
-boun...@chattyfig.figleaf.com] On Behalf Of maurice
sallave
Sent: Wednesday, June 03, 2009 3:11 PM
To: Flash Coders List
Subject: Re: [Flashcoders] swf paths...
Thanks for the replies. I'll be looking into both.
kind of been playing around with this as well:
str = _url;
slash = str.lastIndexOf
,
\nfileName: +fileName );
Cheers,
Bob
-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of maurice
sallave
Sent: Wednesday, June 03, 2009 3:11 PM
To: Flash Coders List
Subject: Re: [Flashcoders] swf
5 matches
Mail list logo