http://www.adobe.com/devnet/flash/articles/fplayer8_security_07.html

In order to enable local-with-filesystem, you have to add a
System.security.allowDomain("*") -- although since you are running the
swf on a local webserver (i.e. localhost or 127.0.0.1), I don't think
it treats it as a "local swf", so if you run the swf from your
filesystem, i.e. browse to it in Finder, and open it that way, it
should work.

- Taka

On Wed, Mar 25, 2009 at 9:48 AM, Pavel Krusek <[email protected]> wrote:
> Hi,
>
> i have main.swf file, into it it is loading another swf with
> additional items (png, xml,..). The another swf is loaded but not
> external images, xml etc. Flash output says that there is security /
> sandbox violation problem. Does anybody has any idea?
>
> thanks
>
> *** Security Sandbox Violation ***
> Connection to 
> file:///Macintosh%20HD/Users/pavelkrusek/projects/mama%5Fflash/Devel/src/data/floor_base.png
> halted - not permitted from http://localhost:3000/RoomPlanner.swf
> -- Remote SWFs may not access local files.
> SecurityError: Error #2148: SWF file
> http://localhost:3000/RoomPlanner.swf cannot access local resource
> file:///Macintosh%20HD/Users/pavelkrusek/projects/mama%5Fflash/Devel/src/data/floor_base.png.
> Only local-with-filesystem and trusted local SWF files may access
> local resources.
>        at flash.display::Loader/flash.display:Loader::_load()
>        at flash.display::Loader/load()
>        at com.eurorscg.DM.RoomPlanner::RoomObject$iinit()
>        at com.eurorscg.DM.RoomPlanner::FloorTile$iinit()
>        at com.eurorscg.DM.RoomPlanner::RoomLayout/::buildFloor()
>        at com.eurorscg.DM.RoomPlanner::RoomLayout$iinit()
>        at com.eurorscg.DM.RoomPlanner::Editor$iinit()
>        at RoomPlanner/::buildEditor()
>        at RoomPlanner$iinit()
>
> --
> Pavel Krusek
> _______________________________________________
> Flashcoders mailing list
> [email protected]
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>

_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to