Hi all!
I have two main folders in my application:
- One with my flash sources named “flashsources” (with *.fla, *.as etc)
- Another one for production only, named “www” (with *.swf, *.html, *.js etc)
When I compile my swf, from the *.fla which is in flashsources, it is published in www.
I am loading an external swf from my main swf, this external one is located in www.
The path to this swf changes whether my main swf is executed from Flash (at the compilation, then the current directory is flashsources) or outside Flash (running directly the file *.swf, so the current directory is “www”)
Does anyone know if there’s a way to detect whether I am in or out Flash, to change the path to the external swf accordingly, or maybe a way to detect the current directory?
Thanks for your help!