RE: [flexcoders] changing states in module behaves strange

2007-05-23 Thread Alex Harui
If you don't use a module, do you have the same problem? I'm more interested in who the parent of the custom window and content is, and whether it is the content that shifts or the custom window. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On

Re: [flexcoders] changing states from within a component

2007-02-28 Thread Clint Tredway
try parentDocument.currentState = 'home' On 2/27/07, stephen50232 [EMAIL PROTECTED] wrote: Hi, I'm working on an application, which is component based. One of my components is a Login screen, in which the user enters the username and password, these details are passed to a ColdFusion CFC

Re: [flexcoders] changing states from within a component

2007-02-28 Thread John Wilker
What I do is set a global var in my model for state. then bind currentState to that variable. Then just update your model var. On 2/27/07, stephen50232 [EMAIL PROTECTED] wrote: Hi, I'm working on an application, which is component based. One of my components is a Login screen, in which the

RE: [flexcoders] changing states from within a component

2007-02-27 Thread Karl Johnson
Like everything, there are a million ways to do this. And best practices involve opinions sometimes...but I would say the best practice is to fire off an event in your login cfc result handler, and have the parent app listen on that loginSuccessfull event. Then have this.currentState = Home,

Re: [flexcoders] changing states from within a component

2007-02-27 Thread Jeffry Houser
Have the login component fire an event upon succesful, or failed, login. Have the 'main app respond to the event by changing states (or displaying an error). At 12:23 PM 2/27/2007, you wrote: Hi, I'm working on an application, which is component based. One of my components is a Login

RE: [flexcoders] changing states from within a component

2007-02-27 Thread Dimitrios Gianninas
Your login component should broadcast a LoginEvent to tell the parent app, hey the guy logged in, all good, do what u want now. That way you can reuse your component in every app, we do the same thing. Dimitrios Gianninas RIA Developer Optimal Payments Inc.

RE: [flexcoders] changing states.

2006-06-07 Thread Rob Rusher
You should only need to set the state on "this.currentState". No import needed. Here is an example: private function stateHandler():void { this.currentState = 'About'; } Rob Rusher RIA Consultant Adobe Certified Flex 2Instructor e:[EMAIL PROTECTED] c:303.885.7044

RE: [flexcoders] Changing states with DG Click

2006-01-17 Thread Matt Chotin
I don't see the mx:state stuff in here, do you mean to be setting the currentState on the parent application maybe? parent.currentState = 'ntcl' or something? Matt -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jeremy Rottman Sent: Tuesday,