Hi,
I have been developing a flex application and now come to the point
where I have to add a login component. The structure of my application
is as follows:
Mainapp
|-Component-1
|-Component-2
|-Login Component
the thing is Mainapp is just a container. Component-1 has the button
which calls login component, I have followed the tutorial from
http://www.vipercreations.com/tutorials/Adobe%20Flex/28.html . Now in
case of successful login i need to change the state of component-1 to
reflect login success. I have a logged in state defined in
component-1. I have been trying different combinations after reading
refrence documents but seems like i am shooting in the dark. Everytime
I face the error :
ArgumentError: Undefined state 'loggedin'.
at mx.core::UIComponent/::getState()
at mx.core::UIComponent/::findCommonBaseState()
at mx.core::UIComponent/::commitCurrentState()
at mx.core::UIComponent/setCurrentState()
at mx.core::UIComponent/set currentState()
at component::userlogin/checkLogin()
at component::userlogin/__login_user_result()
at
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at
mx.rpc.http.mxml::HTTPService/http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent()
at
mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::resultHandler()
at mx.rpc::Responder/result()
at mx.rpc::AsyncRequest/acknowledge()
at ::DirectHTTPMessageResponder/completeHandler()
at
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/flash.net:URLLoader::onComplete()
Can someone point me into right direction??? I have tried
Application.application.parentDocument option as well (as pointed out
by Neri). Is there an obvious mistake that I am making ?
Appriciate the help.
Cheers,
Kartik