you can list out the namespaces in your access attempts too. Yes, you can list multiple namespaces in one access if you have to.
var value:String = result.nameSpaceOne::someNode.someOtherNode.value.toString(); where you have defined nameSpaceOne as a NameSpace and all. Also, and I'm not saying always do this, but you can use * if you really need to var value:String = result.*::someNode.someOtherNode.value.toString(); DK Douglas Knudsen http://www.cubicleman.com this is my signature, like it? On Wed, Feb 11, 2009 at 3:25 PM, Patrick Carroll < [email protected]> wrote: > I don't have access to all your code, but what you're describing looks a > bit like this: > > http://bugs.adobe.com/jira/browse/ASC-2800 > > I hope this helps. > > > On Wed, Feb 11, 2009 at 2:44 PM, John Waggener <[email protected]>wrote: > >> 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()<http://adobe.com/AS3/2006/builtin::apply%28%29> >> 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 >> > >
