Statistics
| Branch: | Revision:

root / webodf / flashput / PUT.as @ d2535f7c

History | View | Annotate | Download (620 Bytes)

1
package {
2
	import flash.display.Sprite;
3
	import flash.display.LoaderInfo;
4
	import flash.external.ExternalInterface;
5
	public class PUT extends Sprite {
6
		public function PUT() {
7
			ExternalInterface.addCallback("put", this.put);
8
			var callback:String = LoaderInfo(root.loaderInfo).parameters["readyCallback"];
9
			ExternalInterface.call(callback);
10
		}
11
		public function put(host:String, port:uint, path:String,
12
				data:String, callbackFunctionName:String,
13
                                callbackId:String):void {
14
			new Request(host, port, path, data,
15
					callbackFunctionName, callbackId);
16
		}
17
	}
18
}