1 Reply Latest reply on Dec 21, 2006 11:22 AM by Peter Lorent

    Where to put XPath

      Once I've downloaded XPath from xfactorstudio where do I put it?

      I've looked for a 'Classes' folder in the application data folder for flash but its not there. I've created one but I still can't get XPath to work.

      import com.xfactorstudio.xml.xpath.*;

      var myDoc = new XPathDocument();
      myDoc.onLoad = function(success){
      .... do something .....

      myDoc.load(" http://<domain>/weather_proxy.asp?id=" + id); // returns xml doc

      I weather_proxy script works and returns an xml document. I can parse the xml document in my code with firstChild, etc and it works, but I would like to get XPath to work from xfactorstudio. I don't think its getting imported as it never reaches the onload function.

        • 1. Re: Where to put XPath
          Peter Lorent Level 2
          In the directory that contains your .fla file, create a directory 'com'. Copy the directory xfactorstudio to the directory /com you just created.

          This line:
          import com.xfactorstudio.xml.xpath.*;
          the bit after the import statement is just a path with its origin at the .fla file you're working with.
          The import statement doesn't import anything. It just enables you to not have to type the fully qualified path to the class you want to use.