In my application I have setup a statemanager, this statemanager loads all the various states that I use. The issue I am having is this. I am trying to populate another state screen with information that I retreive from a search. As of now, I cant get it to populate the text inputs.
There is alot of code so bear with me. Main Application file. <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" xmlns:widgets="components.widgets.*" xmlns:stateManager="components.managers.*" viewSourceURL="srcview/index.html"> <mx:Canvas width="100%" height="100%" > <!-- SEARCH WIDGET --> <widgets:widgetSearch y="0" x="0"/> <!-- MENU BAR WIDGET --> <widgets:widgetMenuBar x="0" y="50" /> <!-- STATE MANAGER --> <stateManager:stateManager x="0" y="94" id="mainDisplay" /> </mx:Canvas> </mx:Application> In the code above my stateManager has the id mainDisplay. State Manager file. <mx:states> <mx:State name="mainState"> </mx:State> <!-- EDIT LISTING STATE --> <mx:State name="editListing" basedOn="mainState" > <mx:AddChild> <transactions:viewEditListing id="etel" /> </mx:AddChild> </mx:State> </mx:states> Here I have given the id etel to my transaction view file EditListing. Here is where I am getting the problem. // CALL FOR LISTING POPULATION private function SearchListing_Listing_Display(fileNum){ SearchListing.Listing_Display(fileNum) } // HANDLE LISTING POPULATE RESULTS private function SearchListing_Listing_Display_Result(result):void{ parentApplication.mainDisplay.currentState = 'editListing'; Alert.show(result.fld_fileNum); parentApplication.mainDisplay.etel.fileNumber.text = result.fld_fileNum; } // HANDLE LISTING POPULTE ERRORS private function SearchListing_Listing_Display_Fault(event:FaultEvent):void{ Alert.show("Test Error","Program Error") } In the fucntion SearchListing_Listing_Display_Result, I change the state from the search state, to the edit state. This works fine. It is when I get to this part parentApplication.mainDisplay.etel.fileNumber.text = result.fld_fileNum; where things go wrong. It is not populating hte text input. I have tried all sorts of variations on this. And still have come up with nothing. Anyone see how I can get the text input populated? ------------------------ Yahoo! Groups Sponsor --------------------~--> Yahoo! Groups gets a make over. See the new email design. http://us.click.yahoo.com/XISQkA/lOaOAA/yQLSAA/nhFolB/TM --------------------------------------------------------------------~-> -- 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 <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

