You need a crossdomain.xml file at http://localhost/crossdomain.xml. Security.allowDomain
is to allow SWFs from other domains to communicate with your SWF I believe.
If you access your SWF from http://localhost instead of off your local
filesystem you also won’t get the error.
Matt
Hello,
Ah this is probably one of those easy answers but,
Security.allowDomain("http://localhost/apidoc");
Using a php server on my localhost that DOES work,
"Error #2044: Unhandled securityError:
text=Error #2048: Security
sandbox violation: 'file:///c:/Documents and
Settings/TeotiGraphix/My
Documents/Flex/APIDoc/bin/APIDoc-debug.swf' may
not load data from
'http://localhost/apidoc/echo.php'.
at APIDocUI/APIDocUI$7$private::testLoadPHP()[C:\Documents
and
Settings\TeotiGraphix\My
Documents\Flex\APIDoc\APIDocUI.as:37]"
why am I getting a sandbox violation?
Can anyuone help me here, I have had no luck with
allowDomain in Flex
Builder 2. What has changed?
Peace, Mike
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
YAHOO! GROUPS LINKS
|
- RE: [flexcoders] Sandbox violations Flex2 Matt Chotin
-