home *** CD-ROM | disk | FTP | other *** search
- package mx.rpc.soap
- {
- import flash.events.Event;
- import flash.xml.XMLDocument;
- import mx.rpc.events.WSDLLoadEvent;
- import mx.rpc.wsdl.WSDL;
-
- public class LoadEvent extends WSDLLoadEvent
- {
- public static const LOAD:String = "load";
-
- private var _document:XMLDocument;
-
- public function LoadEvent(param1:String, param2:Boolean = false, param3:Boolean = true, param4:WSDL = null, param5:String = null)
- {
- super(param1 == null ? LOAD : param1,param2,param3,param4,param5);
- }
-
- public static function createEvent(param1:WSDL, param2:String = null) : LoadEvent
- {
- return new LoadEvent(LOAD,false,true,param1,param2);
- }
-
- public function get document() : XMLDocument
- {
- if(_document == null && xml != null)
- {
- try
- {
- _document = new XMLDocument(xml.toXMLString());
- }
- catch(e:Error)
- {
- }
- }
- return _document;
- }
-
- override public function toString() : String
- {
- return formatToString("LoadEvent","location","type","bubbles","cancelable","eventPhase");
- }
-
- override public function clone() : Event
- {
- return new LoadEvent(type,bubbles,cancelable,wsdl,location);
- }
- }
- }
-
-