Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
imoverhere

How can I load a file using a relative path to the swf?

Recommended Posts

Hello and thanks again for your product here!

 

I have a swf in a folder on my server for ever client.  I'd like each of those swfs to load a file in a common folder one level up.  For exmple:

 

fakeRootName\Client100\this.swf

fakeRootName\Client101\this.swf

 

fakeRootName\CommonXML\targetXML.xml

 

How can i direct Loadermax to reach targetXML.xml?

Link to comment
Share on other sites

Hi,

 

The paths you use in your ActionScript code to load external swfs, mp3s and images are relative to the html page that the swf is displayed in, not the location of the swf itself.

The location of you html page will dictate the path that you use. 

 

I don't know where you html page is, so I really can't help beyond that. 

 

If your html page is in Client100 I would start with trying ../CommonXML/targetXML.xml

 

If not try a few more ../../ ;)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

×