In the html-template folder we find the index.template.html file. After my recent skirmish with FlashVars, I got to wondering if I could
embed php code in the template. This would allow me to use php's function to dynamically retrieve the hostname from the server, set
the flashvar and then access that from my flex application.
Anybody know if you can do this?
Simplest of all is to edit the default launch location to use your php instead.
For example, I have mine (in one project) set to export debug assets into a directory in my server.local root directory and I have modified the launch location from e:\[project location]\bin-debug\index-template.html to http://server.local/flexdev/[project name]/index.php?somevars...
PS: You know you can also use something like Charles to proxy / swap out release files from your release server with debug files from your test environment? That way, you can do debug testing against a full function environment.