24 Replies Latest reply on May 24, 2011 5:31 AM by melas076

    PDF LINKS NOT WORKING !!!!!

    melas076 Level 1

      Dear all,

       

      I tried several time to load a pdf file and clickable for each sublinks.

       

      this is the code in my root:

      var newsXML:XML = new XML();
      newsXML.ignoreWhite = true;
      var output:String = "";

       

      newsXML.onLoad = function(success) {
          if (success) {
          for(var i:Number=0;i<newsXML.childNodes[1].childNodes.length;i++){
      var tlink:String = newsXML.childNodes[1].attributes.Name;
      var linkS:String = newsXML.childNodes[1].childNodes[i].attributes.name;
      var textS:String = newsXML.childNodes[1].childNodes[i].firstChild.nodeValue;
      var pdfS:String = newsXML.childNodes[1].childNodes[i].attributes.pdfurls;
      var urlpdf = pdfS;
      _root.sub_bg.subTXT1.htmlText += "<a href='asfunction:linkF,"+textS+"'>"+linkS+"</a><br>";
      _root.sub_bg.linktitle.htmlText = tlink;

       

      _root.bg.butpdf.onRelease = function() {
      getURL(urlpdf,"_blank");
          };

       

      What i missed?

       

      i appreciate your help!

       

      MELAS