[flexcoders] Re: Flex2B2 :: Changing State :: Problem with parent child
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 flexcoders@yahoogroups.com, 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 flexcoders@yahoogroups.com, 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 flexcodershttp://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 Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] Re: Flex2B2 :: Changing State :: Problem with parent child
Well, I have downloded it and researched but, not implemented it yet. From reading the 6 part artical, it seemed that this app I am making wasn't big enough to warrant it. If you want, post the example. I could just implement the pattern anyway(without the framework). Peace, MikeOn 4/21/06, Tim Hoff [EMAIL PROTECTED] wrote: 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 flexcoders@yahoogroups.com, 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 flexcoders@yahoogroups.com, 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 flexcodershttp://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 Visit your group flexcoders on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- 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" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] Re: Flex2B2 :: Changing State :: Problem with parent child
Oh yeah, Now that is the morning and I remeber what I did, it was the call. For now, I just over road the Application's currentState and called what I need from there. Since I use a lot of modules, the scope is only one child deep for this. Works fine. If you still want to post that example that would be great. Peace, MikeOn 4/21/06, Michael Schmalle [EMAIL PROTECTED] wrote: Well, I have downloded it and researched but, not implemented it yet. From reading the 6 part artical, it seemed that this app I am making wasn't big enough to warrant it. If you want, post the example. I could just implement the pattern anyway(without the framework). Peace, MikeOn 4/21/06, Tim Hoff [EMAIL PROTECTED] wrote: 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 flexcoders@yahoogroups.com, 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 flexcoders@yahoogroups.com, 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 flexcodershttp://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 Visit your group flexcoders on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- What goes up, does come down. -- 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" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Re: Flex2B2 :: Changing State :: Problem with parent child
Hey Mike, just look back a couple of messages to #34516 Flex2B2: Cairngorm - Controlling View State Example. Regards, Tim --- In flexcoders@yahoogroups.com, Michael Schmalle [EMAIL PROTECTED] wrote: Oh yeah, Now that is the morning and I remeber what I did, it was the call. For now, I just over road the Application's currentState and called what I need from there. Since I use a lot of modules, the scope is only one child deep for this. Works fine. If you still want to post that example that would be great. Peace, Mike On 4/21/06, Michael Schmalle [EMAIL PROTECTED] wrote: Well, I have downloded it and researched but, not implemented it yet. From reading the 6 part artical, it seemed that this app I am making wasn't big enough to warrant it. If you want, post the example. I could just implement the pattern anyway(without the framework). Peace, Mike On 4/21/06, Tim Hoff [EMAIL PROTECTED] wrote: 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 flexcoders@yahoogroups.com, Michael Schmalle teoti.graphix@ wrote: hi, No, that was just a typo from the email, I am getting no errors. Peace, Mike On 4/20/06, Tim Hoff TimHoff@ wrote: Looks like you need an equal sign. modifierCheckGroup.currentState matchState; should be: modifierCheckGroup.currentState = matchState; - Tim --- In flexcoders@yahoogroups.com, 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% http://www.mail-archive.com/flexcoders%25 40yahoogroups.com -- YAHOO! GROUPS LINKS - Visit your group flexcodershttp://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 developmenthttp://groups.yahoo.com/gads? t=msk=Web+site+design+developmentw1=Web+site+design+developmentw2= Computer+software+developmentw3=Software+design+and+developmentw4=M acromedia+flexw5=Software+development+best+practicec=5s=166.sig=L -4QTvxB_quFDtMyhrQaHQ Computer software developmenthttp://groups.yahoo.com/gads? t=msk=Computer+software+developmentw1=Web+site+design+developmentw 2=Computer+software+developmentw3=Software+design+and+developmentw4 =Macromedia+flexw5=Software+development+best+practicec=5s=166.sig =lvQjSRfQDfWudJSe1lLjHw Software design and developmenthttp://groups.yahoo.com/gads? t=msk=Software+design+and+developmentw1=Web+site+design+development w2=Computer+software+developmentw3=Software+design+and+development w4=Macromedia+flexw5=Software+development+best+practicec=5s=166.s ig=1pMBCdo3DsJbuU9AEmO1oQ Macromedia flexhttp://groups.yahoo.com/gads? t=msk=Macromedia+flexw1=Web+site+design+developmentw2=Computer+sof tware+developmentw3=Software+design+and+developmentw4=Macromedia+fl exw5=Software+development+best+practicec=5s=166.sig=OO6nPIrz7_EpZ I36cYzBjw Software development best practicehttp://groups.yahoo.com/gads?
[flexcoders] Re: Flex2B2 :: Changing State :: Problem with parent child
Looks like you need an equal sign. modifierCheckGroup.currentState matchState; should be: modifierCheckGroup.currentState = matchState; - Tim --- In flexcoders@yahoogroups.com, Michael Schmalle [EMAIL PROTECTED] 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" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.