tyfig.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 we
inal 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 paths...
Thanks for the replies. I'll be looking into b
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").joi
Hi Maurice,
How about sending it in as a URL variable when you load preloader.swf into
the html page?
In the HTML:
...
Then in preloader.swf:
var ojtParams:Object = this.loaderInfo.parameters;
var swfPath:String = ojtParams.path;
hth,
Bob
-Original Message
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 mo
5 matches
Mail list logo