Here what I do :
ws.addEventListener('load',WSLoad);
ws.addEventListener('fault',ErrorLoadingWS);
ws.loadWSDL();
load event appear in case of reacheable wsdl file but you have to handle
if the wsdl file is not well formed :
public function WSLoad(ev:LoadEvent):void {
if(!ws.canLoadWSDL()) {
//generally not well formed wsdl
}
}
fault event appear in case of unreacheable wsdl file (file not found or
network error...)
mika
slek a écrit :
>
>
> Hi,
>
> Is there a way warning dialogs in browser from Flash Player be disabled?
>
> My application tries to load a file(WSDL) from the server. Server
> initiates
> a redirect to Login page for authentication.
> This causes Flash Player to display a warning dialog on the browser : RPC
> Fault faultString="Faulty WSDL format".
>
> Instead I would like to handle this error in a event handler. However,the
> above error from Flash player occurs first.
>
> Thankyou in advance.
>
> --
> View this message in context:
> http://www.nabble.com/Disabling-Warnings-and-Errors-from-Flash-Player-tf3556787.html#a9931618
>
> <http://www.nabble.com/Disabling-Warnings-and-Errors-from-Flash-Player-tf3556787.html#a9931618>
> Sent from the FlexCoders mailing list archive at Nabble.com.
>
>