2 Replies Latest reply on May 29, 2007 11:35 AM by Marko20

    Need Help

    Marko20
      function alph() {
      welcome_mc._alpha = 0;
      res_mc._alpha = 0;
      }
      if {
      btn_mc.onRelease;
      welcome_mc._alpha = 100;
      res_mc._alpha = 100;
      }

      This obviously doesn't work haha but you get an idea of what i'm trying to do, I just want the actionscript to keep all the movie clips on the main time line to alpha 0 and once a button ( which is actually a moviecllip btn_mc) is pushed to make the alpha = 100.
        • 1. Need Help
          Angyl Level 1
          I'm no expert at AS myself but I think what you want can be handled fairly easily by

          //set alpha of mc to 0

          mc._alpha = 0;

          //and for the btn

          btn.onRelease = function() {
          mc._alpha += 100;
          }

          You might be better off using the ._visible = true/false; property though.
          • 2. Re: Need Help
            Marko20 Level 1
            Thank you and I would use that if I could but the problem is every 90 frames a different caption pops up so lets say in frame one you have a button and you say on click the captions alpha will be 100% it will just be for that caption, then when it goes o the next caption it will dissapear and you have to clikc the btn again to bring up that caption I need 1 code to say when press make all captions alpha 100%, and when they click the other button make all caps alpha 0 %. It needs an if else type of statement in there, thank you so much for your response though. Heres my code so far, i'm getting there haha.

            welcome_mc._alpha = 0;
            res_mc._alpha = 0;
            info_mc._alpha = 0;
            veh_mc._alpha = 0;
            prot_mc._alpha = 0;
            terms_mc._alpha = 0;
            btn_mc.onRelease = function() {
            welcome_mc._alpha = 100;
            res_mc._alpha = 100;
            info_mc._alpha = 100;
            veh_mc._alpha = 100;
            prot_mc._alpha = 100;
            terms_mc._alpha = 100;
            }
            btnd_mc.onRelease = function() {
            welcome_mc._alpha = 0;
            res_mc._alpha = 0;
            info_mc._alpha = 0;
            veh_mc._alpha = 0;
            prot_mc._alpha = 0;
            terms_mc._alpha = 0;
            }