1 Reply Latest reply on Aug 14, 2007 7:28 AM by wilbsy

    XML in a custom [as 2.0] class?

    wilbsy
      why wouldn't this work as an AS2.0 class? the 'myXml' value always comes up undefined. i've established that it is loading the xml file and i've tried local and online xml files and i'm just stuck... i'm new to class building.

      thanks for your help.


      the as file...

        • 1. XML in a custom [as 2.0] class?
          wilbsy Level 1
          problem solved... i'll quote the response i got on another forum...

          "This is due to a very common scoping issue with AS2. When in your code example the onLoad is triggered it's calling the parseNews method. However, when it calls this method its executed in the scope of the myXML object. You solve this by using a Delegate as shown in the example below:"