Skip to main content
Participating Frequently
July 11, 2008
Question

Calling swfs from sub directory

  • July 11, 2008
  • 3 replies
  • 426 views
I have a main swf loading in a swf from a sub folder on the server. The swf being loaded uses a relative link to load in an external text file (variables) located on its level. The obvious problem is that once the swf located in the parent directory consumes the swf from the sub directory, the relative path to the text file is no longer valid. I've tried to diagram the directory structure below for clairity. Is there any way to get the relative path to work without changing the directory/file structure?

Parent Directory
---->main.swf
---->Sub Directory
-------->child.swf
-------->text_vars.txt
This topic has been closed for replies.

3 replies

kglad
Community Expert
Community Expert
July 11, 2008
if you can't change the paths used by the swfs and you can't change the directory structure, you probably can't resolve any path issues.
Participating Frequently
July 11, 2008
Thanks kglad...I understand that. I need to have the html file that holds the _level0 swf at the top of the directory tree as I have 8 subdirectories to call content from. I do not have the source files for the swfs in the subdirectories as they were created by an outside vendor. I was hoping there was a programmatic way to get around this issue.
kglad
Community Expert
Community Expert
July 11, 2008
all paths should be relative to the html file that embeds your _level0 swf.