4 Replies Latest reply on May 30, 2006 8:22 AM by angelina28

    Content.load("directory path");

    angelina28
      Hi..I have a flash file using a textarea component that brings in XML data. I'm running into an issue that involves my XML and CSS file residing on a different server. The ".load" command seems to only read a directory path. I think I need a command that will read a URL based ("http") path. Any ideas? Below is my code for reference.

      //init TextArea component
      myText.html = true;
      myText.wordWrap = true;
      myText.multiline = true;
      myText.label.condenseWhite=true;

      //load css
      gpsdsStyle = new TextField.StyleSheet();
      gpsdsStyle.load("GPSDSNET/XML/gpsdsUpdate.css"); //need to insert http path here
      myText.styleSheet = gpsdsStyle;

      //load in XML
      gpsdsContent = new XML();
      gpsdsContent.ignoreWhite = true;
      gpsdsContent.load("GPSDSNET/XML/gpsdsUpdate.xml"); //need to insert http path here
      gpsdsContent.onLoad = function(success)
      {
      if(success)
      {
      myText.text = gpsdsContent;
      }
      }