4 Replies Latest reply on Mar 4, 2007 4:03 AM by TWDarkflame

    Help with smooth scrolling (masked movie clip)

    TWDarkflame
      Ok, I really need help here, and I'll be very grateful for help before Monday.

      Someone has made a movie with a different set of text on each frame, the text goes out of the viewable area.
      I have been asked to make these frames appear in a pop-up on another flash and be scrollable.

      i thought this would be easy...just cut and paste them into a movie clip, then using a mask to hide the rest of the text.

      However, it is going painstakingly slow.
      Seems to be a performance issue, but it might be my code.

      Any help with the code, or optimisation elsewhere would be helpfully.

      Heres a simplified version of the flash;
      www.darkflame.co.uk/flashwork/Flash_popuptest.fla

      Code for the scrolling;

      _global.MoveUp = function(text) {
      _root.ITproduct.IT_productlist._y = _root.ITproduct.IT_productlist._y+6;
      updateAfterEvent();
      //trace('press');
      }

      Called and stopped by;

      on (press){
      //this._parent.IT_productlist._y = this._parent.IT_productlist._y +10;
      //_global.scrollon = "yes";
      clearInterval(IntervalID);
      IntervalID = setInterval(MoveUp,100);
      updateAfterEvent()
      //updateAfterEvent();
      //MoveUp();
      //scroll on
      }

      on (release) {
      //this._parent.IT_productlist._y = this._parent.IT_productlist._y +10;
      clearInterval(IntervalID);
      updateAfterEvent();
      //scroll off
      }


      which is linked to a button.


      I dont know if this is a actionscript problem, or the way the page is made, or both.
      Any help would be appreciated.

      Thanks in advance,
      Thomas Wrobel