I would like to protect my source files such as images from being downloaded or directly referenced by a URL by somebody other than my program. I thought may be an easy way to do that would be if I set the source to outside my webfolders. But my understanding is that in an Image control, the value of the property source has to be under my web root folder. Is there a way I can set the source to outside of my web folder and still have my flex app render the image od does some one have a different way of achieving the same objective. Thanks, Ramesh
You can embed your image on the application.
On FlexBuilder project, add a new source directory with your images... and in your source code some like this:
public var myImage : Class;
Unfortunately, embedding does not help me as these images are stored at run-time by file uploads in dynamic directories.
In this case you need a protection by your web-server, and not in Flex.
All web-servers have this support to block a directory list in brownser and can block for a direct url access like: http://www.myapp.com/resource/dynamic-directory/myuploadedfile.jpg