this is what i think. if the exception is going to fail silently i would either like 1) an event being dispatched with this error that i can tap into or 2) an function that i can override with something like a try catch block or even a switch to implement my own error handeling for this.
flash is not java or c#, we deal with a ton of async stuff without the ability to spawn threads, this might be a "HUH" feature in other langauges but in AS i really think its necesary

On 2/17/06, Matt Chotin <[EMAIL PROTECTED]> wrote:

The exception dialog does not show up in the release player, only in Debug.  The exception is still thrown, it just doesn't appear to the user if you didn't catch it (the behavior is the same as debug though, whatever was wrong is still wrong).

 


From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Johannes Nel
Sent: Thursday, February 16, 2006 11:03 PM


To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Uncaught exceptions in Flex 2.0

 

what do you mean i we won;t see those exceptions in the release player? are all async exceptions just going to fly(aka some piece of internal player code goed catch(e:Error))?

On 2/17/06, Matt Chotin < [EMAIL PROTECTED]> wrote:

You won't see those exceptions in a release player, only debug.  Are you using the Flex Loader or the flash.display.Loader?

 


From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Jason Y. Kwong
Sent: Thursday, February 16, 2006 9:49 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Uncaught exceptions in Flex 2.0

 

I figured it had something to do with _root, but it's not my code trying to get at it.  In my tests, I tried loading a Flash 8 swf that contained nothing but a Label component.  I get the error:

ReferenceError: Error #1056: Cannot create property reserved on  _TestApp_mx_managers_SystemManager

Interestingly, this error doesn't happen if I specify the swf in the MXML, eg:

<mx:Loader source="Test.swf"/>

But if use load() or the source property in script, the exception happens.  Unfortunately, I need to use the load() method.  So is there any way to catch these exceptions?  I noticed that if you click "Dismiss All" on the error popup, it never pops up again for any other exceptions (it just traces warnings to the console).  Any way to set that at startup?

 

On 2/15/06, Matt Chotin < [EMAIL PROTECTED] > wrote:

Actually, is your loaded SWF trying to access _root?  If it is, those are legit errors, you can't just muck with the root anymore.

 


From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Jason Y. Kwong
Sent: Tuesday, February 14, 2006 10:30 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Uncaught exceptions in Flex 2.0

 

When using the Loader component to load a Flash 8 swf, I normally get a couple of uncaught exceptions that appear via a pop-up window:

ReferenceError: Error #1056: Cannot create property __OnEnterFrameBeacon on _TestApp_mx_managers_SystemManager

ReferenceError: Error #1056: Cannot create property reserved on _TestApp_mx_managers_SystemManager

If you dismiss these exceptions, the swf runs fine.  I trust that these exceptions will be fixed eventually.  In the meantime, I would like to prevent the pop-up window.  Since these exceptions are thrown during the asynchronous load, I can't catch them the usual way.  In the docs, there's a section titled "Uncaught exceptions", but it's currently blank.  Is there a way in AS3 to declare something like a global exception handler to catch these uncaught exceptions?

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com


SPONSORED LINKS

Web site design development

Computer software development

Software design and development

Macromedia flex

Software development best practice

 

 


YAHOO! GROUPS LINKS

 

 


 





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com



SPONSORED LINKS

Web site design development

Computer software development

Software design and development

Macromedia flex

Software development best practice

 

 


YAHOO! GROUPS LINKS

 

 





--
j:pn



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS






--
j:pn


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to