Skip to main content
Participant
March 18, 2011
Question

XML and URLLoader in for ? pls help :/

  • March 18, 2011
  • 1 reply
  • 326 views

Hi fellas i have a big problem getting data's from xml spesific nodes i need load some spesific nodes on xml file and load it with urlloader starting with "0" and ++ but i think load xml files correcty but url loader reach the last node on the xml file and load it on only last node pls somebody help me

this is the for code on as3 file

    for (var i:int = 0; i < myXML.Ad.InLine.Creatives.Creative.Linear.TrackingEvents.Tracking.(@event == "complete").text().length(); i++)
    {
   
    var impresionElement:XML =  myXML.Ad.InLine.Creatives.Creative.Linear.TrackingEvents.Tracking.(@event == "complete").text();
   
    impTEXT = impresionElement
   


    trace(impTEXT);

   
    }

and output is

XML Output
------------------------
http://search.spotxchange.com/beacon/5.beacon.0/=tamamlandi
http://search.spotxchange.com/beacon/5.beacon.0/=tamamlandi1

this my problem is if i impTEXT:String; using on url loader load only this url


"http://search.spotxchange.com/beacon/5.beacon.0/=tamamlandi1"

but i need load it all  "  Tracking.(@event == "complete")  " in same time on urlloader

urlloader cod is bellow

function VideoMiddle(event:Event):void
{
    var midpoint1:URLLoader = new URLLoader();
    midpoint1.load(new URLRequest(
impTEXT));
    midpoint1.addEventListener(Event.COMPLETE, removeVideoMiddle);
}

function removeVideoMiddle(event:Event)
{
    stage.removeEventListener(Event.ENTER_FRAME,VideoMiddle);
    trace("Video %50 completed");
}

if video reach of the middle load  all this nodes in all url's same time

Tracking.(@event == "complete")

pls help and

This topic has been closed for replies.

1 reply

GrumgrodAuthor
Participant
March 18, 2011

ok i handle it.