1 Reply Latest reply on Jul 25, 2006 1:23 AM by strife.dk

    Animation slow in IE, FF normal

    strife.dk Level 1
      On the following site I have a dynamic menu and mp3player, which animates in and out.
      In FF everthing is fine, but in IE the animation is very slow.
      What is causing the problem, and how can I fix it?

      http://mini2.mcbtest.dk

      Nevermind the design or content, it's just a template test.

      Code:
      // Function for when button is rolled over
      menuContainer .onRollOver = function () {
      var menuNumber:String = this._name;
      function enlarge(mClip:MovieClip) {
      if(mClip._x > 0){
      mClip._x = mClip._x - _root.moveSpeed;
      } else {
      mClip._x = 0;
      clearInterval(nEnlargeInterval);
      }
      };
      var nEnlargeInterval:Number = setInterval(enlarge, 1, menuContainer["highLight" + menuNumber]);


      with (menuContainer["menuItem" + this._name]) {
      tfMenuStyle.color = _root.menuOverColor;
      setTextFormat(tfMenuStyle);
      }
      }