4 Replies Latest reply on Feb 17, 2010 2:06 AM by Quentin T

    Flex 4 + AIR 2 + <mx:Image> = Security Sandbox Violation!

    Quentin T

      Hi there!

      I've been using Flex 4 and AIR 2 for some time now and there's a bug (or is it really one) that I always get and can't understand...


      Whenever I use a <mx:Image> to load an image (JPG) on a remote server that has a valid crossdomain.xml I get some annoying warnings. Of course, these only are warnings and everything runs fine (except that) but it's a pain to debug an app that has lots of logs like that:


      *** Security Sandbox Violation ***

      SecurityDomain 'http://static-p3.fotolia.com/jpg/00/07/56/92/110_F_7569245_9hdeWKxUxFRNYuowdSDBNv0YFN9xTJ9 S.jpg' tried to access incompatible context 'app:/Main.swf'


      I've googled it and found lots of others folks/threads about this, but none of them provide a valid solution... Seems like it's specific to AIR because some answers/solutions I found work in a basic SWF, but fail in an AIR app.


      Is that a bug in Flex?

      Am I wrong about the crossdomain.xml?

      How could a JPG raise a Security Sandbox Violation?


      Tips or tricks, anyone?