home *** CD-ROM | disk | FTP | other *** search
/ RenderWare 2003 Press Disc / RenderWare.bin / presentation.swf / scripts / frame_530 / PlaceObject2_477_61 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Encoding:
Text File  |  2003-02-25  |  374 b   |  16 lines

  1. onClipEvent(enterFrame){
  2.    if(frameCounter % speedFactor == 0)
  3.    {
  4.       if(scrolling == "up" && 1 < namcotext.scroll)
  5.       {
  6.          namcotext.scroll--;
  7.       }
  8.       else if(scrolling == "down" && namcotext.scroll < namcotext.maxscroll)
  9.       {
  10.          namcotext.scroll = namcotext.scroll + 1;
  11.       }
  12.       frameCounter = 0;
  13.    }
  14.    frameCounter++;
  15. }
  16.