15 Replies Latest reply on Jan 30, 2007 7:35 AM by kglad

    Arrrrrrr! Someone please have a look at this code!

    thebigsteveiep
      Ok! I'm pulling my hair out! I've got this code!

      import mx.transitions.Tween;
      import mx.transitions.easing;
      function turnOn() {
      new Tween(camel_shoe_mc, "_alpha", Regular.easeIn, 0, 100, 1, true);
      }
      camel_bt.onRollOver = turnOn;
      function turnOff() {
      new Tween(camel_shoe_mc, "_alpha", Regular.easeIn, 100, 0, 1, true);
      }
      camel_bt.onRollOut = turnOff;

      function turnOn() {
      new Tween(fudge_shoe_mc, "_alpha", Regular.easeIn, 0, 100, 1, true);
      }
      fudge_bt.onRollOver = turnOn;
      function turnOff() {
      new Tween(fudge_shoe_mc, "_alpha", Regular.easeIn, 100, 0, 1, true);
      }
      fudge_bt.onRollOut = turnOff;

      Now this is what is happning! you rollover the camel_bt the camel_shoe_mc show's up, great! Then you rollover the fudge_bt and the camel_shoe_mc come's up!! Is there a way of having this code in the same layer? Or do I have to make a new layer for each. Or is the code written wrong? I do have about 50 "_mc" so I would like to have the code in one place as well as the images. I hope someone out there can help! If you need to butcher the code by all means do! That's for having a look!!!!