Skip to main content
victorSobrinho
Inspiring
January 24, 2012
Answered

As to print data of xml in the field of text in palco

  • January 24, 2012
  • 1 reply
  • 487 views

segue o seguinte código para abertura do arquivo xml:

xml follows the following code for opening of the archive:

var carregador:URLLoader = new URLLoader();    
carregador.addEventListener(Event.COMPLETE, emCompleto, false, 0, true); 
   carregador.load(new URLRequest("http://localhost/arquivo.xml"));   
function emCompleto(evt:Event):void
{ 
    var dadosXML:XML = new XML(evt.target.data);
     // Obtendo valor do atributo... // Getting value of the attribute…
      texto = dadosXML.pessoa[0].@id;
      trace(texto);
     // Exibirá "cliente" // Will show " cliente"
  } 
This topic has been closed for replies.
Correct answer kglad

is there a question?

1 reply

kglad
Community Expert
kgladCommunity ExpertCorrect answer
Community Expert
January 24, 2012

is there a question?