I'm trying to load
some images from a different domain than the one my Flex app lives on. When I
do, the debugger prints out a bunch of errors like this:
*** Security
Sandbox Violation ***
SecurityDomain
'http://myserver.com/index.mxml?debug=true' tried to access incompatible context
'http://otherserver.com/someImage?wid=30'
(Note, the image
is dynamically generated and the URL should not include
".jpg")
Despite the
errors, my images still seem to load in successfully, both through the Flex
Builder IDE and when viewed directly in IE. Or so I thought.
The weird thing
I've discovered is that if my image paths are brought into my Flex app via an
XML file, then I do get the errors above, but the images do load successfully.
However, if my image paths come in as a result of a remote object call, I get
the same errors and my images DON'T load successfully. I've double checked the
exact path's that are being used in both situations by tracing out the path
immediately before it is used as the value for the "source" property of the
<mx:Image> tag and it is EXACTLY the same in both
cases.
So I have
questions. First, why do I get those error messages? Secondly, if there really
is a security sandbox violation, why do the images load successfully under the
conditions I mentioned above? And finally, how do I prevent these violations
from occurring in the first place?
Thanks for any
insight you can provide.
Yahoo! Groups Sponsor | |
|
|
Yahoo! Groups Links
- To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.