This is odd. I have no idea how to fix it. I have a PHP file (Apache/Linux Server) that calls a Flash movie that resides in a subfolder. That works. It pulls up the Flash movie and all is good so far.
The problem:
Inside the Flash movie there are 4-5 buttons that make a load movie call to other Flash movies that are in the same subfolder as the original movie. When this happens, the Flash file fails to load the movie. The original Flash file's call is a direct link to the file with NO slashs or periods (although I tried that too). The link in Flash is also not a expression. In the actionscript is the filename ONLY.
Offline, if I just pull up the Flash file, it works great. If I make this same call from an HTML file to the Flash sub-folder (either locally or on the server) it runs great.
When it is run online with PHP, the Flash file will only play the original file and will not load the sub-movie in. The only fix I have found is to put the PHP file directly into the Flash folder. Once this is done, I can play the Flash file from the PHP file and the Flash file will successfully load the sub-movies. OR another fix was to put the absolute URL in the Flash loadMovie command (which is usually just the relative filename since all of the Flash files for one project go into the same folder).
Yay he fixed it....NO. I need the PHP on the OUTSIDE of the subfolder that has the Flash files. Why? I have MANY subfolders to create for many projects. I can't have all the files in the same folder. It would be a big unorganized mess and some of the Flash files are different but have the same name. I could duplicate my PHP file for every folder, but then the task of updating the PHP would become a pain since I would have to then reupload a file into numerous folders.
I could also include an absolute URL in the Flash loadMovie command for all of my Flash files. This cannot be done either because there are hundreds of files and most were done years ago. So going back to reconfigure all of them would not be feesible, expecially since the person who will end up doing our input work will be using a simple interface, not Flash.
Has anyone ever seen this problem? If so, how does one fix it? It seems like it is somehow in the PHP, but I am not sure.
Here is the PHP outside of the Flash folder:
http://www.exade.com/test/test_flash.php
Here is the same exact PHP inside of the Flash folder (only difference in the code is that this file doesn't include a folder when calling the Flash file):
http://www.exade.com/test/images/test_flash2.php
Just click on any of the four main, gray, links to view what I am talking about.
If anyone wants to check out the PHP code:
http://www.exade.com/test/wth.zip