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 __._,_.___
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
![]()
SPONSORED LINKS
Web site design development Computer software development Software design and development Macromedia flex Software development best practice
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
__,_._,___
- Re: [flexcoders] Initialize funkyness Scott Langeberg
- [flexcoders] Re: Initialize funkyness Jeremy Rottman
Reply via email to
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:

