Re: [Flashcoders] swf paths...

2009-06-03 Thread maurice sallave
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

RE: [Flashcoders] swf paths...

2009-06-03 Thread Robert Leisle
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

Re: [Flashcoders] swf paths...

2009-06-03 Thread maurice sallave
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

RE: [Flashcoders] swf paths...

2009-06-03 Thread Robert Leisle
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

Re: [Flashcoders] swf paths...

2009-06-03 Thread Juan Pablo Califano
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