Skip to main content
November 29, 2007
Question

How to receive the error in the output panel in a textfield

  • November 29, 2007
  • 1 reply
  • 170 views
Hello, if you test your movie and when an error occurs the error is going to the output panel.

Is it possible to catch these errors en put them in an textfield?

My error example in my output is :

Error opening URL "file:///C|/DOCUME%7E1/CSM%7E1/LOCALS%7E1/Temp/doesnotexist.jpg"


The code i tried is:

function loadSomething() {
loadMovie("doesnotexist.jpg", doel);
}
try {
loadSomething();
} catch (e_err:Error) {
trace("Error!! "+e_err.message);;
trace("\t"+e_err.name);
}

I noticed with try catch finaly you can create your own error name, but i don't want this.
I would like the error report that flash generate in an textfield.. I search a lot in the help file in the error constructor
but could not find an solution.

Does anyone have an solution for this?

Regards,

Micheal.
This topic has been closed for replies.

1 reply

December 5, 2007
does no one has experience with this?