1 Reply Latest reply on Apr 6, 2011 10:36 PM by JaxNa

    Access data from webservice

    JaxNa Level 1

      Hi guys,

       

      I want to access data from websevice. How to pass my webservice in following code?

       

      //***************************************************AS*****************************

      imgname_list = new Array();

      BrandID_list = new Array();

      stop();

      MagID_list = new Array();

      title_list = new Array();

      title2_list = new Array();

      title3_list = new Array();

      var MagID

      var BrandID;

      var BrandTitle;

      var tlink2;

      var tlink3;

      description_list = new Array();

      var filepath = "Press_img/";

      (here is pass local path)

       

      var sun_xml = new XML();

      sun_xml.ignoreWhite = true;

      sun_xml.onLoad = function() {

      var nodes:Array = this.firstChild.childNodes;

      for (var i = 0; i<nodes.length; i++) {

      title_list.push(nodes[i].attributes.title);

      BrandID_list.push(nodes[i].attributes.id);

      imgname_list.push(nodes[i].attributes.img);

      trace(imgname_list[i]);

      }

      play();

      }

      sun_xml.load("xml/press.xml");

      //***********************************************************************************

       

      //********************************************XML*********************************

      <?xml version="1.0" encoding="utf-8"?>

      <press>

      <brand img="velvetbrand.jpg" title="Velvet" id="Brand1">

      <coverpage img="magzine1.jpg" title="magzine1" id="mag1">

      <presspage img="presszoom.jpg" title=""/>

      <presspage img="presszoom2.jpg" title=""/>

      </coverpage>

      <coverpage img="magzine2.jpg" title="" id="mag2">

      <presspage img="presszoom4.jpg" title=""/>

      <presspage img="presszoom2.jpg" title=""/>

      <presspage img="presszoom3.jpg" title=""/>

      </coverpage>

      <coverpage img="magzine3.jpg" title="" id="mag3">

      <presspage img="presszoom4.jpg" title=""/>

      <presspage img="presszoom2.jpg" title=""/>

      <presspage img="presszoom3.jpg" title=""/>

      </coverpage>

      </brand>

      <brand img="360brand.jpg" title="360 Brand" id="Brand2">

      <coverpage img="magzine3.jpg" title="" id="mag1">

      <presspage img="presszoom4.jpg" title=""/>

      <presspage img="presszoom2.jpg" title=""/>

      <presspage img="presszoom3.jpg" title=""/>

      </coverpage>

      </brand>

      <brand img="grahamspencer.jpg" title="graham spencer" id="Brand3">

      <coverpage img="magzine3.jpg" title="v1" id="mag1">

      <presspage img="presszoom3.jpg" title=""/>

      </coverpage>

      <coverpage img="magzine2.jpg" title="v2" id="mag2">

      <presspage img="presszoom.jpg" title=""/>

      </coverpage>

      <coverpage img="magzine1.jpg" title="v3" id="mag3">

      <presspage img="presszoom3.jpg" title=""/>

      <presspage img="presszoom.jpg" title=""/>

      </coverpage>

      </brand>

       

      <brand img="dressgallery.jpg" title="dressgallery" id="Brand3">

      <coverpage img="magzine3.jpg" title="v1" id="mag1">

      <presspage img="presszoom3.jpg" title=""/>

      </coverpage>

      <coverpage img="magzine2.jpg" title="v2" id="mag2">

      <presspage img="presszoom.jpg" title=""/>

      </coverpage>

      <coverpage img="magzine1.jpg" title="v3" id="mag3">

      <presspage img="presszoom3.jpg" title=""/>

      <presspage img="presszoom.jpg" title=""/>

      </coverpage>

      </brand>

       

      <brand img="ilarianistri.jpg" title="ilaria nistri" id="Brand4">

      <coverpage img="magzine3.jpg" title="v1" id="mag1">

      <presspage img="presszoom4.jpg" title=""/>

      <presspage img="presszoom2.jpg" title=""/>

      </coverpage>

      <coverpage img="magzine2.jpg" title="v2" id="mag2">

      <presspage img="presszoom.jpg" title=""/>

      </coverpage>

      <coverpage img="magzine1.jpg" title="v3" id="mag3">

      <presspage img="presszoom3.jpg" title=""/>

      <presspage img="presszoom.jpg" title=""/>

      </coverpage>

      </brand>

      <brand img="bestbehavior.jpg" title="best behavior" id="Brand5">

      <coverpage img="magzine3.jpg" title="v1" id="mag1">

      <presspage img="presszoom4.jpg" title=""/>

      <presspage img="presszoom2.jpg" title=""/>

      </coverpage>

      <coverpage img="magzine2.jpg" title="v2" id="mag2">

      <presspage img="presszoom1.jpg" title=""/>

      </coverpage>

      <coverpage img="magzine1.jpg" title="v3" id="mag3">

      <presspage img="presszoom3.jpg" title=""/>

      <presspage img="presszoom.jpg" title=""/>

      </coverpage>

      </brand>

      <brand img="mypants.jpg" title="my pants" id="Brand6">

      <coverpage img="magzine3.jpg" title="v1" id="mag1">

      <presspage img="presszoom4.jpg" title=""/>

      <presspage img="presszoom2.jpg" title=""/>

      </coverpage>

      <coverpage img="magzine2.jpg" title="v2" id="mag2">

      <presspage img="presszoom.jpg" title=""/>

      </coverpage>

      <coverpage img="magzine1.jpg" title="v3" id="mag3">

      <presspage img="presszoom3.jpg" title=""/>

      <presspage img="presszoom.jpg" title=""/>

      </coverpage>

      </brand>

      <brand img="mweb223_l.JPG" title="MOTHER" id="Brand7">

      <coverpage img="CH41_Symbol_223_coverpage.jpg" title="test" id="mag1">

        <presspage img="BOCR5G_Symbol_223_l.jpg" title="test1" />

        </coverpage>

        </brand>

       

      </press>

       

      Thanks,

      JaxNa