That is exactly what I changed it to scott. Thanks for the thought. --- In flexcoders@yahoogroups.com, "Scott Langeberg" <[EMAIL PROTECTED]> wrote: > > I believe that initialize() is only triggered the first time the movie > loads. You'll probably want to call the function again, using a listener on > the state change. Sorry I don't have any code to give... > > ;) Scott > > > On 6/8/06, Jeremy Rottman <[EMAIL PROTECTED]> wrote: > > > > I am using initialize to call a function when I enter a state. The > > first time I enter the state everything works fine. The function is > > called and the text input is populated correctly. But when I leave the > > state, and go back into at another time, it appears that the function > > is not called and the text input is not populated. Has anyone ran into > > this before. > > > > Here is the code I am using > > > > THIS IS MY WEBSERVICE -- > > > > <mx:WebService id="listService" useProxy="false" > > wsdl="cfc/adminList.cfc?wsdl" > > showBusyCursor="true"> > > <mx:operation name="qiAdminListStart" > > result="listServiceqiAdminListStartResult( > > listService.qiAdminListStart.lastResult )" > > fault="listServiceqiAdminListStartFault(event)"/> > > </mx:WebService> > > > > FUNCTIONS FOR THIS WEBSERVICE -- > > > > // CALL WEBSERVICE TO POPULATE FILE NUMBER INPUT > > private function listServiceqiAdminListStart():void{ > > listService.qiAdminListStart(); > > } > > // WEBSERVICE RETURN RESULTS -- POPULATES FILE NUMBER INPUT ON > > INIALIZATION > > > > private function listServiceqiAdminListStartResult(result):void{ > > fileNumber.text = result; > > } > > > > // WEBSERVICE RETURNS FALUT -- RETURNS FAULT TO USER > > > > private function listServiceqiAdminListStartFault(event : > > FaultEvent) :void { > > Alert.show("TEST ERROR","Program Error:"); > > } > > > > > > > > > > > > -- > > : : ) Scott >
------------------------ Yahoo! Groups Sponsor --------------------~--> Get to your groups with one click. Know instantly when new email arrives http://us.click.yahoo.com/.7bhrC/MGxNAA/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/