1 Reply Latest reply on Nov 3, 2006 5:33 PM by Macromotion

    Page bug?

    Macromotion Level 1
      Hi friends. When i load the city in my combo, the page happen a problem. Look the image. Before load and after load the data. It is the second application when this happen the problem.

      BUG OF FLEX

      tanks.
        • 1. Re: Page bug?
          Macromotion Level 1
          The part of my code.

          public function cidadesFunction ():void{
          var myXMLURL:URLRequest = new URLRequest(caminho + "cidades_lista.php");
          var myLoader:URLLoader = new URLLoader(myXMLURL);
          myLoader.addEventListener("complete", xmlLoaded);
          function xmlLoaded(evtObj:Event):void {
          cidadesXML = XML(myLoader.data); IF I REMOVE THIS LINE DON'T HAVE ANY PROBLEM BUT DON'T WORK
          for(x=0; x<cidadesXML.children().length(); x++){
          var estado:String = cidadesXML.children()[x].attributes()[0];
          cidadesArray.push({data:x, label:estado});
          }
          }
          comboCidades.dataProvider = cidadesArray;
          }