Can you give the code to the states and the transitions (if you are using a transition)?   When I have seen this it was because I was trying to remove a child that was not actually created or the relation setting was incorrect.  I’ll be able to give you better feedback after I have seen the code.  Also, one thing that comes to mind right off the bat is the applicationControlBar.  Do you have an applicationControlBar?  I have seen issues when trying to do a removeChild on the applicationControlBar (it’s because when it’s docked, it’s added at a much lower level than other components, so it’s not really a child of the application). 

 

Dustin Mercer

 


From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Graham Weldon
Sent: Monday, November 06, 2006 2:37 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: State Changing Error

 

This is a small bump. Has anyone encountered this or does anyone have
any thoughts on a cause or fix?

Cheers,
Graham Weldon
Software Engineer

--- In [EMAIL PROTECTED]ups.com, "Graham Weldon" <[EMAIL PROTECTED]> wrote:
>
> Hi all,
>
> I've encountered this before, but I cannot for the life of me recall
> what the cause and fix is:
> I have the following states (represented with respect to heirachy:
>
> - <base state>
> - - - home
> - - - login (start)
>
>
> The change from "login" to "home" occurs correctly, once verification
> of the login details has taken place. This is done with a
> 'currentState="home" ' after checking the login details.
>
> When I click the logout button whose click attribute is
> 'currentState="home" ' I get the following error:
>
> ArgumentError: Error #2025: The supplied DisplayObject must be a child
> of the caller.
> at flash.display::DisplayObjectContainer/removeChild()
> at mx.core::Container/removeChild()
> at mx.states::AddChild/remove()
> at mx.core::UIComponent/::removeState()
> at mx.core::UIComponent/::commitCurrentState()
> at mx.core::UIComponent/setCurrentState()
> at mx.core::UIComponent/set currentState()
> at main/___Button2_click()
>
>
>
> Any help appreciated.
>
> Regards,
> Graham Weldon
> Software Engineer
>

__._,_.___

--
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
Software development tool Software development Software development services
Home design software Software development company

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___

Reply via email to