This content has been marked as final. Show 3 replies
I just add the following <img src="com\foo\web\recursos\fotos\3GMovil.JPG" /> and the compiler directive -use-network=false and the issue is solved. If this directive is not used the following error is shown:
SecurityError: Error #2148: SWF file file://D:\Trabajo\Web\Insit\0.7\paginas\loader.swf cannot access local resource file://D:\Trabajo\Web\foo\0.7\paginas\com\foot\web\recursos\fotos\3GMovil.JPG. Only local-with-filesystem and trusted local SWF files may access local resources.
In case I use this directive the SWF generated will not be able to access the network.
To avoid the errors related with the usage of my local workspace I have accessed pictures located on a server and I got the following:
SecurityError: Error #2122: Security sandbox violation: BitmapData.draw: file://D:\Trabajo\Web\foo\0.7\paginas\loader.swf cannot access http://192.168.0.128:8080/VYMOWebPruebas/a.JPG. A policy file is required, but the checkPolicyFile flag was not set when this media was loaded.
Please help! Is it possible to embed a picture in a SWF and then call then from the htmlText? Any of you have faced this issue?
thanks in advance,
I have resolved error 2122 by creating a policy file (crossdomain.xml )and locating it on the remote sever so I have a partial solution for my problem. Any way I would like to the get images loaded from the SWF directory.
Solved. Set the security sand box as File system sand box.