Creating a Killer Flash Site - Update 2: Crossdomain Security
Published May 10th, 2007 in: ActionScript 3, Flash
Ok, I just figuered out that the crossdomain security was causing some remoting trouble when accessing the domain without the www. The solution was to remove the static URL 'http://www.oysteinwika.com' from the ServiceProxy path.
ActionScript 3.0 Code:
// now with relative path ///
public function loadDoc(_type:String, _file:String):void {
proxy = new ServiceProxy("/services/gateway.php",
"com.oysteinwika.LoadDoc");
proxy.addEventListener(ResultEvent.RESULT,
onResult, false, 0, true);
proxy.addEventListener(FaultEvent.FAULT,
onFault, false, 0, true);
proxy.addEventListener(FaultEvent.CONNECTION_ERROR,
onConnectionError, false, 0, true);
proxy.getData(_type, _file);
}
About
You are currently browsing the Øystein Wika weblog.
Blog Feed
Recent Posts
- The perfect 40th Birthday Gift
- onAIR tour Europe
- Flex/AIR Pre-Release Tour: Oslo
- Papervision3D Test
- Designing Wika Media
- Flash on the Beach '07
- Linpro wins NUUG Award
- SWFMouseWheel (alpha)
- Flash Player gets H.264 support
- Flash Business Logic
- Oslo Flash Platform User Group
- AIR Chat - Live from Dallas
- I got Pownce Invites
- Adobe onAIR Bus Tour Summer '07
- New Project: CTRL7.com