Re: [flexcoders] Re: Flex2B2 :: Changing State :: Problem with parent child

2006-04-21 Thread Michael Schmalle



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

2006-04-21 Thread Michael Schmalle



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.