0 Replies Latest reply on Apr 30, 2007 3:24 AM by santhikevin

    _root level methods failing when using movieClipLoader

      man wouldn't have a clue why, using onloadInit BELOW, doesn't listen to simple button methods addressed to the _root movieClip, the script for this frame on the root mc is below, any help please
      It works fine offline, but when on server the button response just doesn't work
      www.kevindauth.com and go to port Folio/ then top right graphic to load animation, try pressing the right buttons as it loads, it just fails, maybe best to check code below first thanks



      var heartPlacer = this.createEmptyMovieClip("container2", "101");
      var heart_mc:MovieClipLoader = new MovieClipLoader();
      var preload2 = new Object();

      preload2.onLoadStart = function(targetMC) {
      trace("started loading "+targetMC);
      container2._visible = false;
      bar_mc._visible = true;

      preload2.onLoadProgress = function(targetMC, lBytes, tBytes) {
      bar_mc._width = (lBytes/tBytes)*100;
      preload2.onLoadComplete = function(targetMC) {
      text._visible = false;
      bar_mc._visible = false;
      container2._visible = true;
      loadingNow._visible = false;
      trace(targetMC+" finished");

      heart_mc.loadClip("heartSpinning.swf", "container2");

      //preload2.onLoadInit = function(target:MovieClip) {

      _root.sun2_btn.onRelease=function(){ //fails
      heart_mc.unloadClip(target); //fails
      var newVar:MovieClipLoader = new MovieClipLoader(); //fails
      newVar.loadClip("workExNew.swf","targetMC"); //FAILS