2 Replies Latest reply on Mar 6, 2008 6:57 AM by

    XML onLoad and "this" scope

      I have a movieclip in maintimeline that loads and external XML and set an onLoad function:

      obj_xml.onLoad = function(exito) {

      if (exito) {


      } else {
      trace("error");
      }
      }

      obj_xml.load("foro.xml");
      PROBLEM: inside onLoad function I want to call a movieclip that is in the main timeline. Problem is that when I use "this._parent" doesn't work, as this returns in this case the whole XML object.
      ¿How can I set a relative path within de onLoad function that is triggered when the XML loads?
      Than a lot.