Hello everyone, My has app a login form containing a button which calls a web service to authenticate the user. This works fine. Now I have added a Logout button at the top using the HeaderControllerWidget.
On clicking the Logout button, I call an external webservice to close my BusinessObjects session, then redirect my app to the Login page as follows var curURL:String = String( ExternalInterface.call("function(){ return document.location.href.toString();}")); curURL = curURL.substring(curURL.lastIndexOf("/")+1); navigateToURL(new URLRequest(curURL),'_self');
However when user logs back on, the initial map extent is no longer the same and I get the following error:
ArgumentError: Error #2004: One of the parameters is invalid. at flash.display::Graphics/drawRect() at com.esri.ags.layers::Layer/drawBitmap() at com.esri.ags.layers::Layer/updateDisplayList() at mx.core::UIComponent/validateDisplayList() at mx.managers::LayoutManager/validateDisplayList() at mx.managers::LayoutManager/doPhasedInstantiation() at mx.managers::LayoutManager/doPhasedInstantiationCallback() at flash.utils::Timer/_timerDispatch() at flash.utils::Timer/tick()
Any suggestions how to logout completely from the ArcGIS Flex Viewer without closing the browser?
I'm having a very similar issue now. I was using the 3.0 api, but recently started testing on 3.3. For some reason, everything else the same, this error is occurring in the same manner that you state. Did you find a solution?