1 Reply Latest reply on May 2, 2011 7:07 PM by kglad

    drag loadclip

    juresti Level 1

      I am loading images with the code below:

       

      var lo:Object=new Object();
              lo.onLoadInit=function(target:MovieClip){
              target.forceSmoothing=true;
              }
             
              var mclip:MovieClipLoader=new MovieClipLoader();
              mclip.addListener(lo);
             
      var lozoom:Object=new Object();
              lozoom.onLoadInit=function(target:MovieClip){
              target.forceSmoothing=true;
              target._x = 150;//move 100 x
              }
             
              var mclipzoom:MovieClipLoader=new MovieClipLoader();
              mclipzoom.addListener(lozoom);

       

      function displayResources($parsedObject:Object):Void {
              mclip.loadClip($parsedObject.fishingtool[0].image[0].nodeValue, this.holder_mcfish0);
               var i:Number;
                var tool:Array = $parsedObject.tool;
                 for (i = 0; i < tool.length; i++) {
                     this["menu_txt"+i].setNewTextFormat(menuText);
                  this["menu_txt"+i].text = tool[i].name;
                  mclip.loadClip(tool[i].image[0].nodeValue, this["holder_mc"+i]);

       

       

      After the images are loaded I'd like to drag and drop the clips they are in. The movieclips reside on the stage. Once I use loadclip is the instance name removed?? I can't seem to access it.