Hi,

   There is no way of setting a filtering level for trace() in Flash.

You can suppress output entirely - check the menu in the output window. http://www.adobe.com/devnet/flash/articles/debugging_actionscript_print.html You can also "redirect" the trace calls if you compile your SWF with MTASC, but that may be using a sledgehammer to crack a nut:

   http://osflash.org/xray

   http://osflash.org/mtasc

   Good luck
G

Gregory N wrote:
Thanks to all who responded, of course ;-)

I do know about MovieClipLoader etc.
Actually I'm looking for a way to get rid of "system" traces:
Error opening URL "Error opening URL file:///.....long_url_of_jpg"

When you use MovieClipLoader and set your own custom messages, you'll STILL
get these ""Error opening URL ..." in Output window...

What I'm looking for is similar to, say, PHP, where you can set a level of
details for messaged (all/warning/error...) or any compiler.

for example:
http://www.php.net/manual/en/ref.errorfunc.php#ini.error-reporting





On 2/12/07, Holth, Daniel C. <[EMAIL PROTECTED]> wrote:


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?


--


_______________________________________________
[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