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], "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] [mailto:[EMAIL PROTECTED] On
> Behalf Of David Harris
> Sent: Thursday, October 12, 2006 1:24 PM
> To: [email protected]
> 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>
>





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

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/flexcoders/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

Reply via email to