1 Reply Latest reply on Jan 9, 2007 5:22 AM by DazFaz

    onRollOver, onRollOut

    WScotty309
      I have some movie clips I am using as buttons. They all have the same animation:
      They consist of one layer which blurs a text through 16 frames (white text), and then blurs the same text in a different color(pink text) from frame 17-32. The layer below fades in duplicate text of opposite color(pink under white, white under pink), from frame 1-16, and frame 17-32. There is a stop at keyframe 1 and keyframe 16.

      Here is the actionscript:

      _root.home_btn.onRollOver = function() {
      _root.home.gotoAndPlay(2);
      }
      _root.home_btn.onRollOut = function() {
      _root.home.gotoAndPlay(17);
      }


      _root.models.onRollOver = function() {
      _root.models.gotoAndPlay(2);
      }
      _root.models.onRollOut = function() {
      _root.models.gotoAndPlay(17);
      }


      _root.apply.onRollOver = function() {
      _root.apply.gotoAndPlay(2);
      }
      _root.apply.onRollOut = function() {
      _root.apply.gotoAndPlay(17);
      }


      _root.special.onRollOver = function() {
      _root.special.gotoAndPlay(2);
      }
      _root.special.onRollOut = function() {
      _root.special.gotoAndPlay(17);
      }


      _root.contact.onRollOver = function() {
      _root.contact.gotoAndPlay(2);
      }
      _root.contact.onRollOut = function() {
      _root.contact.gotoAndPlay(17);
      }


      If I roll over, the text blurs from white to reveal pink underneath, if I roll out the text blurs from pink to reveal white. The problem is if I roll over or out too quick, the text stays pink, never plays the roll out animation and doesn't fade back to white.

      Whats the problem?

      Here is a link to test it.

      http://www.south-beachmodels.com/links.swf