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

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: object . param name=movie value=swf/preloader.swf?path=swf/ / ... embed src=swf/preloader.swf?path=swf/ .../ /object Then in preloader.swf: var

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).join();

RE: [Flashcoders] swf paths...

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

Re: [Flashcoders] swf paths...

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