1 Reply Latest reply on Aug 4, 2009 2:35 PM by cyber0897

    flex soap client (interospection wizard) preloader help

    cyber0897 Level 1

      hey guys, i have a small problem, im brand new to flex so i haveno idea what im doin... im using the flash builder (gumbo)

      and basically what im doin is getting soap data from my server using the webservice interospection wizard.


      what i cannot figure out is how to popup a loader bar, indefinite or definite dosent matter...


      the current code i have is:

      package modules.SiteEditor{
          import mainScript.mainList;
          import mx.controls.Alert;
          import mx.rpc.events.FaultEvent;
          import mx.rpc.events.ResultEvent;
          import services.sites.*;


          [Bindable] public class siteEditor{
              // variables
              public static var siteTitle:String;
              public static var siteListData:Site;
              public static var siteService:Sites = new Sites();
              public static var isUpdated:Boolean = false;
              public static function init():void{
                  siteService.addEventListener(ResultEvent.RESULT, resulting);
                  siteService.addEventListener(FaultEvent.FAULT, fault);
              public static function resulting(event:ResultEvent):void{
                  siteListData = event.result as Site;
                  siteTitle = siteListData.siteTitle;
                  isUpdated = false;
              public static function fault(event:FaultEvent):void{



      i have a vague idea about how to do this, but it dosent work...

      what i tried to do is add another event listeler in the init function but i cannot see loadingEvent in the drop down list that pops up... if that makes any sence...


      All i want to happen when the init function is called is a loader bar to popup.


      thanks a lot in advance