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
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
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
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,
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
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.
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
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,
8 matches
Mail list logo