1 Reply Latest reply on Apr 16, 2006 5:37 AM by Peter Lorent

    loading image to mc stops button functions

    jumanji_:-))
      My mc was created using some code by abeall (thanx ) from another thread (Gee it's useful reading this stuff)

      //create MovieClip to cover area req'd
      var mc1 = _root.createEmptyMovieClip("ent_mc", 2);
      //draw invisible square based on Stage size
      mc1.beginFill(0xFF0000, 0);
      mc1.lineTo(0, 120);
      mc1.lineTo(120, 120);
      mc1.lineTo(120, 0);
      mc1.lineTo(0, 0);
      mc1.endFill();
      // Load ent_us image
      mc1._x = 60;
      mc1._y = 240;
      mc1.loadMovie("media/home/ent_home.jpg"); <<= THIS IS WHERE PROBLEM STARTS
      //assign event handler to move to another frame
      mc1.onRelease = function() {
      new mx.transitions.Tween(ent_mc, "_y", mx.transitions.easing.Elastic.easeOut, 240, 680, 6, true);
      new mx.transitions.Tween(dev_mc, "_y", mx.transitions.easing.Elastic.easeOut, 240, 680, 8, true);
      gotoAndPlay("Info", "film1");
      };

      that works fine with
      mc1.loadMovie("media/home/ent_home.jpg");
      removed, but as soon as I try loading an image, the button functionality ceases to work ... i am missing something but cannot see what...

      any help would be much appreciated