home *** CD-ROM | disk | FTP | other *** search
- '***********************************************************************
- ' Roller.rlz
- '
- ' Animation Demo
- '
- ' Copyright ⌐ 1991-1992 Computer Associates International, Inc.
- ' All rights reserved.
- '
- '***********************************************************************
-
- RUN "Animate"
- RUN "StdSys"
-
- AddSys(_LoadDir, QSys(_ProgDir) + "bitmaps")
-
- 'Create a form with an animation window
- FormNew(FormQUnique; "The Rolling Ball", _Close + _Title + _Minimize)
- FormControl(_Size; _Center, _Center, 70 pct, 200 pxl)
- FormSetObject(20, _Animate, "", _Center, _Center, 100 pct, 100 pct)
- FormControl(_Show)
-
- 'Prepare the animation
- AnimateSelect(20)
- AnimateCells("Roll#.BMP", 1, 5)
- CellOrder = {1, 2, 3, 4, 5, 4, 3, 2}
- FOR i = 0 to 35
- cell = CellOrder[i Mod 8 + 1]
- AnimateFrame(cell, i*12 - 70, 10, 200)
- NEXT i
-
- 'Start the ball rolling
- AnimateControl(_Start)
-
-
-