Permalink
Browse files

Security.loadPolicyFile

  • Loading branch information...
1 parent c945ed5 commit 947f060eb9dcf26db9cc8bae07624b40baf73d89 @fmaxx fmaxx committed Jan 14, 2013
Showing with 6 additions and 0 deletions.
  1. +6 −0 flash/3.4/src/com/pubnub/Pn.as
@@ -8,6 +8,7 @@ package com.pubnub {
import com.pubnub.subscribe.*;
import flash.errors.*;
import flash.events.*;
+ import flash.system.Security;
import flash.utils.*;
use namespace pn_internal;
@@ -45,6 +46,8 @@ package com.pubnub {
}
private function setup():void {
+ //Security.loadPolicyFile('http://pubsub.pubnub.com/crossdomain.xml');
+
operationsFactory = new Dictionary();
operationsFactory[INIT_OPERATION] = createInitOperation;
operationsFactory[PUBLISH_OPERATION] = createPublishOperation;
@@ -56,6 +59,9 @@ package com.pubnub {
environment.addEventListener(EnvironmentEvent.SHUTDOWN, onEnvironmentShutdown);
environment.addEventListener(NetMonEvent.HTTP_ENABLE, onEnvironmentHttpEnable);
environment.addEventListener(NetMonEvent.HTTP_DISABLE, onEnvironmentHttpDisable);
+
+ //Security.loadPolicyFile('http://pubsub.pubnub.com/crossdomain.xml:80');
+
}
private function onEnvironmentHttpDisable(e:NetMonEvent):void {

0 comments on commit 947f060

Please sign in to comment.