This project is read-only.
Project Description
Cross Domain Data Loader is a free library that allows to perform cross-domain urlrequests using actionscript3.

Class diagram

Example
Place proxy.aspx under bin-debug folder.

<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" 
  xmlns:s="library://ns.adobe.com/flex/spark"
  creationComplete="creationCompleteHandler(event)"
  xmlns:mx="library://ns.adobe.com/flex/halo"
  minWidth="1024" minHeight="768">
  <fx:Script>
    <![CDATA[
      import csloader.events.ExtraEvent;
      import csloader.loaders.ImageLoader;
      
      import mx.core.UIComponent;
      import mx.events.FlexEvent;
      
      private var loader:ImageLoader;
      
      protected function creationCompleteHandler(event:FlexEvent):void
      {
        loader = new ImageLoader(callback);
        loader.call("http://www.google.com/intl/en_ALL/images/logo.gif",
          null,"get");
        loader.call("http://www.baidu.com/img/logo-yy.gif",null,"get");
      }
        
      protected function callback(event:ExtraEvent):void
      {
        var ui:UIComponent = new UIComponent();
        ui.addChild(event.data as DisplayObject);
        this.addElement(ui);
      }

    ]]>
  </fx:Script>
</s:Application>

Last edited Dec 18, 2009 at 8:08 AM by gameboyLV, version 12