Flash Player has always loaded assets (images, swfs, etc) relative to the embedding file.
HTH, Ben --- In [email protected], "Alex Harui" <[EMAIL PROTECTED]> wrote: > > Are you saying that index.html loads ../MainApp.swf? Please verify > that. Put a trace statement for the loaderInfo.url in the app. Maybe > there's a deployment problem. > > > > ________________________________ > > From: [email protected] [mailto:[EMAIL PROTECTED] On > Behalf Of mydarkspoon > Sent: Monday, February 04, 2008 6:52 AM > To: [email protected] > Subject: [flexcoders] RSL realtive path is relative to the page path, > not the swf path > > > > Hello, > > I'm trying to load RSL from a relative path: > MainApp.swf - my main app > MyRsl.swf - my rsl > > Now, it happens to be that the main application is being loaded from > url like this: > http://www.myDomain.com/swf/MainApp.swf > <http://www.myDomain.com/swf/MainApp.swf> > which loads--> > http://www.myDomain.com/swf/MyRsl.swf > <http://www.myDomain.com/swf/MyRsl.swf> > > However, the swf is embedded in another path: > http://www.myDomain.com/swf/index.php/index.html > <http://www.myDomain.com/swf/index.php/index.html> > > The MainApp.swf however tries to load the rsl from > http://www.myDomain.com/swf/index.php/MyRsl.swf > <http://www.myDomain.com/swf/index.php/MyRsl.swf> > > This is obviously a wrong path and since the path is given at tcompile > time I can't seem to be able to point it to the swf relative path. > > Any ideas of how to use the swf path instead of the page path without > specifying an absolute location ? > > Thanks in advance, > Almog Kurtser. > Almog Kurtser. >

