views:

240

answers:

0

I have an SWF that loads other SWF files within it. For clarity, the parent SWF I will call Parent, and the child SWF I will call Child. (The child SWF is from an Adobe Captivate export)

The Parent SWF exists within a directory, /webroot/swf/parent.swf The Child SWF exists within another directory, /webroot/children/child.swf

The Child SWF is intended to load FLV files from it's local folder - but it is instead, looking for them within the Parent swf folder (/webroot/swf/) rather than it's own local folder (/webroot/children/). I assume it is just doing a loadVideo(videoName.flv) or something similar.

I don't have any control over the Child SWF - but I do have control over the Parent. Is it possible to command the Child SWF to look for files within another directory?

In PHP I could use the chdir() function (http://www.php.net/manual/en/function.chdir.php) - to trick the Child into looking for the files in the right place.. but I don't know of any command in Flash.

EDIT --- Looking over it again, Child is actually loading another SWF inside of itself, and THAT SWF is the one looking for files in the wrong place. Same problem - with just another level of embed.