-
Senior Member
cross domain policy woes
I'm using benschmidtke.com because he has a tutorial on this and a very permissive cross domain policy that should work
This code works from within the Flex IDE - but not when it's loaded on website
i've tried POSTing as weel without luck - any suggestions?
protected function button2_clickHandler(event:MouseEvent):void
{
Alert.show("loadPolicyFile");
flash.system.Security.allowDomain( "http://www.benschmidtke.com" );
flash.system.Security.loadPolicyFile( "http://www.benschmidtke.com/downloads/crossdomain_example/crossdomain.xml" );
var url:String = "http://www.benschmidtke.com";
var request:URLRequest = new URLRequest(url);
var loader:URLLoader = new URLLoader();
loader.dataFormat = URLLoaderDataFormat.TEXT;
request.method = URLRequestMethod.GET;
loader.addEventListener(Event.COMPLETE, handleComplete);
loader.load(request);
}
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|