Mike! Thanks was just puzzinling over thise same error!!

Thanks!

On 10/22/06, Mike Morearty <[EMAIL PROTECTED]> wrote:

  Yes, I've seen this before. Although I don't know if it's a bug, I do
know the workaround.

If you call ObjectUtil.toString() on a UIComponent, you will get this,
because many of the members of UIComponent.systemManager.loaderInfo
throw this exception. In your case, I bet the 'target' property of
the event is a UIComponent.

The workaround is to exclude the 'loaderInfo' property from the dump,
like this:

ObjectUtil.toString(event, null, ['loaderInfo'])

I agree the error message seems suspicious, since the app has
completely finished loading.


--- In [email protected] <flexcoders%40yahoogroups.com>, "Matt
Chotin" <[EMAIL PROTECTED]> wrote:
>
> I see it. It may be that the deep recursive printing in the MouseEvent
> is hitting something it shouldn't be. Maybe try excluding some of the
> properties like target so it doesn't go too deep?
>
>
>
> ________________________________
>
> From: [email protected] <flexcoders%40yahoogroups.com> [mailto:
[email protected] <flexcoders%40yahoogroups.com>] On
> Behalf Of David Harris
> Sent: Thursday, October 12, 2006 1:24 PM
> To: [email protected] <flexcoders%40yahoogroups.com>
> Subject: [flexcoders] my event isn't "sufficiently loaded to provide
> this information."
>
>
>
> This is a bit weird. (Every other time I have said this it's been me
> but...)
>
> I have a custom event that I am broadcasting on a button click.
>
> The Button is clicked, which then calls a function.
>
> When I put a trace of the event.target I get the "The loading object
> is not sufficiently loaded to provide this information." error.
>
> I am not sure why this is happening as the target is fully loaded
> before I click it.
>
> Any one else seen this?
>
> The below snippet causes this error for me. Do you see this error when
> you run the below code?:
>
> =================================================================
>
> <?xml version="1.0" encoding="utf-8"?>
> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml
> <http://www.adobe.com/2006/mxml> " layout="absolute">
> <mx:Script>
> <![CDATA[
> import mx.utils.ObjectUtil;
> public function buttonClickHandler(event:MouseEvent):void
> {
> trace(ObjectUtil.toString(event));
> }
> ]]>
> </mx:Script>
>
> <mx:HBox>
> <mx:Button id="thisButton" click="buttonClickHandler(event)" />
> </mx:HBox>
> </mx:Application>
>




--
John Wilker
Vice President Software Development/Writer
Red Omega Solutions, Inc.
www.johnwilker.com / www.red-omega.com

"Everything changes, nothing remains without change." ~Buddha c.483 bc

Reply via email to