Hi Everyone,

I'm constructing a small app - it takes some parameters and displays a line
chart.

For a demo of the app, I am using a webservice to login.  When the app
initiates, it logs me in, I receive a token and go from there.

After login, the main mxml app responds with an onLogin method.

I was attempting to set the default xml namespace in the onLogin  methos in
the main mxml.  It freaks out!

"An invalid register 2 was accessed."

What's going on here?  Setting the default xml namespace in the app
conflicts with the apps xml namespace?

Any thoughts about this or docs I can look at are appreciated.  Here's code:

private function init():void
            {
                loginService = new LoginDelegate();
                loginService.serviceVO = new ServiceVO();
                loginService.constructRequest();
                loginService.addEventListener(
ServiceResultEvent.LOGIN_RESULT, onLogin);
                loginService.loadData();
            }

private function onLogin( event:ServiceResultEvent ):void
{
      var ns:Namespace = new Namespace("http://my-api.mysite.com/myWSRR";);
      default xml namespace = ns;
      userToken = event.result.response.login_response.user_token.text();
}

VerifyError: Error #1025: An invalid register 2 was accessed.

    at DashboardChart/___DashboardChart_Application1_creationComplete()
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at
mx.core::UIComponent/dispatchEvent()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\core\UIComponent.as:9156]
    at mx.core::UIComponent/set
initialized()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\core\UIComponent.as:1167]
    at
mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\managers\LayoutManager.as:701]
    at Function/http://adobe.com/AS3/2006/builtin::apply()
    at
mx.core::UIComponent/callLaterDispatcher2()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\core\UIComponent.as:8565]
    at
mx.core::UIComponent/callLaterDispatcher()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\core\UIComponent.as:8508]

-- 
Johnny Waggener
Software Developer
Multicast Media
678-592-2650

Reply via email to