This content has been marked as final. Show 6 replies
What is the full text of the error?
There is no error message-- the map does not load in Flex, that is the only error. However, the swf runs perfectly!
You will need to find out what is wrong
Put trace statements in the suspected code to determine what is not working.
Security is the most probable culprit, but you need to know exactly. And if it is a security problem, an exception is being thrown somewhere, you need to find out where and what.
The error is being thrown when I try to send a call to a php file. Here's the error message:
Warning: Failed to load policy file from http://localhost/crossdomain.xml
*** Security Sandbox Violation ***
Connection to http://localhost/geothentic_admin_php/createStudentsList_XML.php?studentsClassListID=66 halted - not permitted from file:///C:/Documents%20and%20Settings/sxh12/My%20Documents/Flex%20Builder%203/temp22/bin- debug/testMarker.swf
Error: Request for resource at http://localhost/geothentic_admin_php/createStudentsList_XML.php?studentsClassListID=66 by requestor from file:///C:/Documents%20and%20Settings/sxh12/My%20Documents/Flex%20Builder%203/temp22/bin- debug/testMarker.swf is denied due to lack of policy file permissions.
Ahh, do you see the fully qualified "file" url in there? That is definitely going to be a problem when you deploy your app because it will only be valid on one machine.
Further, a swf can only access assets from the local file system or from the network, but not both. (under Flex Builder, however, all is permitted)
Track down where the url to the testMarker.swf is being set and change it to a web url, and make sure the swf is there where you specify. A relative url might work also, but I avoid them
I normally handle assets paths by passing a "base" url string into my apps from the html wrapper. The app appends any sub folders needed, then the asset filename.
Finally, you might also be able to "embed" the swf asset, though I have seen some folks have problems with that.
This might happen due to the Key which needed to be validated each time Google Map is loaded.