3 Replies Latest reply on Dec 15, 2008 7:56 AM by thybluefox

    loadMovie() &  XML.onLoad query(AS2)

    JohnWalsh2011
      Hi all :)

      I have a Flash file that uses the loadMovie () to load JPG files successfully, example:

      imageuri = "../images/00_proto" + var1 + ".jpg";
      holder_mc.holder0.loadMovie(this["imageuri"]);
      Working Example

      'holder_mc' is the container clip and 'holder0' is the clip that stores the loaded JPG file, this works fine.



      I am upgrading the Flash file using an XML database, code example:

      var statesXML:XML = new XML();
      statesXML.ignoreWhite = true;
      statesXML.load("../XML/USA.xml");
      statesXML.onLoad = function(success)
      {
      // XML loading excluded

      // Problem code
      imageuri = "../images/00_proto" + var1 + ".jpg";
      _parent.holder_mc.holder0.loadMovie(this["imageuri"]);
      }

      The JPG's are not being loaded into the 'holder0' clip from inside the XML.onLoad() method. Spent hours trying to fix this, still have not resolved the problem. Any responses much welcomed!

      regards

      John
      www.javono.com