If you are using the MovieClipLoader class you could call an onLoadError
event.  It seems to work well, but you still get the "Error opening
URL..." message under your custom error message.

__mclListener = new Object();
__mcl = new MovieClipLoader();

__mclListener.onLoadError = function(target_mc:MovieClip,
errorCode:String, httpStatus:Number) {
    trace(">> mclListener.onLoadError()");
    trace(">> ==========================");
    trace(">> errorCode: " + errorCode);
    trace(">> httpStatus: " + httpStatus);
}

__mcl.addListener(__mclListener);
__mcl.loadClip("long_url_of_jpg", holder_mc);


Traces out:

>> mclListener.onLoadError()
>> ==========================
>> errorCode: URLNotFound
>> httpStatus: 0
Error opening URL "Error opening URL file:///.....long_url_of_jpg"


I tried putting it in a try-catch loop with no better results.  One
could possibly write a custom class that would throw errors though.

Hope that helps!
-Dan

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Gregory
N
Sent: Sunday, February 11, 2007 7:42 AM
To: [email protected]
Subject: [Flashcoders] Trace: level of details?

Hi all,

I'm curious, is there a way to set level of details for trace()?

In the project I'm working on, there's a lot of images loading. Some of
them
are missing, so I'm getting a 4-line message:
"Error opening URL
file:///.....long_url_of_jpg"
I'd like to get rid of this trash in output to be able to read my own
messages in convenience :-).

Any ideas?


--
--
Best regards,
GregoryN
================================
http://GOusable.com
Flash components development.
Usability services.
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

This e-mail and its attachments are intended only for the use of the 
addressee(s) and may contain privileged, confidential or proprietary 
information. If you are not the intended recipient, or the employee or agent 
responsible for delivering the message to the intended recipient, you are 
hereby notified that any dissemination, distribution, displaying, copying, or 
use of this information is strictly prohibited. If you have received this 
communication in error, please inform the sender immediately and delete and 
destroy any record of this message. Thank you.
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to