home *** CD-ROM | disk | FTP | other *** search
/ Minerals of the World 1997 / minerals_of_the_world_v2.iso / tb50run.z / TB50ANM.SBK (.txt) < prev    next >
Asymetrix ToolBook File  |  1996-06-13  |  65KB  |  688 lines

  1. ASYMI_SySysGridSpacing
  2. ASYMI_SysGrid
  3. MS Sans Serif
  4. info_LastSavedBy
  5. info_LastSaved
  6. Mike Florence
  7. FALSE
  8. MS Sans Serif
  9. Arial
  10. 8/11/95 11:38:17 AM
  11. ASYMI_SysGridSnap
  12. Mike Florence
  13. 3/5/96 11:55:16 AM
  14. 9411011714178865372342
  15. ASYM_TpID
  16. enterpage
  17. buttonclick
  18. notifyBefore 
  19. buttonclick
  20. Script
  21. ToolBook II Path Animation SysBookion SysBookkon SysBook
  22. Copyright 
  23.  1995 Asymetrix Corporation
  24. enterpage
  25. @F    ,    ,    K
  26. *ClassTbl*
  27. *ClassEntry*
  28. *PTABLE*
  29. *WINDOWSEG*
  30. Viewer
  31. *ICONRESTAB*
  32. *ICONRESSEG*
  33. *ICONRES*
  34. Background
  35. *OBJTABLE*
  36. *IDTABLE*
  37. *NAMETAB*
  38. Rectangle
  39. Ellipse
  40. RoundedRectangle
  41. Polygon
  42. IrregularPolygon
  43. AngledLine
  44. Curve
  45. Field
  46. RecordField
  47. ComboBox
  48. Button
  49. PaintObject
  50. Picture
  51. Hotword
  52. *RHOTWORD*
  53. Group
  54. Stage
  55. *TbxBase*
  56. "    BJTABLE*
  57.     ,    eld
  58. bxBase*
  59. "    ,    bxBase*
  60. --    SYSTEM message handlers related 
  61. animations
  62. linkSysbook
  63. setUpDlls
  64. -- traps 
  65. moved 
  66. repositions 
  67. x path 
  68. -- user has 
  69. xselected 
  70. coordinate 
  71. s_anim_idleAnimations
  72.     LOCAL newPos, settingsTable[][]
  73. "anim_animationSettings" 
  74.         ss = 
  75. = FALSE
  76. e<> "anim_edit"
  77. dimensions(
  78. ) <> 
  79. anim_startPosition(1) 
  80. dx = 
  81. dy = 
  82. i][13] 
  83. "Author" 
  84. anim_StartPosition(i) 
  85. + dx,
  86. 8(i) 
  87. --    These 
  88. are helper functions 
  89. startup            --
  90. LOGICAL sysSuspendState
  91. use instead 
  92. getTickCount()
  93.     -- IT's more accurate 
  94. calculating durations
  95.     linkDLL "mmSystem.dll"
  96.         DWORD a_timeGetTime=
  97. scripts 
  98. playing 
  99. playAnimation 
  100. , notifyObject, waitTillDone
  101. ns,s_anim_animationCache[][]
  102.  = NULL
  103. ) = 1
  104. only 
  105. which actually have 
  106.  = objectAnimation(
  107. ) = 0
  108.     theTarget = 
  109. ns) = 0
  110. startAnimTimer
  111. IT's already being animated on 
  112. Fstop 
  113. restart
  114.             mmYield
  115. IT <> 
  116. IT = 
  117. he[i][3] <> 
  118. doneAnimatingNotify "Reset 
  119. he[i][12]
  120.         animCount = 
  121. ns = 
  122.             -- i 
  123. igger than 
  124.             -- because we 
  125. going 
  126. ns = 
  127. he[i][1] = 
  128. ()            --StartTime
  129. he[i][2] = 0
  130. --CurrentStep
  131. he[i][3] = 
  132. he[i][j] = 
  133. he[i][12] = 
  134. starting point 
  135.     lockScreen 
  136. e= TRUE
  137. he[i][6]
  138. he[i][4]
  139.         -- finish 
  140. 4continuing
  141. IT <> 
  142. playStep j 
  143. he[j][12]
  144. yieldApp()
  145. (sysMediaBreakKey) = down 
  146. IT <> 
  147. stopAnimation "aborted 
  148. he[i][12]
  149. ns = 
  150.         -- potential infinite loop (
  151. reps=forever) unless 
  152. presses Escape key 
  153. ns) = 0
  154. stopAnimTimer
  155. -- stops 
  156.  "During Idle" 
  157. Hremoving IT 
  158. status
  159. he[][]
  160. IT > 1
  161. -    ns)
  162. IT <> 0 
  163. Q    ns)
  164. IT <> 0 
  165.             IT = 0
  166. IT <> 0
  167.     ns = 
  168. he[IT][1] = 0
  169. he[IT][3]    --
  170. he[IT][12]
  171. there 
  172. animating 
  173. ns <> 
  174. entries 
  175. i > IT 
  176. IT = 0
  177. -- lets users specify a 
  178. jumpToStep whichStep, whichAnimation
  179. $ = 1
  180. ) > 0
  181.  < 0 
  182. )*4-3 
  183. fake out 
  184. /sized 
  185. tempSuspendMessages = sysSuspendMessages
  186. >= IT
  187. updateCel 
  188. [11],
  189.             anim_CurrentStep(
  190. a percent 
  191. full 
  192. length 
  193. jumpToPercent percentComplete, 
  194. ) > 0
  195.  < 0 
  196. +1)*4-3 
  197. +1)*4 
  198.             -- 
  199. >= IT
  200.             -- 
  201. [11],
  202. -- plays 
  203. -- called 
  204. "Without Yielding" 
  205.         currentAnim
  206. he[][]
  207. theTickCount,
  208. stepNumber,celNumber
  209. Q][5]; -- showing 
  210. frames
  211. z][2] + 1
  212.         -- 
  213.     IT should be on
  214.         -- 
  215. what 
  216. been covered 
  217. Hnow?
  218. %complete = [elapsed 
  219. Isince 
  220. mSec]
  221. ][1])/
  222. ][8]/1000
  223. ][9])
  224.  screen so 
  225.  happen simultaneously
  226.     ls = 
  227.  >= (
  228. ][9] * 
  229. ][7]) 
  230. ][7] <> 0
  231.             -- IT's 
  232. past 
  233.             -- 
  234. ][9] * 4 + 1
  235. IT + 3 
  236. ][10]
  237. >= IT
  238.             -- 
  239. fbuilt-
  240. ][11],
  241. ][9],
  242.             -- 
  243. queue 
  244. IT's on its 
  245. successful" 
  246.             -- 
  247. specified
  248. ][9]) -- 
  249. (IT+1)*4-3 
  250. (IT+1)*4 
  251. ][10]
  252. >= IT
  253.             -- 
  254. ][11],
  255.             -- 
  256.  currentStep
  257. ][2] = 
  258. e= ls
  259. -- hides 
  260. shows 
  261. , StepsPerCel, 
  262. previousstepNumber
  263. CelNumberToShow,CelNumberToHide,CelCount
  264. < so that 
  265.     -- (
  266. $    0 corresponds 
  267.     -- calculate 
  268. fregards 
  269.  -- so 
  270.  always starts 
  271. ) -- total Cels 
  272.  = 0 
  273.         -- i.e. n 
  274. kn = 0 
  275. Mwe want 
  276.         -- 
  277. shown
  278.  -- so 
  279.  = 0 
  280.             -- i.e. n 
  281. kn = 0 
  282.         -- assume 
  283.  = 1 
  284. ,whatObject
  285. so no 
  286. error 
  287. generated 
  288. sent 
  289. }without 
  290. -- sends 
  291. -- can be 
  292. fa list 
  293. restoreAnimation objectList, animationList
  294. g) > 0
  295. currentObject
  296. closeAllAnimations
  297. he[][]
  298. isOpen 
  299. he[i][12]
  300. he[i][12]
  301. he[i][12]
  302. default
  303. --    these 
  304. utilities getting 
  305.  a single 
  306.  rowNum
  307.     ss = 
  308. S = 1
  309. l][1] <> 
  310. [i] = 
  311. [14] = 
  312.     ss = 
  313. [14]][i] = 
  314. 1][i] = 
  315. working 
  316. outside 
  317. editor interface
  318. animationCacheEntry 
  319. IT > 1
  320. IT <> 0 
  321. IT <> 0 
  322.             IT = 0
  323. -- Run 
  324.  Properties
  325. anim_Offset
  326. he[][]
  327. IT = 0
  328. he[IT][6]
  329. value
  330. he[][]
  331. IT <> 0 
  332. isType(POINT, 
  333. he[IT][6] = 
  334. r= -1
  335. he[][]
  336. IT = 0
  337. he[IT][2]
  338. he[][]
  339. IT <> 0 
  340. he[IT][2] = 
  341. -- Persistent 
  342. anim_NumRepetitions
  343. he[][]
  344. IT = 0
  345. ) > 0
  346. he[IT][7]
  347. he[][]
  348. IT <> 0 
  349. he[IT][7] = 
  350. H  = 
  351. _ ) > 0
  352. j [7] = 
  353. anim_CelAnimation
  354. he[][]
  355. IT = 0
  356.  ) > 0
  357. he[IT][4]
  358. he[][]
  359. IT <> 0 
  360. he[IT][4] = 
  361. !) > 0
  362. ![4] = 
  363. anim_ShowAllSteps 
  364. he[][]
  365. IT = 0
  366. "" = 
  367. :") > 0
  368. H"[5]
  369. he[IT][5]
  370. he[][]
  371. IT <> 0 
  372. he[IT][5] = 
  373. ") > 0
  374. #[5] = 
  375. anim_Duration 
  376. W he[][]
  377. IT = 0
  378. n# = 
  379. #) > 0
  380.  he[IT][8]
  381.  he[][]
  382. IT <> 0 
  383. )!he[IT][8] = 
  384. -$ = 
  385. D$) > 0
  386. O$[8] = 
  387. anim_NumSteps 
  388. !he[][]
  389. IT = 0
  390. $) > 0
  391. "he[IT][9]
  392. 8"he[][]
  393. IT <> 0 
  394. u"he[IT][9] = 
  395. y% = 
  396. %) > 0
  397. %[9] = 
  398. anim_StepsPerCell 
  399. "he[][]
  400. IT = 0
  401. "&) > 0
  402. 0&[11]
  403. e#he[IT][11]
  404. #he[][]
  405. IT <> 0 
  406. D$", 
  407. #he[IT][11] = 
  408. &) > 0
  409. &[11] = 
  410. -' = 
  411. D') > 0
  412. Q'[6]
  413. ') > 0
  414. '[6] = 
  415. -- Read Only (persistent)
  416. anim_StartSize 
  417. &() > 0
  418. 3([15]
  419. anim_EndSize 
  420. l( = 
  421. () > 0
  422. ([16]
  423. anim_StartTime
  424. %he[][]
  425. IT = 0
  426. &he[IT][1]
  427. anim_elapsedTime
  428. A&he[][]
  429. IT = 0
  430. &() - 
  431. w&he[IT][1]
  432. anim_currentTime
  433. % stuff
  434. updateAnimations
  435. *ns, 
  436. &he[][]
  437. 4*ns)
  438. whatAnim = 
  439. O'he[i][12]
  440. *ns) > 0
  441. 'he[i][12]
  442. 'he[i][12]
  443. "+ns) = 0
  444. animTimer whatHandle, whatMsg, wparam
  445. e,animTimerID, 
  446. "USER"
  447.         INT     anim_setTimer =        SetTimer        (
  448. 0killTimer =    KillTimer        (
  449. = 4843
  450. `(sysClientHandle,
  451. ,20,0)         
  452. ("Could 
  453. xsetup 
  454. 7-, no 
  455. ?- will 
  456.     translateWindowMessage 
  457.         0x001F     
  458.         0x0113     
  459. anim_killTimer(
  460.     untranslateWindowMessage 0
  461. setUpDlls
  462. linkSysbook
  463. Author
  464. s_anim_idleAnimations
  465. Canim_StartPosition
  466. anim_edit
  467. anim_animationSettings
  468. Canim_StartPosition
  469. Canim_startPosition
  470. anim_animationSettings
  471. moved
  472. mmSystem.dll
  473. timeGetTime
  474. a_timeGetTime
  475. setUpDlls
  476. ,&H.&
  477. ,&H.&
  478. 1+V!8
  479. ,&H.&
  480. ,&H.&
  481. s_anim_animationCache
  482. }gyieldApp
  483. ZstopAnimation
  484. s_anim_idleAnimations
  485. }playStep
  486. objectAnimation
  487. Reset by play command
  488. YdoneAnimatingNotify
  489. theTarget
  490. 9a_timeGetTime
  491. _stopAnimTimer
  492. startAnimTimer
  493. aborted by the user
  494. playAnimation
  495. 1,    "V
  496. s_anim_animationCache
  497. _stopAnimTimer
  498. s_anim_idleAnimations
  499. YdoneAnimatingNotify
  500. notifyObj
  501. stopAnimation
  502. 1+V!8
  503. Author
  504. anim_CurrentStep
  505. objectAnimation
  506. updateCel
  507. jumpToStep
  508. whichStep
  509. Author
  510. anim_CurrentStep
  511. objectAnimation
  512. updateCel
  513. jumpToPercent
  514. s_anim_animationCache
  515. successful
  516. ZstopAnimation
  517. 9a_timeGetTime
  518. updateCel
  519. playStep
  520. 1+V!!
  521. 1+V!8
  522. updateCel
  523. doneAnimatingNotify
  524. currentAnim
  525. jumpToStep
  526. currentObject
  527. restoreAnimation
  528. .'+    +F
  529. ,&H.&
  530. s_anim_animationCache
  531. _stopAnimTimer
  532. s_anim_idleAnimations
  533. ZstopAnimation
  534. restoreAnimation
  535. aborted by the user
  536. default
  537. closeAllAnimations
  538. anim_animationSettings
  539. objectAnimation
  540. anim_animationSettings
  541. anim_animationSettings
  542. objectAnimation
  543. 1,    "V
  544. s_anim_idleAnimations
  545. animationCacheEntry
  546. s_anim_animationCache
  547. ULanimationCacheEntry
  548. anim_Offset
  549. s_anim_animationCache
  550. ULanimationCacheEntry
  551. anim_Offset
  552. s_anim_animationCache
  553. ULanimationCacheEntry
  554. anim_CurrentStep
  555. s_anim_animationCache
  556. ULanimationCacheEntry
  557. anim_CurrentStep
  558. s_anim_animationCache
  559. objectAnimation
  560. ULanimationCacheEntry
  561. whichAnimation
  562. anim_NumRepetitions
  563. s_anim_animationCache
  564. objectAnimation
  565. ULanimationCacheEntry
  566. whichAnimation
  567. objectAnimation
  568. anim_NumRepetitions
  569. s_anim_animationCache
  570. objectAnimation
  571. ULanimationCacheEntry
  572. whichAnimation
  573. anim_CelAnimation
  574. s_anim_animationCache
  575. objectAnimation
  576. ULanimationCacheEntry
  577. whichAnimation
  578. objectAnimation
  579. anim_CelAnimation
  580. s_anim_animationCache
  581. objectAnimation
  582. ULanimationCacheEntry
  583. anim_ShowAllSteps
  584. s_anim_animationCache
  585. objectAnimation
  586. ULanimationCacheEntry
  587. objectAnimation
  588. anim_ShowAllSteps
  589. s_anim_animationCache
  590. objectAnimation
  591. ULanimationCacheEntry
  592. anim_Duration
  593. s_anim_animationCache
  594. objectAnimation
  595. ULanimationCacheEntry
  596. objectAnimation
  597. anim_Duration
  598. s_anim_animationCache
  599. objectAnimation
  600. ULanimationCacheEntry
  601. anim_NumSteps
  602. s_anim_animationCache
  603. objectAnimation
  604. ULanimationCacheEntry
  605. objectAnimation
  606. anim_NumSteps
  607. s_anim_animationCache
  608. objectAnimation
  609. ULanimationCacheEntry
  610. anim_StepsPerCell
  611. s_anim_animationCache
  612. objectAnimation
  613. ULanimationCacheEntry
  614. objectAnimation
  615. anim_StepsPerCell
  616. objectAnimation
  617. anim_StartPosition
  618. objectAnimation
  619. objectAnimation
  620. anim_StartPosition
  621. objectAnimation
  622. anim_StartSize
  623. objectAnimation
  624. anim_EndSize
  625. s_anim_animationCache
  626. ULanimationCacheEntry
  627. anim_StartTime
  628. s_anim_animationCache
  629. ULanimationCacheEntry
  630. 9a_timeGetTime
  631. anim_elapsedTime
  632. 9a_timeGetTime
  633. anim_currentTime
  634. ,&H.&
  635. ,&H.&
  636. s_anim_animationCache
  637. ZstopAnimation
  638. s_anim_idleAnimations
  639. whatAnim
  640. }playStep
  641. _stopAnimTimer
  642. aborted by the user
  643. updateAnimations
  644. updateAnimations
  645. animTimerID
  646. animTimer
  647. SetTimer
  648. anim_setTimer
  649. ,'ToN
  650. KillTimer
  651. anim_killTimer
  652. zIanim_setTimer
  653. Could not setup animation, no animations will play.
  654. animTimer
  655. animTimer
  656. closeAllAnimations
  657. animTimerID
  658. startAnimTimer
  659. Rlanim_killTimer
  660. animTimer
  661. animTimerID
  662. stopAnimTimer
  663. L$closeAllAnimations
  664. author
  665. FixupWeights 
  666. Boolean
  667. propType
  668. Automatic
  669. 3dField
  670. tbk_wid_type
  671. ASYM_WID_MinScore
  672. RoundToMin
  673. ASYM_ExpandString
  674. Report the lowest score: %1
  675. ASYM_GetString
  676. 7wASYM_Container
  677. propValue
  678. propValue
  679. propValue
  680. propValue
  681. leaveField
  682. propValue 
  683. xisType(real,
  684. B"RoundToMin" 
  685. ASYM_Container(
  686. ")= \
  687. ASYM_ExpandString(ASYM_GetString(\
  688.