1 Reply Latest reply on Sep 12, 2006 12:44 AM by Peter Lorent

    Function calling problem

    srib
      Hi,

      I created a class file and in constructor loading a XML file and on Load of XML I am calling different function with in the same class, but it is not executing can you please tell me where is the problem.
      Here is the code given below.


      class myClass
      {
      private var myXML:XML;
      public function myClass()
      {
      myXML = new XML()
      myXML.load("myXML")
      myXML.onLoad = function()
      {
      displaText() // This is the function which is not calling
      }
      }

      public function displaText()
      {
      trace("Welcome")
      }
      }