Question about loadMovie (..) in flash application
I have the following code in a flash application
loadMovie("original_files/default_image.jpg", "default_img");
This is a background image that AFAI can tell.
Now notice how the path to the local file is. How does this affect when I have a Flash application compiled into a swf file and embedded in a web page? This swf will look local, won't it? (none of the clients will have this file). So I would have to make this URI (eg http://mywebsite.com/images/flashBackground.png "). But if so, how would the flash application find this file when I try to debug the Flash application?
Yes, I've (more or less) never used flash :(
cheers :)
a source to share
If you do not specify the url http: // then it will be local. The local path will refer to the html page that hosts the swf file, not the actual path to the swf file. Also, if you are using relative paths, be careful with the forward slash as / someFolder / someFile may point to a different location on the Windows or * nix server.
As far as the URIs are concerned, the local copy of swf when debugging should find the file with any problems if you are using swf from the local filesystem. If, on the other hand, you run from localhost, then you run into the security issue of the Flash Player sandbox. You cannot load access resources other than the resources of the current swf subdomain.
a source to share