RE: [Flashcoders] Trace: level of details?

2007-02-12 Thread Amandeep Singh
For loading images use the MovieClipLoader class.

Amandeep Singh,
Senior Flash Engineer,
Synapse Communication Pvt. Ltd.
F-18, Sector 11, NOIDA, UP
www.synapse.co.in
Mobile: +91 92161 03894
Office: +91 120 4330500 


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Gregory N
Sent: Sunday, February 11, 2007 7:12 PM
To: flashcoders@chattyfig.figleaf.com
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.
___
Flashcoders@chattyfig.figleaf.com
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

___
Flashcoders@chattyfig.figleaf.com
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


RE: [Flashcoders] Trace: level of details?

2007-02-12 Thread Mike Mountain
Word of warning, I'm not the only person to experience problems in IE
with the Movieclip loader class under certain caching conditions:

http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/common/html/w
whelp.htm?context=LiveDocs_Partsfile=2538.html

Cheers

M

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf 
 Of Holth, Daniel C.
 Sent: 12 February 2007 13:03
 To: Flashcoders mailing list
 Subject: RE: [Flashcoders] Trace: level of details?
 
 
 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


ECM Systems Ltd, Ellifoot Park, Burstwick, East Yorkshire HU12 9DZ
Tel: 01964 672000 
Fax: 01964 671102
Registered in England no. 01646471 
The information contained within this email expresses the views of the sender 
and not necessarily those of the company. It is private and confidential and 
may be legally privileged. It is intended solely for those authorised to 
receive it. If you are not the intended recipient you are hereby notified that 
any disclosure, copying, distribution or action taken in reliance on its 
contents is strictly prohibited and may be unlawful. If you have received this 
email in error, please telephone us immediately on 01964 672000 or email a 
reply to highlight the error and then delete it from your system. This email 
may contain links to web-sites, the contents of which ECM Systems Ltd have no 
control over and can accept no responsibility for. Any attachments have been 
virus-checked before transmission; however, recipients are strongly advised to 
carry out their own virus checking as ECM Systems Ltd do not warrant that such 
attachments are virus-free. Please note that this email has been created in the 
knowledge that Internet email is not a secure communications medium. We advise 
that you understand and observe this lack of security when emailing us.

ECM Systems Ltd, Ellifoot Park, Burstwick, East Yorkshire HU12 9DZ

Tel: 01964 672000   
Fax: 01964 671102

Registered in England no. 01646471 

The information contained within this email expresses the views of the sender 
and not necessarily those of the company. 
It is private and confidential and may be legally privileged. It is intended 
solely for those authorised to receive it. If you are 
not the intended recipient you are hereby notified that any disclosure, 
copying, distribution or action taken in reliance on its 
contents is strictly prohibited and may be unlawful. If you have received this 
email in error, please telephone us immediately 
on 01964 672000 or email a reply to highlight the error and then delete it from 
your system. This email may contain links to 
web-sites, the contents of which ECM Systems Ltd have no control over and can 
accept no responsibility for. Any 
attachments have been virus-checked before transmission; however, recipients 
are strongly advised to carry out their own 
virus checking as ECM Systems Ltd do not warrant that such attachments are 
virus-free. 
Please note that this email has been created in the knowledge that Internet 
email is not a secure communications medium. 
We advise that you understand and observe this lack of security when emailing 
us.



___
Flashcoders@chattyfig.figleaf.com
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


Re: [Flashcoders] Trace: level of details?

2007-02-12 Thread Gregory N

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: flashcoders@chattyfig.figleaf.com
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.
___
Flashcoders@chattyfig.figleaf.com
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


Re: [Flashcoders] Trace: level of details?

2007-02-12 Thread Glen Pike

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: flashcoders@chattyfig.figleaf.com
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?


--




___
Flashcoders@chattyfig.figleaf.com
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