3 Replies Latest reply on Nov 8, 2006 9:50 AM by jonnybennett

    Changing the _alpha value of a movie does nothing for me

    dean20007
      Hi

      This is probably a real basic problem but it has had me tearing my hair out.

      I have two movies which I have moved into position programatically and now I wish to alter the _alpha value of them.

      Putting a trace on the fadeMovie function shows that the value is decreasing but I can see no visual affect

      Please help!!!!!

      var words = new Array("Traffic Conversion Rates are falling", "Text2", "Text 3");
      var word = new String("As A Result Sales Are Falling");
      var canvasSize = 550;
      var midPoint = canvasSize/2;
      var screenClearCount = 1;
      var currentAction = 1;
      var TextSpacing = 70;

      attachMovie("TextDesc_1", "Text_mc", 1);
      Text_mc._x = -250;
      Text_mc._y = 100;
      Text_mc.textDesc = words[0];

      attachMovie("TextDesc_1", "texthold_mc", 2);
      texthold_mc._x = 600;
      texthold_mc._y = 150;
      texthold_mc.textDesc = word;

      onEnterFrame = function () {
      if (currentAction == 1) {
      actionOne();
      }
      if (currentAction == 2) {
      fadeMovie(Text_mc)
      fadeMovie(texthold_mc)
      // fadeMovie(texthold_mc)
      }
      };
      function moveMovieClip(movie, moveDirection) {
      if (moveDirection == "Forwards") {
      movie._x += 10;
      } else {
      movie._x -= 10;
      }
      }
      function actionOne() {
      trace("Action one");
      if (Text_mc._x<=((midPoint)-(Text_mc._width/2))) {
      moveMovieClip(Text_mc, "Forwards");
      } else if (texthold_mc._x>=((midPoint)-(texthold_mc._width/2))) {
      moveMovieClip(texthold_mc, "Backwards");
      } else {

      currentAction = 2;
      }
      }
      function fadeMovie(movie) {
      if (movie._alpha>0) {
      movie._alpha -= 10;
      }
      }