You should add
if authentication is succesful,
viewstack.selectedChild = secondView
else
viewStack.selectedChild = firstView
in the result function of the authentication

Sree

juyalmanu wrote:
Dear All,
I am havig problem with web authentication service along with flex.
The idea is very simple.

1. I start a flex application (I am using viewstack), the first view
in the stach appear with two buttons, one for members and one for
guest.

2. if I am a member, I click a log in button and it takes me to a
URL where I will authenticate myself (It works fine).

3. Once I authenticate myself, I should be able to go to the next
view in the stack, where all my information will retrieved from the
database and all textboxes will be populated.

(I am able to authenticate and able to retrieve the information but
it happens only if I set the call authentication function on
application's initialize function. In that case I don't need first
view in the stack (i.e. the view with two buttons). I'll
automatically go to the web authentication URL upon the start of the
application. ButI do need the first view).

In my opinion what happening is that after completing the
authentication (after coming back from web authentication URL), the
application is again starting with first view. However I want it to
start with the second view with the populated text boxes.

can anyone give me some idea please.

--Manu








--
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




Reply via email to