I had created a cross domain policy file and that did work. Yeah, I must have been thinking allowDomain backwards. It worked in Flash 8, that is what got me confused.
> If you access your SWF from http://localhost instead of off your local filesystem you also won't get the error.
I get you on that, but I was just trying to debug in Flex Builder wit the debug button and using FireFox.
Peace, Mike
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
From: [email protected] [mailto:[email protected]] On Behalf Of teotigraphix
Sent: Wednesday, November 16, 2005 5:15 AM
To: [email protected]
Subject: [flexcoders] Sandbox violations Flex2
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
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
| Web site design development | Computer software development | Software design and development |
| Macromedia flex | Software development best practice |
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

