I am using rubyAMF to communicate with flex.  At the entry point of my
application, a user must authenticate.  As a brand new flex developer, I ran
into a question at the next step.  I need to make a call back to rails, to
see if the authenticated user has completed a certain wizard.  If they have,
I will let them on to the rest of the application, if not ... off the wizard
they go.  My question (hopefully an easy one) is about bet practice.  Where
do I put that Boolean check?  My application is using state to determine
which part of the viewstack to have visible.  It is also using cairngorm for
the command pattern and front controller.  As far as I can tell, some
options are as follows, 

 

1)       I can make the Boolean call inside of the handler for my login
response.  This would then cause the decision to be made in the Boolean call
handler, and not in my login call handler.  I get the feeling this is bad.
It reminds me of the olden days of chaining ajax calls.\

 

2)       I can set a state for LOGGED_IN and then have some intermediary
step make the Boolean call using HTTPService, and handle it all on that step
(in the mxml file... I'm still learning the lingo).  This would bypass my
whole command pattern and controller setup.

 

I apologize for my noobness, but is there any advice anyone can give a
struggling new flex developer?

<<attachment: winmail.dat>>

Reply via email to