3 Replies Latest reply on Jun 25, 2010 4:39 AM by webqaflash

    simple alpha problem...

    dn0myar06

      i'm not sure why my code is not working...

       

      onClipEvent (load) {
          this._alpha = 0;
      }

       

      onClipEvent (enterFrame) {
          if (txt = 2) {
              _parent.pred2_mc._alpha = 0;
              _parent.pred_mc._alpha = 100;
              _parent.mut_mc._alpha = 0;
              _parent.par_mc._parent = 0;
              _parent.comp_mc._alpha = 0;
              _parent.comens_mc._alpha = 0;
          }
      }

       

      i have a hittest...and when that object is hit it will return a variable for txt...

      txt = 1 //for pred2_mc

      txt = 2 //for pred_mc

      etc...

       

      if the object is hit i would want this mc to have a 100 alpha then the others to set to 0...

      i've used this code before and its working fine..but i'm not sure why its not working this time...