-
Relative paths
So I just found out the hard way that the path that Flash uses to load external content is based on the HTML it is embedded in, not the SWF itself. This is a problem for me because I have the HTML generated from a PHP file that is in a folder below the SWF. The PHP has other dependencies that would break if I moved it into the same folder as the SWF.
So basically now my dev testing and web versions are separated by a folder.
Is there a way to change the relative path Flash uses? Or am I going to have to hack things up?
-
Well I "fixed" it with a small snippet of code in my resource manager that automatically checks to see if the file is online, and if so adds the folder to the path.
This "fix" (ie hack) doesn't sit well with me though, so if anyone has a better solution let me know.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|