0 Replies Latest reply on May 1, 2007 6:54 PM by santhikevin

    button failing on _root level

    santhikevin
      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

      kD:-)

      stop();

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

      preload2.onLoadStart = function(targetMC) {
      heartPlacer._x=95;
      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;
      oneToUnload._visible=false;
      trace(targetMC+" finished");

      }

      heart_mc.loadClip("heartSpinning.swf", "container2");
      _root.arrow_btn.onRelease=function(){
      trace("tjisjao");

      }

      //--------------------------
      //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

      - Hide quoted text -
      - Show quoted text -