You might try changing the state of the child component before the
parent.  I've noticed, probably because of Flex's asynchronous
nature, that sometimes code doesn't execute before the screen is
rendered. 

If you were using cairngorm, I would recomend that you control all
of the states in your application in the modelLocator.  By binding
the currentState property of a component to a variable in the
model, you can simply update the variable to the desired state for
the component and the view automatically reflects the change.  I can
provide you with an example if you want.  But, if you're not using
cairngorm yet, it probably won't fit your need.

Tim

--- In [email protected], "Michael Schmalle"
<[EMAIL PROTECTED]> wrote:
>
> hi,
>
> No, that was just a typo from the email, I am getting no errors.
>
> Peace, Mike
>
> On 4/20/06, Tim Hoff <[EMAIL PROTECTED]> wrote:
> >
> >
> > Looks like you need an equal sign.
> >
> >         modifierCheckGroup.currentState "matchState";
> >
> > should be:
> >
> >        modifierCheckGroup.currentState = "matchState";
> >
> > - Tim
> >
> >
> > --- In [email protected], "Michael Schmalle"
> >
> > <teoti.graphix@> wrote:
> > >
> > > Hi,
> > >
> > > Real quick is there a problem with changing a parent component
state
> > and in
> > > the next call calling one if it's children's state changes?
> > >
> > > I cannot get this to work, but in the mxml component the child
> > component
> > > changes state fine.
> > >
> > > IE
> > >
> > > if (event.label == "Match") {
> > > trace("Match");
> > > currentState = "matchState";
> > > modifierCheckGroup.currentState "matchState";
> > > }
> > >
> > > Peace, Mike
> > >
> > > --
> > > What goes up, does come down.
> > >
> >
> >
> >
> >
> >
> >
> >
> >
> >  --
> > 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
> >
> >
> >    -  Visit your
group "flexcoders<http://groups.yahoo.com/group/flexcoders>"
> >    on the web.
> >
> >    -  To unsubscribe from this group, send an email to:
> >     [EMAIL PROTECTED]<flexcoders-
[EMAIL PROTECTED]>
> >
> >    -  Your use of Yahoo! Groups is subject to the Yahoo! Terms of
> >    Service <http://docs.yahoo.com/info/terms/>.
> >
> >
> >  ------------------------------
> >
>
>
>
> --
> What goes up, does come down.
>






--
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