Hi Dustin.

Sure enough I had a docked ApplicationControlBar on the "home" state.
This was been undocked, and moved to the top at 100%, and teh state
changes are now happening without any issues.

Thanks for your help on this one. Very much appreciated.

Regards,
Graham Weldon
Software Engineer


--- In [email protected], "Dustin Mercer" <[EMAIL PROTECTED]>
wrote:
>
> 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: [email protected] [mailto:[EMAIL PROTECTED] On
> Behalf Of Graham Weldon
> Sent: Monday, November 06, 2006 2:37 PM
> To: [email protected]
> 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] <mailto:flexcoders%40yahoogroups.com>
> , "Graham Weldon" <graham@> 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 
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