2 Replies Latest reply on Nov 21, 2007 6:54 AM by arpatupuropo

    Scripted Button issue

    arpatupuropo
      I have:
      -A button (mcButton)
      -An animated Clip (mcAnimation)
      -And this script:

      mcAnimation._visible = false;

      mcButton.onRollOver = function(){
      mcAnimation._visible = true;
      mcAnimation.play();
      }

      mcButton.onRollOut = function(){
      mcAnimation._visible = false;
      mcAnimation.stop();
      }

      The idea is playing mcAnimation on "mouse over", stoping when mouse goes off. If mouse goes over again, then continue playing in the same frame it stoped last time.

      The problem I have is that I don't know where I have to put mcAnimation clip for this to work...

      If I paste mcAnimation inside the frame "mouseover" of the button symbol, the script doesnt take effect and plays back frame 0 each time mouse goes over.

      Please could someone explain me where I have to put, paste or connect my clip mcAnimation so that the script will work?

      thanks a lot