Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ASAP how to read "Error opening URL "..."" massage? 1

Status
Not open for further replies.

SamG1000

Programmer
Nov 17, 2002
11
US
How would I be able to read this line "
Code:
Error opening URL "..."
" printed in Output window. I need it to be in ActionScript.

My movie opens an asp file. If the ASP server is down and Flash can not find a file, this error would be displayed.
I need to know if I can read the error message (I am using Load Variables)

Any suggestions are really appreciated...

Simon
 
if you are using mx then use loadvars and then no problem

myAsp = new loadvars();
myAsp.onload = message;
function messsage(){
if(success){ //do what you ought to be doing
else //display message failed to load
}
myAsp.sendandload("file.asp");

loadvars will test for success. if you are using an earlier version of flash and must use loadvariables then sorry i cant help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top