var loader      :       SWFLoader       =       new SWFLoader();
loader.addEventListener(Event.COMPLETE,result);
loader.addEventListener(IOErrorEvent.IO_ERROR,fault);
loader.addEventListener
(ProgressEvent.PROGRESS ,checkProgressfunction);

loader.load(urlReq);

// defining functions
public function result(evt:Event):void
{
// on the result of the loader
}
public function fault(evt:FaultEvent):void
{
// Called if the loader get a fault state
}
public function checkProgressfunction(evt:ProgressEvent):void
{
// can capture how much time and data in progress of loading
}

Cheers
Varun Rathore
http://www.vrathore.blogspot.com
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to