2 Replies Latest reply on Aug 17, 2007 1:18 PM by Эшл

    Relative path in class

    Эшл
      ActionScript 2.0:
      class myclass{
      public obj:Object=new Object(), myxml:XML = new XML();
      public function myclass(){
      myxml.load('test.xml');
      obj.test1 = 1; // it work because flash found object "obj"
      myxml.onLoad =fucntIon(){
      obj.test2 = 2; // dont work because flash didnt found object "obj"
      this._parent.obj.test2 = 2; // dont work
      }
      }
      }
      what script to create variable on object "obj" in xml-event "onLoad"?