home *** CD-ROM | disk | FTP | other *** search
/ Asymetrix Demo / Asymetrix.iso / animate.tbk (.txt) next >
Encoding:
Asymetrix ToolBook File  |  1995-04-05  |  531.2 KB  |  7,258 lines

  1. 7    ?    g@
  2. 6>G_9
  3. arrow6
  4. arrow1
  5. arrow2
  6. arrow3
  7. arrow4
  8. arrow5
  9. wrwww
  10. w"'ww
  11. r'"ww
  12. "wr'w
  13. 'ww"w
  14. wwwr'
  15. wwww"
  16. wwwwr
  17. wxwww
  18. wwwwx
  19. wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww
  20. wwwwwwwwwwwwwwwwwww
  21. wwwwwwwwwwww
  22. wwwwwwwwwwwww
  23. wwwwwwwwwwwww
  24. wwwwpw
  25. pwwwxxwwwwx
  26. wwwwpwwwwww
  27. wwwww
  28. xxwww
  29. wwwwpp
  30. xxwwxx
  31. wwwwwxx
  32. xxwwwwwxx
  33. wwwww
  34. wxxxxxxwwwxx
  35. wwwwx
  36. xxwwwwxxxxxww
  37. wxxxxxwwwxxxx
  38. wwwww
  39. xwwwwxxxxxww
  40. wwwww
  41. wwxxwxwwwwxx
  42. wwwwx
  43. xwwww
  44. wwwwx
  45. wwwwxxwwwxx
  46. wwwww
  47. wwwwwwp
  48. wwwwwp
  49. wwwwwwx
  50. wwwwp
  51. wwwwwwwwx
  52. wwwwww
  53. wwwwwwwwwx
  54. wwwwww
  55. wwwwwwww
  56. wwwwwwwwwwwww
  57. wwwwwwww
  58. wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww
  59. wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww
  60. wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww
  61. wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww
  62. wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww
  63. wwwwwwwwwwwwwwwwwww
  64. wwwwwwwwwwww
  65. wwwwwwwwwwwww
  66. wwwwwwwwwwwww
  67. wwwwxxwwwwwwxxwwwwx
  68. wwwwwwwwwww
  69. wwwww
  70. xxxwww
  71. wwwwxxw
  72. wwwwxxx
  73. wwwwx
  74. xwwwwx
  75. wwxpx
  76. xxwwwww
  77. wwxxxp
  78. xxxwww
  79. wwwxxw
  80. xxwwww
  81. wwwww
  82. wwwwww
  83. wwwww
  84. wwwww
  85. wwwwwww
  86. wwwwwp
  87. wwwwwwwp
  88. wwwww
  89. wwwwwwx
  90. wwwwwp
  91. wwwwp
  92. wwwwwwwwx
  93. wwwwww
  94. wwwwwwwwwx
  95. wwwwww
  96. wwwwwwww
  97. wwwwwwwwwwwww
  98. wwwwwwww
  99. wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww
  100. wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww
  101. wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww
  102. wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww
  103. """""""""""""
  104. **********
  105. **********
  106. **********
  107. **********
  108. """"""""""""""
  109. **********"
  110. ***********"
  111. ************ 
  112. ***********
  113. """"""""""""""
  114. ********"
  115. *********"
  116. ********** 
  117. *********
  118. """""""""""""
  119. ******"
  120. *******"
  121. ******** 
  122. *******
  123. """""""""""""
  124. *****
  125. ****"
  126. *****
  127. *****"
  128. *****
  129. ****** 
  130. *****
  131. *****
  132. """""""""""""
  133. *********
  134. *********
  135. *********
  136. *********
  137. xxxxp
  138. wwwwwwwwwwwwwwwwwwwwwwwwwwwwww
  139. wwwwwwwwwwwwwwwwwwwwwwwwwwwwww
  140. wwwwwwwwwwwwwwwwwwwwwwwwwwwwww
  141. wwwwwx
  142. wwwwwwwwwwwww
  143. wwwwwwwxxxx
  144. wwwwwwwwwww
  145. wwwwwwwwwwx
  146. wwwwwwwwwww
  147. wwwwwwwwww
  148. wwwwwwwwwwW
  149. wwwwwwwwwp
  150. wwwwwwwwww
  151. twwwwwwwww
  152. wwwwwwwww
  153. )wwwwwwwwx
  154. wwwwwwwww
  155. wwwwwwwwpx
  156. wwwwwwwwwf
  157. wwwwwwww
  158. pwwwwwwwww
  159. @wwwwwwww
  160. wwwwwwww
  161. wwwwwwww
  162. wwwwwwww
  163. Vwwwwwwww
  164. wwwwwwww
  165. wwwwwwww
  166. pwwwp
  167. wwwwwwww
  168. Gwwwwwwww
  169. wwwwwwwwEUwwwwwwww
  170. wwwpww
  171. wwwwwwww
  172. wwwwwwww
  173. wwwwwwww
  174. xwwwwwwww
  175. wwwwwwww
  176. wwwwwwww
  177. wxxxx
  178. wwwwwwwwF
  179. wwwwwwwwp
  180. wwwwwwww
  181. &wwwwwwwwp
  182. wxxpwwwwwwwww
  183. &wwwwwwwwx
  184. wwwwwwwww
  185. &wwwwwwwww
  186. wwwwwwwww
  187. wwwwwwwwwp
  188. wwwwwwwwww
  189. wwwwwwwwww
  190. wwwwwwwwww
  191. Fwwwwwwwwwwx
  192. wwwwwwwwwww
  193. Xwwwwwwwwwww
  194. wwwwwwwwwww
  195. wwwwwwwwwwww
  196. wwwwwwwwwwwwww
  197. wwwwwwwwwwwwwwwwwwwwwwwwwwwwww
  198. wwwwwwwwwwwwwwwwwwwwwwwwwwwwww
  199. wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwx
  200. Copy    Ctrl+&File
  201. &Open...    Ctrl+O
  202. &Save    Ctrl+S
  203. Save &As...
  204. saveas
  205. &Import...
  206. import
  207. &Export...
  208. export
  209. Print Set&up...
  210. printsetup
  211. &Print Pages...    Ctrl+P
  212. printpages
  213. Prin&t Report...
  214. printreport
  215. Send &Mail...
  216. sendmail
  217. &Run...
  218. E&xit    Alt+F4
  219. &Edit
  220. &Size to Page    F11
  221. sizetopage
  222. Aut&hor    F3
  223. author
  224. &Page
  225. &Next    Alt+Right
  226. &Previous    Alt+Left
  227. previous
  228. &Help
  229. &Contents    F1
  230. contents
  231. &About Animate...
  232. Displays information about this application.
  233. previous
  234. outline
  235. topics
  236. toolbar
  237. topicsBackground
  238. enterpage
  239. myPages
  240. topics
  241. topicList
  242. toolbar
  243. heading
  244. chapterLabel
  245. label
  246. OBmyPages
  247. initPage
  248. topics
  249. updateChecks
  250. OBmyPages
  251. updateCheckMarks
  252. .&,    "
  253. Cancel
  254. Warning: this operation cannot be reversed using Undo.
  255. chaptersBackground
  256. curBK
  257. rebuildStructure
  258. You cannot delete the last page of this background.
  259. topicsBackground
  260. clear
  261. .&,    "
  262. Cancel
  263. Warning: this operation cannot be reversed using Undo.
  264. chaptersBackground
  265. curBK
  266. rebuildStructure
  267. You cannot delete the last page of this background.
  268. topicsBackground
  269. newChapter
  270. newPage
  271. ainitPage
  272. ainitPage
  273. previous
  274. curCheck
  275. Cvisited
  276. pageID
  277. curField
  278. curPageID
  279. label
  280. topicList
  281. checkRef
  282. fieldRef
  283. Cvisited
  284. curPageId
  285. pageID
  286. curTopic
  287. updateChecks
  288. false
  289. goPage
  290. Zselected
  291. pageid
  292. ainitPage
  293. buttondown
  294. [darkBlue
  295. selected
  296. highlight
  297. highlightColor
  298. shadow
  299. shadowColor
  300. faceColor
  301. highlight
  302. highlightColor
  303. shadow
  304. shadowColor
  305. faceColor
  306. ,%H.%
  307. ,%H.%
  308. spupp
  309. highlight
  310. shadow
  311. sized
  312. chaptersBackground
  313. Cvisited
  314. outline
  315. topics
  316. previous
  317. toolbar
  318. toolbarRef
  319. enterpage
  320. topicLabel
  321. toolbar
  322. heading
  323. mychapterID
  324. label
  325. initPage
  326. backpage
  327. ainitPage
  328. myChapterID
  329. topics
  330. yunewTopic
  331. newPage
  332. chaptersBackground
  333. author
  334. nextPageParent
  335. ainitPage
  336. ainitPage
  337. previous
  338. .&,    "
  339. Cancel
  340. Warning: this operation cannot be reversed using Undo.
  341. chaptersBackground
  342. curBK
  343. rebuildStructure
  344. You cannot delete the last page of this background.
  345. topicsBackground
  346. clear
  347. .&,    "
  348. Cancel
  349. Warning: this operation cannot be reversed using Undo.
  350. chaptersBackground
  351. curBK
  352. rebuildStructure
  353. You cannot delete the last page of this background.
  354. topicsBackground
  355. highlight
  356. highlightColor
  357. shadow
  358. shadowColor
  359. faceColor
  360. highlight
  361. highlightColor
  362. shadow
  363. shadowColor
  364. faceColor
  365. ,%H.%
  366. ,%H.%
  367. spupp
  368. highlight
  369. shadow
  370. sized
  371. tableOfContents
  372. toolbar
  373. background
  374. previous
  375. topics
  376. tableOfContents
  377. toolbar
  378. Table of contents
  379. heading
  380. enterBackground
  381. tableOfContents
  382. toolbar
  383. leaveBackground
  384. You cannot delete this page.
  385. clear
  386. You cannot cut this page.
  387. This template does not support adding new pages to the table of contents.
  388. newPage
  389. ainitPage
  390. initPage
  391. highlight
  392. highlightColor
  393. shadow
  394. shadowColor
  395. faceColor
  396. highlight
  397. highlightColor
  398. shadow
  399. shadowColor
  400. faceColor
  401. ,%H.%
  402. ,%H.%
  403. spupp
  404. highlight
  405. shadow
  406. sized
  407. pageID
  408. curField
  409. voutline
  410. false
  411. goPage
  412. Zselected
  413. pageID
  414. ainitPage
  415. buttondown
  416. [darkBlue
  417. selected
  418. checkref
  419. false
  420. Cvisited
  421. subPages
  422. curID
  423. pageID
  424. pageID
  425. OBmypages
  426. value
  427. updateChecks
  428. pageID
  429. pageID
  430. label
  431. updateLabels
  432. outlineField
  433. outline
  434. LPscrollToSelectedTextline
  435. updateHeader
  436. initPage
  437. ,%H.%
  438. extractID
  439. curTextLine
  440. false
  441. outline
  442. curID
  443. voutline
  444. rebuildStructure
  445. curPage
  446. reorder
  447. extractName
  448. extractID
  449. 1,    "j
  450. <Untitled>
  451. insertName
  452. .&,    "
  453. extractNumber
  454. Cancel
  455. extractID
  456. chaptersBackground
  457. curBK
  458. chapterOrPage
  459. tlineNum
  460. ainitPage
  461. curID
  462. Cannot delete the last page of background
  463. startline
  464. rebuildStructure
  465. chapter
  466. Delete selected page(s)?
  467. outline
  468. topicsBackground
  469. buttonclick
  470. s_cancel
  471. false
  472. keychar
  473. curLine
  474. bkRef
  475. chaptersBackground
  476. outline
  477. label
  478. insertName
  479. pageID
  480. tableofcontents
  481. chapter
  482. x5chapter
  483. lineNum
  484. topicsBackground
  485. BlineNum
  486. ainitPage
  487. updateLabels
  488. updateText
  489. s_enterText
  490. updateButtons
  491. enterField
  492. s_cancel
  493. s_enterText
  494. updateButtons
  495. updateText
  496. leaveField
  497. 1,    "j
  498. ,%H.%
  499. count
  500. OZextractNumber
  501. renumberText
  502. keychar
  503. keyFirst
  504. keyLast
  505. keyup
  506. .&+    +
  507. txtline
  508. s_cancel
  509. extractID
  510. extractName
  511. y5chapter
  512. BlineNum
  513. updateButtons
  514. lineNum
  515. OZextractNumber
  516. pageId
  517. header
  518. updateHeader
  519. OZextractNumber
  520. maxChapter
  521. extractID
  522. gotopage
  523. s_navFromPalette
  524. ainitpage
  525. buttondoubleclick
  526. V,    #>
  527. mouseLoc
  528. 7renumberText
  529. marker
  530. count
  531. headingOrTopic
  532. lineHeight
  533. targetLine
  534. lineList
  535. /?reorder
  536. tlines
  537. topic
  538. llineYloc
  539. heading
  540. updateHeader
  541. tline
  542. IvertLoc
  543. buttondown
  544. lineHeight
  545. scrollToSelectedTextLine
  546. lineYloc
  547. marker
  548. lineHeight
  549. adjustsize
  550. highlight
  551. highlightColor
  552. shadow
  553. shadowColor
  554. faceColor
  555. highlight
  556. highlightColor
  557. shadow
  558. shadowColor
  559. faceColor
  560. ,%H.%
  561. ,%H.%
  562. spupp
  563. highlight
  564. shadow
  565. sized
  566. SM_SWAPBUTTON
  567. descr
  568. client
  569. xLine
  570. yLine
  571. 5nendpoint
  572. yGroup
  573. getsystemmetrics
  574. yfield
  575. thisWin
  576. getsystemmetrics
  577. xGroup
  578. xfield
  579. descrField
  580. buttonDown
  581. xposc
  582. select
  583. end buttonClick
  584. cloud
  585. to handle buttonClick
  586. balloon
  587. yposb
  588. yposc
  589. balloonpath
  590. cloudpath
  591. xposb
  592. move selection to
  593. animate
  594. .animate
  595. buttonup
  596. buttonClick
  597. highlight
  598. highlightColor
  599. shadow
  600. shadowColor
  601. faceColor
  602. highlight
  603. highlightColor
  604. shadow
  605. shadowColor
  606. faceColor
  607. ,%H.%
  608. ,%H.%
  609. spupp
  610. highlight
  611. shadow
  612. sized
  613. highlight
  614. highlightColor
  615. shadow
  616. shadowColor
  617. faceColor
  618. highlight
  619. highlightColor
  620. shadow
  621. shadowColor
  622. faceColor
  623. ,%H.%
  624. ,%H.%
  625. spupp
  626. highlight
  627. shadow
  628. sized
  629. .animate
  630. buttonup
  631. holeLoc
  632. randomBallLocation
  633. animate
  634. green
  635. ballRef
  636. gbounds
  637. gsize
  638. bSize
  639. greenRef
  640. randomBallLocation
  641. .&,    7
  642. maxBounce
  643. myInfo
  644. ballBounds
  645. myInfo
  646. newPosition
  647. frameBnds
  648. {:myAngle
  649. coords
  650. minute
  651. sweep
  652. .&,    "
  653. sweep
  654. maxDisplay
  655. timeGetTime
  656. curTime
  657. z:myAngle
  658. counter
  659. timeGetTime
  660. sweep
  661. timeGetTime
  662. counter
  663. mmsystem
  664. enterpage
  665. obBounds
  666. timeGetTime
  667. timegettime
  668. timeGetTime
  669. mmsystem
  670. accelerate
  671. ,%H.%
  672. safeHeight
  673. ground
  674. thought
  675. accelerate
  676. <KinitAnimation
  677. animate
  678. ,%H.%
  679. thought
  680. b;origloc
  681. initanimation
  682. lastTime
  683. newTime
  684. timeGetTime
  685. lastFrame
  686. newFrame
  687. delay
  688. timeGetTime
  689. timeGetTime
  690. mmsystem
  691. enterpage
  692. startY
  693. You can only move objects along lines or angledLines.
  694. startX
  695. line,angledLine
  696. obSize
  697. moveObjectAlongPath
  698. angle
  699. coords
  700. coords
  701. angle
  702. 1,    #?
  703. pagelist
  704. itemoffset
  705. tv switch
  706. gpageList
  707. buttonup
  708. enterbackground
  709. 1,2,5,3
  710. pageList
  711. .&,    7
  712. maxBounce
  713. myInfo
  714. myInfo
  715. newPosition
  716. screen
  717. frameBnds
  718. newbnds
  719. positionChildViewer
  720. "knameList
  721. credit
  722. WjpositionChildViewer
  723. extra
  724. train
  725. <KinitAnimation
  726. enterpage
  727. "knameList
  728. credit
  729. itemoffset
  730. .animate
  731. train
  732. newName
  733. extra
  734. train
  735. leavepage
  736. Janet Strong,Melody Christensen,Shuang Li,Joseph Brick
  737. namelist
  738. buttonGroup
  739. gHeader
  740. marker
  741. gButtons
  742. outline
  743. spupp
  744. X sizeIt
  745. bSize
  746. header
  747. gOutline
  748. rightBorder
  749. sized
  750. exclientSz
  751. maxSize
  752. getSystemMetrics
  753. clientSz
  754. getSystemMetrics
  755. outlineOrganizer
  756. openWindow
  757. <+U!!
  758. statusbar
  759. fxclientSz
  760. closeWindow
  761. outline
  762. lineheight
  763. outfield
  764. adjustsize
  765. sized
  766. s_lheight
  767. fontChange
  768. fontChange
  769. character
  770. fontChange
  771. paragraph
  772. UdmakeFont
  773. destroyFont
  774. linkStuff
  775. outline
  776. s_lheight
  777. /$stringHeight
  778. lineheight
  779. SIgetTextExtent
  780. selectObject
  781. deleteObject
  782. createFont
  783. getDC
  784. releaseDC
  785. linkstuff
  786. ,!JHY
  787. selectObject
  788. hOldObject
  789. }releaseDC
  790. Failure: no logical font created.
  791. getDC
  792. createFont
  793. hfont
  794. weight
  795. makefont
  796. .&,    "
  797. selectObject
  798. deleteObject
  799. hOldObject
  800. }releaseDC
  801. hfont
  802. destroyFont
  803. jogetTextExtent
  804. stringLen
  805. jogetTextExtent
  806. stringHeight
  807. ,%H.%
  808. Displays/hides Template Outline palette.
  809. helpTemplate
  810. &Contents
  811. Change To&pic Name..
  812. The path animation sysbook is not loaded. Animations in the "Path Animation" sections will not run. Be sure that either mtb30.sbk or mtb30ani.sbk are included in your startupSysbooks.
  813. Using this &Template
  814. false
  815. Displays help on using this template.
  816. Options for modifying content of this template.
  817. Changes name of current chapter.
  818. New &Chapter...
  819. outline
  820. animSysbookLoaded
  821. Cvisited
  822. changeName
  823. rebuildStructure
  824. tableOfContents
  825. toolbar
  826. mtb30anm.sbk
  827. tableofcontents
  828. firstTime
  829. firstTime
  830. Adds new chapter to this book.
  831. Change C&hapter Name..
  832. Changes name of topic chapter.
  833. New &Topic...
  834. author
  835. Adds new topic to this chapter.
  836. contents
  837. topicsBackground
  838. Template &Outline
  839. enterApplication
  840. Change Chapter Name...
  841. chaptersBackground
  842. author
  843. outline
  844. Change Topic Name...
  845. contents
  846. TopicsBackground
  847. entermenu
  848. helpTemplate
  849. Contents
  850. leaveapplication
  851. outline
  852. toolbar
  853. author
  854. outline
  855. toolbar
  856. reader
  857. outline
  858. mstate
  859. rebuildStructure
  860. contents
  861. outline
  862. w,    #?
  863. s_temp_animNewBackground
  864. chaptersBackground
  865. This template is limited to
  866. chapters.
  867. skipDialog
  868. /%chapterCount
  869. chapterLimit
  870. topicsBackground
  871. newBackground
  872. chapterLimit
  873. chapter headings
  874. chaptersBackground
  875. topics
  876. topicsBackground
  877. w,    #>
  878. .&,    7
  879. w,    #>
  880. PBmyPages
  881. voutline
  882. curChapterId
  883. myChapterID
  884. pagelabel
  885. chapterCount
  886. outline
  887. tabSpacer
  888. curPageId
  889. tableofcontents
  890. tableOfContents
  891. chaptersBackground
  892. ainitPage
  893. 0%chapterCount
  894. label
  895. topicsBackground
  896. rebuildStructure
  897. .&,    "
  898. extractName
  899. extractID
  900. ,%H.%
  901. itemOffset
  902. O@middleGray
  903.  9@darkBlue
  904. tabSpacer
  905. tableOfContents
  906. tableofcontents
  907. updatechecks
  908. tableOfContents
  909. .&,    "
  910. Cannot find book TMPLHELP.TBK
  911. mydir
  912. tmplhelp.tbk
  913. helpTemplate
  914. initPage
  915. w,    #?
  916. Enter new chapter name.
  917. cancel
  918. This template is limited to
  919. chaptersBackground
  920. label
  921. rebuildStructure
  922. tableOfContents
  923. toolbar
  924. chapterName
  925. chapters.
  926. skipDialog
  927. /%chapterCount
  928. chapterLimit
  929. Untitled
  930. topicsBackground
  931. newChapter
  932. cancel
  933. Enter new topic name.
  934. chaptersBackground
  935. lastPage
  936. label
  937. rebuildStructure
  938. tableOfContents
  939. toolbar
  940. chapterName
  941. skipDialog
  942. Untitled
  943. topicsBackground
  944. newTopic
  945. cancel
  946. Enter new name.
  947. label
  948. rebuildStructure
  949. label
  950. changeName
  951. firstTime
  952. saveAs
  953. about
  954. aboutAnimate
  955. anim_StartSize
  956. animSysbookLoaded
  957. Dame.
  958. label
  959. rebuildStructure
  960. label
  961. changeName
  962. firstTime
  963. saveAs
  964. about
  965. aboutAnimate
  966. anim_StartSize
  967. animSysbookLoaded
  968. up toolbar
  969.     pref = 
  970. enabled 
  971. on the outline 
  972. selectedTextLines 
  973. currentPage 
  974. xtopicsBackground()
  975. pRef 
  976. -- updates 
  977. . sent 
  978. entered 
  979. that navigates 
  980. initPage
  981. "heading" 
  982. label 
  983. "chapterLabel" 
  984. table 
  985. contents 
  986.     myPages = 
  987. topicList 
  988. updateCheckMarks
  989. updateChecks 
  990. clearing a 
  991. "You cannot delete 
  992. "Warning: 
  993. operation 
  994. 8be reversed 
  995. ]Undo." 
  996. f"OK" 
  997. "Cancel"
  998. ls = 
  999. curBK = 
  1000. xchaptersBackground()
  1001. rebuildStructure
  1002. e= ls
  1003. -- same 
  1004. [handler
  1005. f"OK" 
  1006. ls = 
  1007. e= ls
  1008. newChapter
  1009. -- This 
  1010. {lives on the 
  1011. "Chapter Headings" 
  1012. serves
  1013. %table 
  1014. contents 
  1015. every chapter. Each 
  1016.  heading
  1017. -- has one 
  1018. a userProperty (myPages) containing a 
  1019. -- list 
  1020. idnumbers 
  1021. BookOverview dialog box 
  1022. passed 
  1023. handler via
  1024. pageList parameter.
  1025. topicList 
  1026. limited 
  1027.     maxTopics = 10
  1028.     listCount = 
  1029. curPageID
  1030.         -- find out 
  1031. that 
  1032. been visited
  1033.         v = 
  1034.         curG = 
  1035. ("g"&i) 
  1036.         o = 
  1037. curField
  1038. curCheck
  1039.         -- update 
  1040. each 
  1041. Mbased on 
  1042. label (
  1043.         -- 
  1044. checkmark, 
  1045. appropriate
  1046. p <> v
  1047.         -- store 
  1048. {navigation
  1049. pageID 
  1050.         -- 
  1051. hidden
  1052. remaining tabs
  1053. ("g"&i) 
  1054. -- updates 
  1055. checkmarks. 
  1056. called instead 
  1057. coming 
  1058. since only 
  1059. need 
  1060. be updated
  1061. updateChecks 
  1062.         -- 
  1063. representing a "
  1064.         -- 
  1065. made up 
  1066. a checkbutton.
  1067.         curTopic = 
  1068. ("g"&i) 
  1069.             o = 
  1070. fieldRef
  1071. checkRef
  1072.             curPageId = 
  1073. curpageID
  1074.     -- turn on 
  1075. selected 
  1076.     goPage = 
  1077. (pageid 
  1078. initPage 
  1079. -- highlights 
  1080. M"buttons" (they're really fields)
  1081. value
  1082. lightGray
  1083. darkBlue()
  1084. highlightColor 
  1085. value
  1086. shadowColor 
  1087. faceColor 
  1088. sized
  1089.     spupp = syspageunitsperpixel
  1090.     b = 
  1091.     syssuspendmessages = 
  1092.     -- flag 
  1093. %having been visited
  1094. up toolbar
  1095.     toolbarRef = 
  1096. enabled 
  1097.     -- only allow 
  1098. same chapter
  1099. xchaptersBackground()
  1100. "outline"
  1101. selectedTextLines 
  1102. currentPage 
  1103. -- initializes the label 
  1104. a user property 
  1105. each content 
  1106.  heading 
  1107. initPage
  1108. ID (mychapterID 
  1109. "topicLabel" 
  1110. pressed, 
  1111. contents 
  1112. V. myChapterId 
  1113. a userProperty containing 
  1114. . It 
  1115. 8overview dialog box.
  1116.     backpage = 
  1117. (myChapterID 
  1118. updateCheckMarks 
  1119. added, 
  1120. newTopic    
  1121.     nextPageParent = 
  1122. myPages 
  1123. deleted.
  1124. "You cannot 
  1125. "Warning: 
  1126. operation 
  1127. 5be reversed 
  1128. ]Undo." 
  1129. f"OK" 
  1130. "Cancel"
  1131. ls = 
  1132. curBK = 
  1133. xtopicsBackground() 
  1134. rebuildStructure
  1135. e= ls
  1136. -- maintain navigational structure 
  1137. f"OK" 
  1138. ls = 
  1139. e= ls
  1140. highlightColor 
  1141. value
  1142. shadowColor 
  1143. faceColor 
  1144. sized
  1145.     spupp = syspageunitsperpixel
  1146.     b = 
  1147.     syssuspendmessages = 
  1148. -- enable table 
  1149. contents 
  1150. enabled 
  1151. B"tableOfContents" 
  1152. "toolbar" 
  1153.     pref = 
  1154. pRef 
  1155. "heading" 
  1156. "Table 
  1157. -- Don't allow deletion 
  1158. "You cannot delete 
  1159. Ycutting 
  1160. "This template does 
  1161. xsupport adding 
  1162. initialize 
  1163. 4we land on 
  1164. initPage 
  1165. highlightColor 
  1166. value
  1167. shadowColor 
  1168. faceColor 
  1169. sized
  1170.     spupp = syspageunitsperpixel
  1171.     b = 
  1172.     syssuspendmessages = 
  1173. -- This 
  1174. {serves 
  1175. %the table 
  1176. contents 
  1177. 8. It 
  1178. updated
  1179. 'Book Overview dialog box
  1180. voutline 
  1181. pageList
  1182. limited 
  1183.     maxTopics = 8
  1184.     listCount = textlineCount(
  1185.         t = 
  1186.         -- find 
  1187. that 
  1188. has been visited
  1189.         curG = 
  1190. ("g"&i) 
  1191.         o = 
  1192. curField
  1193.         -- 
  1194.         -- store 
  1195. links 
  1196. pageID 
  1197. remaining tabs
  1198. ("g"&i) 
  1199.     -- turn on 
  1200. selected 
  1201.     goPage = 
  1202. initPage 
  1203. -- highlights 
  1204.  "buttons" (they're really fields)
  1205. value
  1206. lightGray
  1207. darkBlue()
  1208. -- updates 
  1209. checkmarks. Only checks 
  1210. chapter have 
  1211. updateChecks
  1212.     numChapters = 8
  1213.         -- 
  1214. representing a "
  1215.         -- each 
  1216. made up 
  1217. a checkbutton.
  1218. ("g"&i) 
  1219.             o = 
  1220.             -- 
  1221. Yreferences 
  1222. checkref
  1223.             -- 
  1224. stored 
  1225.             -- a 
  1226. userProperty myPages 
  1227.             subPages = mypages 
  1228.             -- walk through 
  1229.             -- 
  1230. curID
  1231. checkRef 
  1232. updateLabels
  1233.         -- 
  1234.         -- 
  1235. ("g"&i) 
  1236.             o = 
  1237.             -- 
  1238.  = label 
  1239. -- initializes the 
  1240. structure 
  1241. outline form 
  1242. chapters 
  1243. <current 
  1244. (curPageNum) 
  1245. highlighted.
  1246. initPage listBoxText
  1247.     outlineField = 
  1248.         pNum = 
  1249. selectedTextlines 
  1250. 3-1,1))
  1251. scrollToSelectedTextline 
  1252. updateHeader 
  1253. -- reorders 
  1254. 8based on 
  1255. Qmade 
  1256. ZcurChapterID,curChapterTitle,pageList,chapterList
  1257.     voutline = 
  1258.     -- walk through each 
  1259.     chapterCount = 0
  1260.         curTextLine = 
  1261.         curID = extractID(
  1262.         -- 
  1263. numbers. 
  1264. rebuildStructure 
  1265. -- gets 
  1266. strings 
  1267. following two types:
  1268. p><tabs><
  1269. extractName strng
  1270.     tabOffset = 
  1271.     lastTabLoc = 
  1272. -- puts a 
  1273. insertName 
  1274. ,newName
  1275. "<Untitled>"
  1276.         startLoc = 2
  1277.     endLoc = 
  1278. R(startloc - 1) 
  1279. -- pulls 
  1280. zout 
  1281. -- <n: ><
  1282. extractNumber txt
  1283. colOffset 
  1284. ~(":",
  1285. .- 1 
  1286. istype("
  1287. buttonclick
  1288.     o = 
  1289. "outline" 
  1290.     stl = selectedTextLines 
  1291.     tlineNum = 
  1292. chapterOrPage 
  1293. "Delete 
  1294. (s)?" 
  1295. f"OK" 
  1296. "Cancel"
  1297. startline 
  1298.         ssm = sysSuspendMessages
  1299. (stl)
  1300. curID = extractID(
  1301. BstartLine 
  1302. "Cannot delete the 
  1303. /" && 
  1304. /& "."
  1305.             curBK = 
  1306. xtopicsBackground() 
  1307. xchaptersBackground()
  1308.  = ssm
  1309. rebuildStructure
  1310. initPage 
  1311. 4s_cancel
  1312. keyEnter
  1313. updateText
  1314. lineNum 
  1315. chapter 
  1316. fref 
  1317. "outline"
  1318. curLine 
  1319. insertName(
  1320.     pRef = 
  1321. (pageID 
  1322. label 
  1323. chaptersBackground()
  1324. updateLabels 
  1325. "tableofcontents" 
  1326.         bkRef = 
  1327. topicsBackground()
  1328. initPage 
  1329. 4s_enterText
  1330. enabled 
  1331. "updateButtons" 
  1332. renumberText
  1333. count 
  1334. extractNumber(
  1335. ~(":",
  1336. t)-1 
  1337. key,isShift
  1338. keyupArrow && keyDownArrow && keyFirst && keyLast
  1339. oselectedtextlines
  1340. updateHeader tl
  1341. 4s_cancel
  1342.         stl = selectedTextLines 
  1343. lineNum
  1344.     fref = 
  1345.     txtline = 
  1346. chapter 
  1347. txtLine)
  1348. extractName(
  1349. pageId 
  1350. extractID(
  1351. enabled 
  1352. "updateButtons" 
  1353. maxChapter
  1354. C(t) 
  1355. -- This 
  1356. main dragAndDrop code:
  1357. 4s_navFromPalette
  1358.         sls = 
  1359. gotopage 
  1360. initpage 
  1361. enormous handler handles selecting, dragging, 
  1362. dropping 
  1363. listbox
  1364. ZstartLine,endLine,lineHeight,mybounds,xloc,mytext
  1365.     -- Find 
  1366. Bclicked on. 
  1367. will be 
  1368. starting 
  1369.         -- Break 
  1370. user 
  1371. V edge 
  1372.         startline = 
  1373. <= 0 
  1374. Uwe want 
  1375. n. we 
  1376. value
  1377.     -- later 
  1378. we've 
  1379.  a heading:
  1380.     endline = 
  1381.     -- lineheight 
  1382. pageUnits 
  1383. (see 
  1384. below):
  1385.     -- Cache commonly used values 
  1386.     xpix = 
  1387. sysPageUnitsPerPixel
  1388.     ypix = 
  1389.     myBounds = 
  1390.     myText = 
  1391.     marker = 
  1392.     totalLineCount = 
  1393.  we know 
  1394. be between 
  1395. sides 
  1396.     -- The following section selects 
  1397. B(s):
  1398.     -- lineList 
  1399.  corresponding 
  1400.     -- we wish 
  1401. 9-- (We've 
  1402.         headingOrTopic = "
  1403.         -- Walk down 
  1404. Zwe hit another 
  1405.         -- incrementing 
  1406. needed:
  1407. oselectedTextlines 
  1408. moves 
  1409. arrow up 
  1410.     -- targetLine 
  1411. insertion point 
  1412. loop executes 
  1413. mousebutton 
  1414. released:
  1415.         mouseLoc = 
  1416.             -- 
  1417. above 
  1418. -- calculate 
  1419. Ucurrently 
  1420.             -- 
  1421. there's 
  1422. beyond 
  1423.             -- 
  1424. somewhere 
  1425.             pnt = 
  1426.             -- 
  1427. -- vertLoc 
  1428. -- lineYloc returns 
  1429. `location 
  1430. a given 
  1431.             -- 
  1432.             -- 
  1433. inside 
  1434. U(s):
  1435. toward 
  1436. U(s) 
  1437. 1 place 
  1438.         -- 
  1439. that we 
  1440.         -- numLines 
  1441. .     + 1
  1442.         -- 
  1443. targetline > 
  1444.         -- we 
  1445. asure 
  1446. moved 
  1447.         -- 
  1448.         -- 
  1449. original 
  1450.         -- 
  1451. "," & 
  1452. reorder
  1453. scrollToSelectedTextLine
  1454. (stl) 
  1455.     b = 
  1456.     s = 
  1457. > s + 
  1458. - numlines,0)
  1459. units 
  1460.  - 1 - 
  1461. -- adjusts 
  1462. . Called 
  1463. adjustsize n
  1464.     b = 
  1465.  * n + 3*
  1466.     v = 
  1467. b - 16*
  1468. highlightColor 
  1469. value
  1470. shadowColor 
  1471. faceColor 
  1472. sized
  1473.     spupp = syspageunitsperpixel
  1474.     b = 
  1475.     syssuspendmessages = 
  1476. -- the 
  1477. {loc, isShift
  1478. ZoldX,oldy,newX,newY
  1479.     SM_SWAPBUTTON = 23
  1480.     b = 
  1481.     xGroup = 
  1482. "xLine"
  1483.     yGroup = 
  1484. "yLine"
  1485.     xpix = 
  1486. sysPageUnitsPerPixel
  1487.     ypix = 
  1488.     dx = 
  1489.     dy = 
  1490.     cb = 
  1491. "client"
  1492.     xfield = 
  1493.     yfield = 
  1494.     descrField = 
  1495.     thisWin = 
  1496. Window
  1497. user has swapped mouse buttons, since 
  1498. returns
  1499.     -- hardware key down.
  1500. getsystemmetrics(
  1501.         leftMouseButton = 
  1502. loop occurs 
  1503. whole 
  1504. drags
  1505. (<> loc
  1506.             -- 
  1507. asure 
  1508. within 
  1509.             newP = 
  1510. cb + 330,
  1511. X-dx),
  1512. cb - (
  1513. cb+330,
  1514.  - dy),
  1515. cb - (
  1516.             b = 
  1517.             y = 
  1518. b + (
  1519.             x = 
  1520. b + (
  1521.             -- endpoint 
  1522. handler 
  1523. dimension lines)
  1524.             -- that sizes them.
  1525. a hidden 
  1526. Bthat writes the 
  1527. %supposedly
  1528. -- written 
  1529. recorder.
  1530. animate
  1531. buttonClick" & 
  1532.     -- optimization: store 
  1533. {reference 
  1534. %we will
  1535.     -- be refering 
  1536.     balloon = 
  1537.     cloud = 
  1538.     szb = 
  1539.     szc = 
  1540.     -- we are going 
  1541. walk 
  1542. , so let's
  1543.     -- cache them 
  1544.     vsb = 
  1545. m"balloonpath"
  1546.     vsc = 
  1547. m"cloudpath"
  1548. come 
  1549. a list 
  1550. pairs 
  1551.     -- one 
  1552. each vertex. For 
  1553. iteration 
  1554. loop, 
  1555.     -- we 
  1556.  grab 
  1557. y positions 
  1558. F, subtract half
  1559. positioning relative 
  1560. (vsc) 
  1561. xposb
  1562. yposb
  1563. xposc
  1564. yposc
  1565. buttonClick
  1566. PaintObject 
  1567. Page 
  1568. 4785,2184
  1569. Group 
  1570. 6203,1728
  1571. 4975,2146
  1572. 6090,1746
  1573. 5200,2146
  1574. 5956,1746
  1575. 5425,2178
  1576. 5822,1731
  1577. 5698,2229
  1578. 5661,1708
  1579. 5888,2267
  1580. 5548,1691
  1581. 6054,2267
  1582. 5448,1691
  1583. 6256,2273
  1584. 5330,1688
  1585. 6410,2248
  1586. 5238,1699
  1587. 6552,
  1588. 5153,1711
  1589. 6647,2184
  1590. 5097,1728
  1591. 6849,2133
  1592. 4977,1752
  1593. 7027,2108
  1594. 4871,1763
  1595. 7193,2108
  1596. 4773,1763
  1597. 7335,2121
  1598. 4688,1757
  1599. highlightColor 
  1600. value
  1601. shadowColor 
  1602. faceColor 
  1603. sized
  1604.     spupp = syspageunitsperpixel
  1605.     b = 
  1606.     syssuspendmessages = 
  1607. highlightColor 
  1608. value
  1609. shadowColor 
  1610. faceColor 
  1611. sized
  1612.     spupp = syspageunitsperpixel
  1613.     b = 
  1614.     syssuspendmessages = 
  1615.     -- sends the animate message handled 
  1616. -- moves 
  1617. 2golf ball 
  1618. ?hole, no matter where 
  1619. starts 
  1620. Zsteps,ballRef,ballLoc,xmove,ymove
  1621. b. Note: 
  1622. higher 
  1623. more slowly 
  1624. will 
  1625. g = 20
  1626.     -- optimization: store reference 
  1627. Hbe refering 
  1628. over 
  1629.     ballref = 
  1630. two positions 
  1631. figure out how far
  1632.     -- we have 
  1633. nthem horizontally 
  1634. vertically on each 
  1635.     -- We 
  1636. Hfinding 
  1637. difference 
  1638.     -- distances 
  1639. divide 
  1640.     holeLoc = 
  1641.     -- now that we know 
  1642. loop:
  1643. somewhere 
  1644. . This 
  1645. randomBallLocation
  1646. location on 
  1647.     greenRef = 
  1648.     gbounds = 
  1649.     gsize = 
  1650.     bSize = 
  1651.     xmax = 
  1652.     ymax = 
  1653. n)),\
  1654. -- on 
  1655. , makes ball bounce around within 
  1656. "ballBounds"
  1657. notifyBefore 
  1658.     velocityConstant = 15
  1659.     -- myInfo 
  1660. a userProperty storing information needed 
  1661. figure out 
  1662.     -- where 
  1663. nthe 
  1664. t. It 
  1665. stored 
  1666. a list because
  1667.     -- accessing 1 
  1668. faster than 
  1669.     -- The 
  1670. holds 
  1671. Wfollowing 
  1672.     -- <
  1673. pageUnits moved 
  1674. iterations 
  1675. apex>,
  1676.     -- <current direction: 1 
  1677. up, -1 
  1678. down>
  1679.     xVector= 
  1680.     elapsedTime= 
  1681.     currentDirection= 
  1682. =I have 
  1683. inside
  1684.     bnds = 
  1685.     frameBnds = 
  1686.     -- Each 
  1687. used a unit 
  1688. Ipassed. At the
  1689. 0; 3 
  1690. later, 
  1691.     -- ElapsedTime 
  1692. multiplied 
  1693. acceleration constant 
  1694. calculate 
  1695. amount 
  1696. needs 
  1697. nover 
  1698. instance).
  1699.     -- When 
  1700. going 
  1701. , we 
  1702. up, we 
  1703.     yVector = 
  1704.     newPosition = 
  1705.     -- now that we've 
  1706. , let's 
  1707. whether we 
  1708. change 
  1709. `directions
  1710.         -- 
  1711. we've hit 
  1712. ) + 30 >= 
  1713. omaxBounce
  1714.         -- 
  1715. we're 
  1716.  <= 0
  1717.             -- update 
  1718. we've 
  1719. either 
  1720.         -- 
  1721.         -- 
  1722. ) >= 
  1723. -1 * 
  1724. -- sets sweep hand 
  1725. angle/360. At 0, the 
  1726. points up.
  1727. -- rotation 
  1728. clockwise
  1729.     fullRev = 360 -- constant 
  1730. degrees 
  1731. & revolution.
  1732. current 
  1733. stored property
  1734. myAngle 
  1735.     -- find 
  1736.     coords = 
  1737.     ctr = (
  1738. ")/2,\
  1739. Tradius 
  1740.     = ((
  1741. _) - (
  1742. k))/2
  1743. radians. (2*PI 
  1744.     -- Note: PI/2 
  1745. subtracted so 0 
  1746. Lrather than 
  1747.     minutesAngle = (
  1748. ) * (2 * PI) - (PI / 2)
  1749. ctr,\
  1750. {)), \
  1751. -- moves sweephand one 
  1752. around 
  1753. should take 1 
  1754. complete 
  1755. notifybefore 
  1756.     steps = 10 -- 
  1757.     millsecs = 1000 -- 
  1758. milliseconds 
  1759.     maxDisplay = 9 -- highest 
  1760. zdisplayed
  1761.     curTime = timeGetTime()
  1762.     newAngle = (
  1763. kmillSecs)/
  1764. we need 
  1765. change 
  1766.         fref = 
  1767. "counter" 
  1768.         t = 
  1769.             t = 
  1770.     -- update 
  1771. -- links 
  1772. initializes widget
  1773. Xmmsystem
  1774. entering a 
  1775. pasted 
  1776. notifyAfter 
  1777. -- This handler accelerates 
  1778. its current 
  1779. a terminating y 
  1780. , simulating earth's gravity.
  1781. -- Since the animation 
  1782. based on 
  1783. will fall 
  1784. 'same 
  1785. -- on 
  1786. processor.
  1787. Also, since you provide 
  1788. {'s relative 
  1789. falls should look natural.
  1790. -- Parameters:
  1791. -- ob: 
  1792. -- heightInMeters: how tall 
  1793. represented 
  1794. SUPPOSED 
  1795. example, 
  1796. {represents a trash can, 
  1797. F"1" would work.)
  1798. -- y1: 
  1799. destination y coordinate, where 
  1800. want 
  1801. stop.
  1802. -- v0: 
  1803. starting 
  1804. `velocity (optional) 
  1805.  per 
  1806. -- (note: 
  1807. ToolBook 
  1808. 4, down 
  1809. positive, up 
  1810. negative)
  1811. ,y1,v0
  1812.     -- link timeGetTime(): 
  1813. returns 
  1814. milliseconds
  1815. Xmmsystem
  1816. xsupplied
  1817.         v0 = 0
  1818.     obBounds = 
  1819. units
  1820.     heightInTwips = 
  1821.     -- find out 
  1822. many 
  1823. < there are 
  1824.     twipsPerMeter = 
  1825. constant 
  1826. acceleration due 
  1827.     -- (
  1828.  = 9.8
  1829.     -- store 
  1830.     y0 = 
  1831.     t0 = timegettime()
  1832. loop moves 
  1833. reaches y1
  1834.         -- 
  1835. elapsed 
  1836. started, 
  1837.         t = (
  1838. -t0)/1000
  1839.         -- 
  1840. speed 
  1841.         v = (v0 + 
  1842.         -- 
  1843. formula 
  1844.         -- on 
  1845. v0, y0, 
  1846. Note 
  1847. conversion.
  1848.         y = y0 + (v0*t+.5*
  1849. *(t^2))*
  1850.         -- 
  1851. y, making sure we haven't gone 
  1852. v >= 0
  1853.             y = 
  1854. j(y,y1-
  1855. Zy + 
  1856. >= y1 
  1857. v >=0
  1858. -- shows thought bubble, safe. Drops 
  1859.     , bounces 
  1860. animate
  1861.     safeHeight = 2 -- 
  1862. "real life" (
  1863.     y0 = 
  1864. U"ground"
  1865. ,y0,-2
  1866. ,y0,-.5
  1867.     -- initialize 
  1868. initAnimation
  1869. wstate
  1870. initanimation
  1871. origloc 
  1872. -- animates globe, consisting 
  1873. 16 paintobjects named "1" 
  1874. notifybefore 
  1875.     numFrames = 16 -- 
  1876.     -- info 
  1877. a userProp that has three values (1 userProperty 
  1878. quicker 
  1879. read than 3). The 
  1880. Yare:
  1881.     -- <
  1882. occurred>,<current frame displayed>,
  1883.     -- <
  1884. delay between frames>
  1885. Zvars
  1886. lastTime
  1887. lastFrame
  1888.     newTime = timeGetTime()
  1889.     vref = 
  1890. period 
  1891. passed. If so, 
  1892. u >= 
  1893.         newFrame = 
  1894.         -- update 
  1895. newframe 
  1896. increase 
  1897. decrease the speed 
  1898. animation.
  1899. milliseconds.
  1900. -- initialize 
  1901. widget
  1902. Xmmsystem
  1903. entering a 
  1904. pasted 
  1905. notifyAfter 
  1906. -- moves 
  1907. {moveObj along pathObj. 
  1908. -- steps 
  1909. movements per segment 
  1910. moveObjectAlongPath 
  1911. "You can only 
  1912. lines 
  1913. angledLines."
  1914.     vert = 
  1915. startX
  1916. startY
  1917.     obSize = 
  1918.         -- here we will 
  1919. figure out how far
  1920.         -- we have 
  1921. nthem horizontally 
  1922. vertically on each 
  1923.         -- We 
  1924. Hfinding 
  1925. difference 
  1926.         -- distances 
  1927. divide 
  1928.         xmove = (
  1929.         ymove = (
  1930.         -- now that we know 
  1931.         -- 
  1932. loop:
  1933. dial 
  1934. angle
  1935.     ctr = 
  1936. coords = 
  1937. radius = ((
  1938. ) - (
  1939. ())/2
  1940. dialAngle = (
  1941. _/360) * (2 * PI) - (PI / 2)
  1942. U"hand" 
  1943. + (.8 * 
  1944. f)), \
  1945. (.8 * 
  1946. )/2,\
  1947.     pagelist = pageList()
  1948. H360 
  1949. itemoffset(
  1950. T) + 1
  1951. "tv switch"
  1952. ("tv" && 
  1953. notifybefore 
  1954. "1,2,5,3"
  1955. notifyBefore 
  1956.     velocityConstant = 6
  1957.     -- info 
  1958. a list 
  1959. needed information 
  1960. %follows:
  1961. *= myInfo 
  1962.     xVector= 
  1963.     elapsedTime= 
  1964.     currentDirection= 
  1965.     bnds = 
  1966.     frameBnds = 
  1967. screen 
  1968.     yVector = 
  1969.     newPosition = 
  1970.     -- now that we've moved, let's 
  1971. whether we have 
  1972. change directions
  1973. ) + 30 >= 
  1974. omaxBounce
  1975.  <= 0
  1976. ) >= 
  1977. -1 * 
  1978. positionChildViewer childViewer, bnds
  1979.     newbnds= pageUnitsToClient(
  1980. notifyAfter 
  1981. "credit" 
  1982. nameList()
  1983.     vref = 
  1984. "extra"
  1985. pagescroll 
  1986. currentpage 
  1987. "train"
  1988. r vRef,
  1989. initAnimation 
  1990. isOpen 
  1991. notifyBefore 
  1992. animate 
  1993.         nl = 
  1994. itemoffset(
  1995.         newName = 
  1996. (nl)+1) 
  1997.         close 
  1998. namelist
  1999. "Janet Strong,Melody Christensen,Shuang Li,Joseph Brick"
  2000. sized
  2001. ZbuttonPos
  2002.     spupp = sysPageUnitsPerPixel
  2003. pRef 
  2004. currentPage 
  2005. gHeader 
  2006. gButtons 
  2007. "buttonGroup" 
  2008. gOutline 
  2009. "outline" 
  2010. marker 
  2011. oclientsize
  2012. rightBorder 
  2013. cs - 
  2014. bottomBorder 
  2015. cs - 
  2016. bSize 
  2017. cs - 
  2018. sizeIt 
  2019.  - 4*
  2020. fb+10*
  2021. fb - 18*
  2022. openWindow
  2023. Zsm_cxframe,sm_cyframe,sm_cycaption,defaultSize,defaultPosition
  2024. {winRef
  2025. 4metric indexes:
  2026.  32 -- width 
  2027. sizable 
  2028.  33 -- height 
  2029. 4 -- 
  2030. 3000,5000
  2031. "0,0"
  2032. X"user"
  2033.         INT getSystemMetrics(
  2034.     -- cache 
  2035. {references
  2036. stored clientSize 
  2037. ini file
  2038. clientSz 
  2039. pageUnitsToClient(
  2040. the borders 
  2041. captions 
  2042. extraWidth 
  2043. extraHeight 
  2044. )*2+\
  2045. winref 
  2046.     -- calculate maximimum 
  2047. ebased on 
  2048. maxSize 
  2049. "outlineOrganizer" )
  2050. maximumSize 
  2051. chandling 
  2052. about box:
  2053. windowsized 
  2054. closeWindow
  2055. statusbar
  2056. -- initialize the 
  2057. sized
  2058.     outfield = 
  2059. "outline" 
  2060.         ypix = 
  2061. sysPageUnitsPerPixel
  2062.         o = 
  2063.         b = 
  2064.         syssuspendmessages = 
  2065. adjustsize 
  2066. ylineheight 
  2067. o,3) 
  2068. font gets changed 
  2069. , reset 
  2070. fontChange 
  2071. 4s_lheight
  2072. notifyAfter 
  2073. -- returns 
  2074. a given 
  2075. linkStuff
  2076. fref 
  2077. makeFont 
  2078. stringHeight()
  2079. destroyFont
  2080.  windows 
  2081. stuff 
  2082. linkstuff
  2083. X"gdi"
  2084. getTextExtent(
  2085. gselectObject(
  2086. deleteObject(
  2087. gcreateFont(
  2088.     linkDLL "user"
  2089. ggetDC(
  2090. releaseDC(
  2091. makefont fontName,pitch,
  2092. weight 
  2093. ghfont,hOldObject,hdc
  2094. sysClientHandle)
  2095. syspageunitsperpixel
  2096. fheight 
  2097. ((1440/
  2098. /72)) -- 
  2099. pixels
  2100. hFont 
  2101. <,0,0,0,
  2102. ,0,0,0,0,0,0,0,0,
  2103. "Failure: no logical 
  2104. created."
  2105. -- kills 
  2106. sysclientHandle,
  2107. twips, 
  2108. length 
  2109. stringLen 
  2110.     ,strlen
  2111. strLen 
  2112. k65536) * 
  2113. "aaa",3) 
  2114. y65536) * 
  2115.  1993,1994. Asymetrix Corporation. All Rights Reserved.
  2116. /gives you permission 
  2117. e, revise, 
  2118. reuse the
  2119. -- individual 
  2120. scripts 
  2121. your own
  2122. -- applications.
  2123. You may 
  2124. H entire 
  2125. -- substantial part 
  2126. redistribution 
  2127. ` product.
  2128. retains 
  2129.  copyright on 
  2130.  original elements 
  2131.  . Include 
  2132.  notice "Portions 
  2133.  1993, 1994. 
  2134. they contain 
  2135. copied 
  2136. -- tableOfContents message sent 
  2137. Htoolbar 
  2138. pressed
  2139.  Standard ToolBook messages 
  2140.  menus, initialize Back handling
  2141. enterApplication
  2142. enabled 
  2143. sysRuntime 
  2144. fhelpText "Options 
  2145. modifying content 
  2146. template."
  2147. e"Template &Outline" alias "outline" 
  2148. c"contents" 
  2149. fhelptext\
  2150.          "Displays/hides 
  2151. I palette."
  2152. e"New &Chapter..." 
  2153.          "Adds 
  2154. qchapter 
  2155. e"Change C&
  2156. Name.." 
  2157. changeName" 
  2158.          "Changes 
  2159. current 
  2160. Topic..." 
  2161. e"Using 
  2162. helpTemplate" 
  2163. ) on 
  2164. firstTime 
  2165. rebuildStructure
  2166. xanimSysbookLoaded()
  2167. "The path animation sysbook 
  2168. xloaded. Animations 
  2169. the ""Path 
  2170. "" sections will 
  2171. . Be sure that either mtb30.sbk 
  2172. mtb30ani.
  2173. are included 
  2174. startupSysbooks."
  2175. checkmarks
  2176.     bk = topicsBackground()
  2177. visited 
  2178. "tableofcontents" 
  2179. entermenu menuName,menuAlias
  2180. chaptersBackground() 
  2181.             disable 
  2182. TopicsBackground() 
  2183. leaveapplication
  2184. isOpen 
  2185. focusWindow
  2186.     mstate = menuItemChecked("
  2187.             close 
  2188. inserted 
  2189. area,
  2190. beyond 
  2191. 4s_temp_animNewBackground
  2192. chapterCount 
  2193. < chapterLimit()
  2194.  "skipDialog"
  2195.         lastPage = 
  2196. "This 
  2197. limited 
  2198. " && 
  2199.  && "
  2200.  Utility handlers 
  2201. -- returns 
  2202.  allowed 
  2203. /reference 
  2204. headings 
  2205.  updatePalette
  2206. ZpagesOfEachChapter,curPage,curBackground,prevChapterHeadingPage,chapterList,listBoxText
  2207. ) = 2
  2208.     pageCounter = 2
  2209.         curPageId = 
  2210.         pagelabel = 
  2211. xNULL
  2212. myPages 
  2213. curChapterId = 
  2214. myChapterID 
  2215.  = curChapterID
  2216. & "," & pageLabel 
  2217. & tabSpacer() & 
  2218.             -- 
  2219. /. Move 
  2220. ;backgrounds
  2221.     voutline 
  2222. initPage 
  2223. currentPage 
  2224. -- Used 
  2225.  box 
  2226. a dialog 
  2227. used 
  2228. store extra information 
  2229.     gets clipped 
  2230. side 
  2231. extractName t
  2232.     tabOffset = 
  2233. extractID t
  2234.     lastTabLoc = 
  2235. U(t) 
  2236. numerical location 
  2237. itemOffset itm,lst
  2238. color
  2239. middleGray
  2240. 240,63.5,2.1875
  2241. dark 
  2242. darkBlue
  2243. 240,25.125,100
  2244. tabs. 
  2245. serves a spacer between 
  2246. on each 
  2247. listbox. 
  2248.  Navigation 
  2249.     pref = 
  2250. updatechecks 
  2251.     mydir = 
  2252.     sen = sysErrorNumber
  2253.     se = 
  2254.     ss = 
  2255.     bref = 
  2256. u&"tmplhelp.tbk")
  2257. 1= ss
  2258. "Cannot find 
  2259. 8TMPLHELP.TBK"
  2260.         vref = 
  2261. defaultpage 
  2262. "cbt1" 
  2263. r= se
  2264. newChapter promptForName
  2265.         chapterName = "Untitled"
  2266. ("Enter 
  2267.             ls = 
  2268.             -- 
  2269. a clean 
  2270.             -- 
  2271. Fsuspend 
  2272. navigate 
  2273.             -- appropriate 
  2274. nterPage 
  2275.             ssm = syssuspendmessages
  2276. e= ls
  2277. " && 
  2278.  && "
  2279. newTopic pageNum
  2280.         ls = 
  2281.         -- 
  2282.         -- 
  2283.         -- 
  2284.  = ssm
  2285. e= ls
  2286. saveAs
  2287. aboutAnimate
  2288. %modal
  2289. anim_StartSize()
  2290. MS Sans Serif
  2291. MS Sans Serif
  2292. MS Sans Serif
  2293. MS Sans Serif
  2294. MS Sans Serif
  2295. System
  2296. MS Sans Serif
  2297. false
  2298. MS Sans Serif
  2299. firstTime
  2300. System
  2301. MS Sans Serif
  2302. MS Sans Serif
  2303. MS Sans Serif
  2304. 03/04/1995 08:39:33
  2305. Times New Roman
  2306. 1/23/95 1:01:11 PM
  2307. Courier New
  2308. 1:01:06 PM
  2309. MS Sans Serif
  2310. asymetrix
  2311. Arial
  2312. info_LastSavedBy
  2313. info_LastSaved
  2314. Courier New
  2315. Claude Ostyn
  2316. false
  2317. Arial
  2318. chapterCount
  2319. MS Sans Serif
  2320. Courier New
  2321. wChapterOrTopic"
  2322. Page "train"
  2323. Page "tv 1"
  2324. 313,172
  2325. train
  2326. pageUnitsPopup
  2327. Page "pageunits"
  2328. buttonclick
  2329. buttonclick
  2330.     close 
  2331. The Animation Book
  2332. Page "tank"
  2333. 4005,11130
  2334. scriptRecorderPopup
  2335. ScriptRecorderPopup2
  2336. page "scriptRecorderPopup2"
  2337. about
  2338. About Animation Book
  2339. page "aboutAnimation"
  2340. frame
  2341. screen
  2342. openwindow
  2343. closeWindow
  2344. openwindow 
  2345. currentPage 
  2346. pageUnitsToClient(
  2347. frame 
  2348. T"screen" 
  2349. closeWindow
  2350. 435,450
  2351. extra
  2352. page "train"
  2353. 4005,11130
  2354. outlineOrganizer
  2355. chapterCount
  2356. topicCount
  2357. selectChars
  2358. false
  2359. visited
  2360. strChecked
  2361. strChecked
  2362. outline
  2363. topline
  2364. group
  2365. topLine
  2366. X sizeIt
  2367. bottomLine
  2368. sizeIt
  2369. sizeIt
  2370. bottomLine 
  2371. topline 
  2372. m"topLine" 
  2373. objs 
  2374.         rec = 
  2375.         sz = 
  2376.         pupp = syspageUnitsPerPixel
  2377. sz > 
  2378. sz > 
  2379.             xpix = 
  2380. syspageunitsperpixel
  2381.             ypix = 
  2382.             b = 
  2383.             ll = 
  2384.             lr = 
  2385.             ur = 
  2386.             ul = 
  2387. ul,lr
  2388. --            
  2389. ll,lr,ur
  2390. --            
  2391. ll,ul,
  2392. in,ms
  2393. ThreeDeeRect
  2394. bottomLine
  2395. topLine
  2396. outline
  2397. strChecked
  2398. selectedTextline
  2399. Moving objects                                        5
  2400.     Position property                                        7
  2401.     Script recorder                                        6
  2402.     Move command                                        11
  2403.     Move to command                                        4
  2404.     Move by command                                        3
  2405.     Moving on idle                                        12
  2406. Frame animation                                        2
  2407.     How it works                                        13
  2408.     Hiding and showing                                        14
  2409.     Animating buttons                                        15
  2410. Useful scripts                                        16
  2411.     Animating with color                                        17
  2412.     Simulating gravity                                        18
  2413.     Timing animation                                        19
  2414.     Moving along a line                                        20
  2415. Using path animation                                        36
  2416.     Path animation sysbook                                        40
  2417.     Fish tank                                        37
  2418.     EKG monitor                                        39
  2419.     Moving frame animation                                        41
  2420. Untitled                                        45
  2421.     Untitled                                        46
  2422. marker
  2423. vertLoc
  2424. vertLoc b 
  2425. value
  2426.     ypix = 
  2427. syspageunitsperpixel
  2428.     s = 
  2429.     halfH = 
  2430. C- 3*
  2431. strChecked
  2432. buttonGroup
  2433. yunewTopic
  2434. false
  2435. outline
  2436. newChapter
  2437. Chapter
  2438. ainitpage
  2439. Untitled
  2440. header
  2441. title
  2442. buttonclick
  2443. buttonclick
  2444.     stl = selectedTextLines 
  2445. "outline" 
  2446. vRef 
  2447. parentwindow 
  2448. initpage 
  2449. currentPage 
  2450. %modal
  2451. isopen 
  2452. pRef 
  2453.         close 
  2454.         title = "Untitled"
  2455. B"Chapter" 
  2456. newChapter 
  2457. newTopic stl
  2458. strChecked
  2459. &New...
  2460. editTopic
  2461. strChecked
  2462. &Delete
  2463. updateButtons
  2464. check
  2465. buttonclick
  2466. buttonclick
  2467. s_cancel
  2468. buttonclick
  2469. buttonclick
  2470. 4s_cancel
  2471. Edit &Title:
  2472. header
  2473. topline
  2474. group
  2475. topLine
  2476. X sizeIt
  2477. bottomLine
  2478. sizeIt
  2479. sizeIt
  2480. bottomLine 
  2481. topline 
  2482. m"topLine" 
  2483. objs 
  2484.         rec = 
  2485.         sz = 
  2486.         pupp = syspageUnitsPerPixel
  2487. sz > 
  2488. sz > 
  2489.             xpix = 
  2490. syspageunitsperpixel
  2491.             ypix = 
  2492.             b = 
  2493.             ll = 
  2494.             lr = 
  2495.             ur = 
  2496.             ul = 
  2497. ul,lr
  2498. --            
  2499. ll,lr,ur
  2500. --            
  2501. ll,ul,
  2502. in,ms
  2503. ThreeDeeRect
  2504. bottomLine
  2505. topLine
  2506. header
  2507. pageId
  2508. lineNum
  2509. Moving objectsnimation
  2510. character
  2511. paragraph
  2512. ASYM_BeenHere
  2513. page "scriptRecorderPopup1"
  2514. toolbar
  2515. page "toolbar"
  2516. outline
  2517. Template Outline
  2518. page "outlineOrganizer"
  2519. location
  2520. clientSz
  2521. page "newChapterOrTopic"
  2522. Page "train"
  2523. Page "tv 1"
  2524. 313,172
  2525. train
  2526. pageUnitsPopup
  2527. Page "pageunits"
  2528. buttonclick
  2529. buttonclick
  2530.     close 
  2531. The Animation Book
  2532. Page "tank"
  2533. scriptRecorderPopup
  2534. ScriptRecorderPopup2
  2535. page "scriptRecorderPopup2"
  2536. about
  2537. About Animation Book
  2538. page "aboutAnimation"
  2539. frame
  2540. screen
  2541. openwindow
  2542. closeWindow
  2543. openwindow 
  2544. currentPage 
  2545. pageUnitsToClient(
  2546. frame 
  2547. T"screen" 
  2548. closeWindow
  2549. 435,450
  2550. extra
  2551. page "train"
  2552. 4005,11130
  2553. 4005,11130
  2554. tableOfContents
  2555. leavepage
  2556. enterpage
  2557. 7,6,11,4,3,12
  2558. ASYM_BeenHere
  2559. Chapter Headings
  2560. strChecked
  2561. out,true
  2562. ThreeDeeRect
  2563. strChecked
  2564. strChecked
  2565. bottomLine
  2566. strChecked
  2567. topLine
  2568. strChecked
  2569. out,true
  2570. ThreeDeeRect
  2571. strChecked
  2572. strChecked
  2573. bottomLine
  2574. strChecked
  2575. topLine
  2576. strChecked
  2577. Topics
  2578. strChecked
  2579. strChecked
  2580. topic1
  2581. 4    D    J
  2582. pageId
  2583. strChecked
  2584. Position propertysbookrks
  2585. check1
  2586. strChecked
  2587. strChecked
  2588. topic2
  2589. pageId
  2590. strChecked
  2591. Script recorderity objects        25
  2592. check2
  2593. strChecked
  2594. strChecked
  2595. topic3
  2596. pageId
  2597. strChecked
  2598. Move commandtionsgbuttons                                61
  2599. check3
  2600. strChecked
  2601. strChecked
  2602. Q    + 2
  2603. topic4
  2604. pageId
  2605. strChecked
  2606. Move to commandimations62
  2607. check4
  2608. strChecked
  2609. strChecked
  2610. topic5
  2611. pageId
  2612. strChecked
  2613. Move by commandline4
  2614. check5
  2615. strChecked
  2616. strChecked
  2617. topic6
  2618. pageId
  2619. strChecked
  2620. Moving on idlec
  2621. check6
  2622. strChecked
  2623. strChecked
  2624. topic7
  2625. pageId
  2626. strChecked
  2627. Billy7r7
  2628. check7
  2629. strChecked
  2630. strChecked
  2631. topic8
  2632. pageId
  2633. strChecked
  2634. Barbara8
  2635. check8
  2636. strChecked
  2637. strChecked
  2638. topic9
  2639. strChecked
  2640. topic9r8K
  2641. check9
  2642. strChecked
  2643. strChecked
  2644. topic10
  2645. strChecked
  2646. topic108
  2647. check10
  2648. strChecked
  2649. in,true
  2650. ThreeDeeRect
  2651. strChecked
  2652. strChecked
  2653. bottomLine
  2654. strChecked
  2655. topLine
  2656. strChecked
  2657. strChecked
  2658. chapterLabel
  2659. raisedField
  2660. tbk_wid_name
  2661. faceColor
  2662. highlightColor
  2663. shadowColor
  2664. tbk_wid_props
  2665. color,hls
  2666. color,hls
  2667. color,hls
  2668. tbk_wid_values
  2669. strChecked
  2670. highlight
  2671. : J J
  2672. strChecked
  2673. Moving objectsmation
  2674. shadow
  2675. strChecked
  2676. Moving objectsmation
  2677. strChecked
  2678. Moving objectsmation
  2679. strChecked
  2680. Click on one of the topics below
  2681. to view information on that subject.......
  2682. 95012313004110063205280234205
  2683. Position property
  2684. label
  2685. myChapterID
  2686. visited
  2687. Each object in ToolBook has a property called position  that tells ToolBook where the object sits relative to the top and left edges of the page. Moving an object involves changing this property.  
  2688. Position is a list of two numbers given in page units. In the illustration to the right, drag the object and notice how its position property changes.
  2689. pageUnitsPopup
  2690. buttonclick
  2691. buttonclick
  2692. "pageUnitsPopup"
  2693. strChecked
  2694. in,true
  2695. ThreeDeeRect
  2696. strChecked
  2697. strChecked
  2698. bottomLine
  2699. strChecked
  2700. topLine
  2701. strChecked
  2702. descr
  2703. strChecked
  2704. The position  is 1258,973.     he illustration above is 1560,1455. ag the object=
  2705. strChecked
  2706. n    ~    J
  2707. strChecked
  2708. strChecked
  2709. client
  2710. strChecked
  2711. strChecked
  2712. strChecked
  2713. ToolBook - POSITION.TBKign
  2714. strChecked
  2715. strChecked
  2716. strChecked
  2717. strChecked
  2718.  File   Edit   View  Page  Object  Draw
  2719. strChecked
  2720. 9733page
  2721. yline
  2722. client
  2723. endpoint
  2724. endpoint 
  2725. value
  2726. Znewb
  2727.     cb = 
  2728. client
  2729.     xpix = 
  2730. sysPageUnitsPerPixel
  2731.     ypix = 
  2732.     b = 
  2733.     w = 
  2734.     v1 = x - w 
  2735.     v2 = 
  2736. cb + 
  2737.     v3 = v1+w
  2738.     v4 = y - 
  2739.     fref = 
  2740.     sz = 
  2741.     fpos = v3 + 
  2742. *2,v2+(v4-v2)
  2743. y2 - 
  2744. v4 - v2
  2745. strChecked
  2746. strChecked
  2747. centerLine
  2748. strChecked
  2749. xline
  2750. client
  2751. endpoint
  2752. endpoint 
  2753. value
  2754. Znewb
  2755.     xpix = 
  2756. sysPageUnitsPerPixel
  2757.     ypix = 
  2758.     cb = 
  2759. client
  2760.     b = 
  2761.     h = 
  2762.     v1 = 
  2763. cb + 
  2764.     v2 = y - h 
  2765.     v3 = x - 
  2766.     v4 = v2 + h
  2767.     fref = 
  2768.     sz = 
  2769.     fpos = v1+(v3-v1)
  2770. y2 - 
  2771. y2,v4 + 
  2772. v3 - v1
  2773. strChecked
  2774. strChecked
  2775. centerLine
  2776. strChecked
  2777. strChecked
  2778. 1258page
  2779. strChecked
  2780. strChecked
  2781. strChecked
  2782. false
  2783. false
  2784. Topics
  2785. strChecked
  2786. strChecked
  2787. out,true
  2788. ThreeDeeRect
  2789. strChecked
  2790. strChecked
  2791. bottomLine
  2792. strChecked
  2793. topLine
  2794. strChecked
  2795. out,true
  2796. ThreeDeeRect
  2797. strChecked
  2798. strChecked
  2799. bottomLine
  2800. strChecked
  2801. topLine
  2802. strChecked
  2803. strChecked
  2804. strChecked
  2805. strChecked
  2806. strChecked
  2807. strChecked
  2808. strChecked
  2809. in,true
  2810. ThreeDeeRect
  2811. strChecked
  2812. strChecked
  2813. bottomLine
  2814. strChecked
  2815. topLine
  2816. strChecked
  2817. strChecked
  2818. strChecked
  2819. topicLabel
  2820. raisedField
  2821. tbk_wid_name
  2822. faceColor
  2823. highlightColor
  2824. shadowColor
  2825. tbk_wid_props
  2826. color,hls
  2827. color,hls
  2828. color,hls
  2829. tbk_wid_values
  2830. strChecked
  2831. highlight
  2832. strChecked
  2833. Fish tankation sysbook
  2834. shadow
  2835. strChecked
  2836. Fish tankation sysbook
  2837. strChecked
  2838. Fish tankation sysbook
  2839. Script recorder
  2840. label
  2841. myChapterID
  2842. visited
  2843. You can animate objects without writing scripts yourself by using the script recorder. This is useful when you want to animate one or more objects along an arbitrary path.
  2844. How to use the script recorder
  2845. When to use the script recorder
  2846. The animation to the right was created using the script recorder.
  2847. scriptRecorderPopup
  2848. buttonclick
  2849. buttonclick
  2850. "scriptRecorderPopup"
  2851. strChecked
  2852. strChecked
  2853. scriptRecorderPopup2
  2854. buttonclick
  2855. buttonclick
  2856. "scriptRecorderPopup2"
  2857. strChecked
  2858. strChecked
  2859. strChecked
  2860. strChecked
  2861. ThreeDeeRect
  2862. out,true
  2863. strChecked
  2864. strChecked
  2865. bottomLine
  2866. strChecked
  2867. topLine
  2868. strChecked
  2869. strChecked
  2870. ThreeDeeRect
  2871. in,true
  2872. strChecked
  2873. strChecked
  2874. bottomLine
  2875. strChecked
  2876. topLine
  2877. strChecked
  2878. balloonpath
  2879. strChecked
  2880. cloudpath
  2881. strChecked
  2882. cloud
  2883. strChecked
  2884. strChecked
  2885. strChecked
  2886. strChecked
  2887. ThreeDeeRect
  2888. out,false
  2889. strChecked
  2890. strChecked
  2891. bottomLine
  2892. strChecked
  2893. topLine
  2894. strChecked
  2895. strChecked
  2896. strChecked
  2897. strChecked
  2898. strChecked
  2899. strChecked
  2900. strChecked
  2901. strChecked
  2902. strChecked
  2903. strChecked
  2904. strChecked
  2905. strChecked
  2906. strChecked
  2907. strChecked
  2908. Animate
  2909. balloon
  2910. strChecked
  2911. &Button
  2912. false
  2913. false
  2914. 3DD;3
  2915. Move command
  2916. label
  2917. myChapterID
  2918. visited
  2919. Moving an object involves setting its position property for each step of the animation. Usually this is accomplished in a loop structure, such as step or while.
  2920. The commands to use for moving an object are move to and move by.
  2921. Toolbook uses page units as the unit of measure to specify position.%
  2922. pageUnitsPopup
  2923. buttonclick
  2924. buttonclick
  2925. "pageUnitsPopup"
  2926. strChecked
  2927. strChecked
  2928. Move <object> to <position>
  2929. This command moves the specified object to the position supplied, for example:
  2930.    move polygon "x" to 0,0
  2931. Moves it to the upper-left corner of the screen.een..
  2932. raisedField
  2933. tbk_wid_name
  2934. faceColor
  2935. highlightColor
  2936. shadowColor
  2937. tbk_wid_props
  2938. color,hls
  2939. color,hls
  2940. color,hls
  2941. tbk_wid_values
  2942. strChecked
  2943. highlight
  2944. strChecked
  2945. move toe Commandperty
  2946. shadow
  2947. strChecked
  2948. move toe Commandperty
  2949. *    :    J
  2950. strChecked
  2951. move toe Commandperty
  2952. raisedField
  2953. tbk_wid_name
  2954. faceColor
  2955. highlightColor
  2956. shadowColor
  2957. tbk_wid_props
  2958. color,hls
  2959. color,hls
  2960. color,hls
  2961. tbk_wid_values
  2962. strChecked
  2963. highlight
  2964. strChecked
  2965. move bye Commandperty
  2966. shadow
  2967. strChecked
  2968. move bye Commandperty
  2969. strChecked
  2970. move bye Commandperty
  2971. strChecked
  2972. Move <object> by <amount>
  2973. This command moves the object by the x and y amounts supplied, for example:
  2974.    move polygon "x" by 45,60
  2975. Moves it 45 page units to the right and 60 down.  s downits down
  2976. false
  2977. false
  2978. Move to command
  2979. label
  2980. myChapterID
  2981. visited
  2982. Use move to to move an object to a specific place. This is useful when the animated path of one object is relative to the positions of other objects.
  2983. The example at the right shows a moon orbiting a planet. The path that the moon follows is not an ellipse; it's a polygon with 50 vertices. The example script simply moves the moon object to each vertex of the polygon, one after the other.
  2984. out,true
  2985. ThreeDeeRect
  2986. strChecked
  2987. strChecked
  2988. bottomLine
  2989. strChecked
  2990. topLine
  2991. strChecked
  2992. in,true
  2993. ThreeDeeRect
  2994. strChecked
  2995. strChecked
  2996. bottomLine
  2997. strChecked
  2998. topLine
  2999. strChecked
  3000. orbit
  3001. strChecked
  3002. strChecked
  3003. strChecked
  3004. strChecked
  3005. strChecked
  3006. strChecked
  3007. strChecked
  3008. strChecked
  3009. strChecked
  3010. out,false
  3011. ThreeDeeRect
  3012. strChecked
  3013. strChecked
  3014. bottomLine
  3015. strChecked
  3016. topLine
  3017. strChecked
  3018. strChecked
  3019. strChecked
  3020. strChecked
  3021. strChecked
  3022. strChecked
  3023. strChecked
  3024. strChecked
  3025. strChecked
  3026. strChecked
  3027. strChecked
  3028. strChecked
  3029. strChecked
  3030. .animate
  3031. buttondown
  3032. orbit
  3033. moonRef
  3034. animate
  3035.     -- sends the animate message 
  3036. -- moves 
  3037. along 
  3038.     -- optimization: store 
  3039. {reference 
  3040. %we will
  3041.     -- be refering 
  3042.     moonRef = 
  3043.     sz = 
  3044.     -- we are going 
  3045. walk 
  3046. , so let's
  3047.     -- cache them 
  3048.     vs = 
  3049. "orbit"
  3050. come 
  3051. a list 
  3052. pairs 
  3053.     -- one 
  3054. each vertex. For 
  3055. iteration 
  3056. loop, 
  3057.     -- we 
  3058.  grab 
  3059. y positions 
  3060. E, subtract half
  3061. ball's 
  3062. positioning relative 
  3063. that 
  3064. (vs) 
  3065. strChecked
  3066. Animate
  3067. false
  3068. false
  3069. Move by command
  3070. label
  3071. myChapterID
  3072. visited
  3073. Use the move by command when you want to move an object relative to its current position. For example, the command "move rectangle id 1 by 45,90" would move this object 45 page units to the right and 90 page units down.
  3074. This example uses move by in a loop to move the golf ball into the hole. The amount that the ball moves for each loop is calculated from the positions of the two objects. Note that the ball goes into the hole no matter where it starts from.
  3075. out,true
  3076. ThreeDeeRect
  3077. strChecked
  3078. strChecked
  3079. bottomLine
  3080. strChecked
  3081. topLine
  3082. strChecked
  3083. in,true
  3084. ThreeDeeRect
  3085. strChecked
  3086. strChecked
  3087. bottomLine
  3088. strChecked
  3089. topLine
  3090. strChecked
  3091. green
  3092. j    z    J
  3093. strChecked
  3094. strChecked
  3095. strChecked
  3096. strChecked
  3097. strChecked
  3098. strChecked
  3099. out,false
  3100. ThreeDeeRect
  3101. strChecked
  3102. strChecked
  3103. bottomLine
  3104. strChecked
  3105. topLine
  3106. strChecked
  3107. strChecked
  3108. strChecked
  3109. strChecked
  3110. strChecked
  3111. strChecked
  3112. strChecked
  3113. strChecked
  3114. strChecked
  3115. strChecked
  3116. strChecked
  3117. strChecked
  3118. strChecked
  3119. strChecked
  3120. Animate
  3121. false
  3122. false
  3123. Moving on idle
  3124. label
  3125. myChapterID
  3126. visited
  3127. Whenever ToolBook is not running scripts, it receives the idle  message. If you want an animation to run constantly while nothing else is happening, trigger each step of the animation upon the idle message. 
  3128. The advantage to animation driven by the idle message is that you can interrupt the animation at any time to interact with other parts of the application. The key is to handle only one "step" of the animation per execution of the idle handler.handler.
  3129. in,true
  3130. ThreeDeeRect
  3131. strChecked
  3132. ballbounds
  3133. strChecked
  3134. bottomLine
  3135. strChecked
  3136. topLine
  3137. strChecked
  3138. in,true
  3139. ThreeDeeRect
  3140. strChecked
  3141. strChecked
  3142. bottomLine
  3143. strChecked
  3144. topLine
  3145. strChecked
  3146. strChecked
  3147. The bouncing ball moves by a small amount upon each execution of the idle handler. Note that you can press any of the buttons on the tool bar or go to another application at any time.during this animation.
  3148. elapsedTime
  3149. curDir
  3150. vector
  3151. maxBounce
  3152. 150,15,-1
  3153. myInfo
  3154. strChecked
  3155. false
  3156. false
  3157. tableOfContents
  3158. myChapter
  3159. myPages
  3160. chapterCount
  3161. topicCount
  3162. false
  3163. visited
  3164. 24,27
  3165. selectChars
  3166. strChecked
  3167. tableOfContents
  3168. strChecked
  3169. 60,Cats
  3170. 68,Dogs
  3171. pageList
  3172. strChecked
  3173. chapter1
  3174. strChecked
  3175. pageID
  3176. Moving objectser
  3177. check1
  3178. strChecked
  3179. strChecked
  3180. chapter2
  3181. strChecked
  3182. pageID
  3183. Frame animation
  3184. check2
  3185. strChecked
  3186. strChecked
  3187. chapter3
  3188. Timing Animation                                        66
  3189. Simulating Gravity                                        67
  3190. topics
  3191. strChecked
  3192. pageID
  3193. Useful scriptsn
  3194. check3
  3195. strChecked
  3196. strChecked
  3197. chapter4
  3198. Chickens                                        26
  3199. Goats                                        25
  3200. topics
  3201. pageID
  3202. strChecked
  3203. Using path animation
  3204. check4
  3205. strChecked
  3206. strChecked
  3207. chapter5
  3208. strChecked
  3209. pageID
  3210. Untitled
  3211. check5
  3212. strChecked
  3213. strChecked
  3214. chapter6
  3215. strChecked
  3216. check6
  3217. strChecked
  3218. strChecked
  3219. chapter7
  3220. strChecked
  3221. check7
  3222. strChecked
  3223. strChecked
  3224. chapter8
  3225. strChecked
  3226. check8
  3227. strChecked
  3228. in,true
  3229. ThreeDeeRect
  3230. strChecked
  3231. strChecked
  3232. bottomLine
  3233. strChecked
  3234. topLine
  3235. strChecked
  3236. strChecked
  3237. This book shows you various techniques for animating objects, with and without writing handlers.
  3238. strChecked
  3239. minute
  3240. strChecked
  3241. counter
  3242. strChecked
  3243. enterpage
  3244. 13,14,15
  3245. f@^@^@
  3246. How it works
  3247. label
  3248. myChapterID
  3249. visited
  3250. To create frame animation, you display a series of images quickly in sequence, each one slightly different than the one preceding it. The differences between the frames cause the object's apparent movement.
  3251. The animation at the top is a series of sixteen paint objects, shown individually below.
  3252. strChecked
  3253. out,true
  3254. ThreeDeeRect
  3255. strChecked
  3256. strChecked
  3257. bottomLine
  3258. strChecked
  3259. topLine
  3260. strChecked
  3261. strChecked
  3262. strChecked
  3263. out,true
  3264. ThreeDeeRect
  3265. strChecked
  3266. <    L    J
  3267. strChecked
  3268. bottomLine
  3269. strChecked
  3270. topLine
  3271. strChecked
  3272. strChecked
  3273. strChecked
  3274. strChecked
  3275. strChecked
  3276. curFrame
  3277. myCurFrame
  3278. myCurFrame
  3279. newFrame
  3280. hides 
  3281. shows frames (paintobjects) 
  3282. the globe animation.
  3283. -- The paintObjects are named "1" 
  3284. notifybefore 
  3285.     numFrames = 16 -- 
  3286.     curFrame = myCurFrame 
  3287. -- currently showing 
  3288.     newFrame = 
  3289.     -- store 
  3290. myCurFrame
  3291. strChecked
  3292. strChecked
  3293. strChecked
  3294. strChecked
  3295. strChecked
  3296. strChecked
  3297. strChecked
  3298. strChecked
  3299. strChecked
  3300. strChecked
  3301. strChecked
  3302. strChecked
  3303. strChecked
  3304. strChecked
  3305. strChecked
  3306. strChecked
  3307. *!:!J
  3308. strChecked
  3309. strChecked
  3310. strChecked
  3311.  #0#J
  3312. strChecked
  3313. in,true
  3314. ThreeDeeRect
  3315. strChecked
  3316. f$v$J
  3317. strChecked
  3318. bottomLine
  3319. strChecked
  3320. P#b%n%
  3321. topLine
  3322. strChecked
  3323. widget slows down everything, 
  3324. notifybefore 
  3325. lastTime
  3326. strChecked
  3327. Slow-Mo
  3328. in,true
  3329. ThreeDeeRect
  3330. strChecked
  3331. ,(<(J
  3332. strChecked
  3333. bottomLine
  3334. strChecked
  3335. '()4)
  3336. topLine
  3337. \)l)J
  3338. strChecked
  3339. strChecked
  3340. This globe animation is  a series of paintObjects, shown one after the other.......the other.
  3341. curFrame
  3342. myCurFrame
  3343. mycurframe
  3344. highlight
  3345. newFrame
  3346. moves the 
  3347. over 
  3348. appropriate globe.
  3349. "globes are 
  3350. numbered "1" 
  3351. notifybefore 
  3352.     numFrames = 16 -- 
  3353. paintObjects
  3354. current 
  3355. showing:
  3356.     curFrame = mycurframe 
  3357.     newFrame = 
  3358. myCurFrame 
  3359. <-L-J
  3360. myCurFrame
  3361. strChecked
  3362. *f.l.
  3363. strChecked
  3364. strChecked
  3365. strChecked
  3366. strChecked
  3367. strChecked
  3368. strChecked
  3369. strChecked
  3370. .6>6J
  3371. strChecked
  3372. D7T7J
  3373. strChecked
  3374. *,848
  3375. \8l8J
  3376. strChecked
  3377. *D9L9
  3378. strChecked
  3379. *\:d:
  3380. strChecked
  3381. *t;|;
  3382. strChecked
  3383. strChecked
  3384. strChecked
  3385. strChecked
  3386. highlight
  3387. strChecked
  3388. false
  3389. false
  3390. Hiding and showing
  3391. label
  3392. myChapterID
  3393. visited
  3394. A common method for creating frame animation is to hide and show objects in a group using the hide and show commands.
  3395. This animation hides and shows one paint object after another. Each paint object shows the dog in a different position. A user property of the group keeps track of which frame is currently shown.
  3396. out,true
  3397. ThreeDeeRect
  3398. strChecked
  3399. strChecked
  3400. bottomLine
  3401. strChecked
  3402. topLine
  3403. strChecked
  3404. curFrame
  3405. myCurFrame
  3406. myCurFrame
  3407. newFrame
  3408. -- This handler controls the animation 
  3409. -- The 
  3410. consists 
  3411. 18 paintobjects, named 
  3412. -- 1 
  3413. 18, respectively. For each execution 
  3414. (sent constantly 
  3415. mode) 
  3416. advanced one frame.
  3417. currently shown 
  3418. stored 
  3419. %a userProperty
  3420. notifybefore 
  3421.     numFrames = 18 -- 
  3422. paintObjects
  3423. ping 
  3424.     curFrame = myCurFrame 
  3425.     -- calculate 
  3426.     newFrame = 
  3427.  so we know what 
  3428. h    t    (
  3429. curdog
  3430. lastTime
  3431. myCurFrame
  3432. strChecked
  3433. strChecked
  3434. strChecked
  3435. strChecked
  3436. strChecked
  3437. strChecked
  3438. strChecked
  3439. strChecked
  3440. strChecked
  3441. strChecked
  3442. strChecked
  3443. strChecked
  3444. strChecked
  3445. strChecked
  3446. strChecked
  3447. strChecked
  3448. strChecked
  3449. strChecked
  3450. strChecked
  3451. strChecked
  3452. in,true
  3453. ThreeDeeRect
  3454. strChecked
  3455. strChecked
  3456. bottomLine
  3457. h x J
  3458. strChecked
  3459. topLine
  3460. strChecked
  3461. strChecked
  3462. The running dog above is a series of 18 frames, shown one after the other.  Small differences in the t at least 30 milliseconds have passed before displaying the next frame.  This way, no more that 24 frames per second
  3463. false
  3464. false
  3465. 4458q
  3466. xt414
  3467. wWsOO
  3468. 86110
  3469. 7ssp4
  3470. x?OHuOVS`1
  3471. _E7787
  3472. pMaeo
  3473. dd788
  3474. W6OO8
  3475. 7885OOW
  3476. xsOOCh
  3477. VVS_p
  3478. oOO?x
  3479. OOcco
  3480. v6Wv7
  3481. sVV6x
  3482. s/OOg
  3483. 86V8    
  3484. 6VVQc
  3485. oOO?ss
  3486. OOV?Fs
  3487. 1!!/p
  3488. 6VVOp
  3489. Animating buttons
  3490. label
  3491. myChapterID
  3492. false
  3493. visited
  3494. Buttons can display bitmap resources, which are stored in the book. In its normal state, a button displays the bitmap resource specified by its normalGraphic property. When you press the button, the button displays its invertGraphic. You can use these properties to create an animation effect.
  3495. The button on the right displays an animation when clicked.K
  3496. in,true
  3497. ThreeDeeRect
  3498. bottomLine
  3499. topLine
  3500. This button has two frames of animation: one specified by its normalGraphic, the other specified by its invertGraphic, which is displayed when clicked.
  3501. 5bookref
  3502. ,%H.%
  3503. ,%H.%
  3504. false
  3505. 5bookref
  3506. found
  3507. 5bookref
  3508. notifyBefore 
  3509. normalgraphic 
  3510. k4 + 1
  3511. bitmap ("cd"&
  3512.         bookref 
  3513. notifyAfter 
  3514.         bref = 
  3515.             rl = resourceList("
  3516. found = 
  3517. rl) = "cd"&i
  3518. C:\HOOK\CBT\NEWANIM.TBK
  3519. bookref
  3520. in,true
  3521. ThreeDeeRect
  3522. bottomLine
  3523. topLine
  3524. These buttons set their normalGraphic property to a series of images.lGraphic, the other specified by its invertGraphic. 
  3525. arrow
  3526. 5bookref
  3527. ,%H.%
  3528. ,%H.%
  3529. false
  3530. 5bookref
  3531. found
  3532. 5bookref
  3533. arrow
  3534. notifyBefore 
  3535. normalgraphic 
  3536. k6 + 1
  3537. bitmap ("arrow"&
  3538.         bookref 
  3539. notifyAfter 
  3540.         bref = 
  3541.             rl = resourceList("
  3542. found = 
  3543. rl) = "
  3544. C:\HOOK\CBT\NEWANIM.TBK
  3545. bookref
  3546. false
  3547. Animating with color
  3548. label
  3549. myChapterID
  3550. false
  3551. visited
  3552. Not all animation involves moving or hiding objects. You can create an animation just by setting the colors of various objects.
  3553. The object representing the TV screen has a script that cycles its rgbFill property through 512 colors of the RGB spectrum.
  3554. Each panel of the colorful sculpture on the right cycles through four colors.
  3555. out,true
  3556. ThreeDeeRect
  3557. strChecked
  3558. strChecked
  3559. bottomLine
  3560. strChecked
  3561. topLine
  3562. strChecked
  3563. in,true
  3564. ThreeDeeRect
  3565. strChecked
  3566. strChecked
  3567. bottomLine
  3568. strChecked
  3569. topLine
  3570. &    6    J
  3571. strChecked
  3572. strChecked
  3573. strChecked
  3574. strChecked
  3575. strChecked
  3576. strChecked
  3577. strChecked
  3578. strChecked
  3579. strChecked
  3580. strChecked
  3581. strChecked
  3582. strChecked
  3583. curColor
  3584. fucurColor
  3585. gucurColor
  3586. notifybefore 
  3587. Zcolorlist[4]
  3588. 1]=128,128,0
  3589. 2]=255,0,255
  3590. +3]=0,128,128
  3591. ;=0,255,0
  3592.     curColor = 
  3593. k4 + 1
  3594. orgbfill 
  3595. colorList[
  3596. curColor
  3597. strChecked
  3598. curColor
  3599. fucurColor
  3600. gucurColor
  3601. notifybefore 
  3602. Zcolorlist[4]
  3603. 1]=128,128,0
  3604. 2]=255,0,255
  3605. +3]=0,128,128
  3606. ;=0,255,0
  3607.     curColor = 
  3608. k4 + 1
  3609. orgbfill 
  3610. colorList[
  3611. curColor
  3612. strChecked
  3613. curColor
  3614. fucurColor
  3615. gucurColor
  3616. -- cycles through four colors
  3617. notifybefore 
  3618. Zcolorlist[4]
  3619. 1]=128,128,0
  3620. 2]=255,0,255
  3621. +3]=0,128,128
  3622. ;=0,255,0
  3623.     curColor = 
  3624. k4 + 1
  3625. orgbfill 
  3626. colorList[
  3627. curColor
  3628. strChecked
  3629. curColor
  3630. fucurColor
  3631. gucurColor
  3632. notifybefore 
  3633. Zcolorlist[4]
  3634. 1]=128,128,0
  3635. 2]=255,0,255
  3636. +3]=0,128,128
  3637. ;=0,255,0
  3638.     curColor = 
  3639. k4 + 1
  3640. orgbfill 
  3641. colorList[
  3642. curColor
  3643. strChecked
  3644. strChecked
  3645. strChecked
  3646. strChecked
  3647. strChecked
  3648. strChecked
  3649. strChecked
  3650. strChecked
  3651. strChecked
  3652. strChecked
  3653. strChecked
  3654.  "0"J
  3655. strChecked
  3656. strChecked
  3657.  #0#J
  3658. strChecked
  3659. strChecked
  3660. 6$F$J
  3661. strChecked
  3662. strChecked
  3663. L%\%J
  3664. strChecked
  3665. strChecked
  3666. strChecked
  3667. strChecked
  3668. strChecked
  3669. strChecked
  3670. strChecked
  3671. J)Z)J
  3672. strChecked
  3673. strChecked
  3674. >*N*J
  3675. strChecked
  3676. strChecked
  3677. 2+B+J
  3678. strChecked
  3679. strChecked
  3680. .&,    "
  3681. .&,    "
  3682. oplastTime
  3683. timegettime
  3684. -- cycle through 512 colors 
  3685. the rgb spectrum.
  3686. notifybefore 
  3687.     inc = 32 -- amount 
  3688. each 
  3689. orgbfill
  3690.     r = (r+
  3691.         g = (g+
  3692.             b = (b+
  3693. lastTime 
  3694. timegettime()
  3695. N/^/J
  3696. n/z/mp
  3697. strChecked
  3698. lastTime
  3699. strChecked
  3700. o    P3&
  3701. strChecked
  3702. J1Z1J
  3703. strChecked
  3704. strChecked
  3705. strChecked
  3706. strChecked
  3707. strChecked
  3708. 04@4J
  3709. strChecked
  3710. strChecked
  3711. b5r5J
  3712. strChecked
  3713. "626J
  3714. strChecked
  3715. strChecked
  3716. B7R7J
  3717. strChecked
  3718. strChecked
  3719. f8v8J
  3720. strChecked
  3721. &969J
  3722. strChecked
  3723. false
  3724. strChecked
  3725. &969J
  3726. strChecked
  3727. false
  3728. Simulating gravity
  3729. label
  3730. myChapterID
  3731. false
  3732. visited
  3733. This page has a useful handler for animating falling objects. You provide the handler with the object that you want to "drop," how tall that object is supposed to be, where the ground is, and the starting speed of the object.
  3734. Press the Animate button on the right to see a demonstration.{
  3735. out,true
  3736. ThreeDeeRect
  3737. strChecked
  3738. strChecked
  3739. bottomLine
  3740. strChecked
  3741. topLine
  3742. strChecked
  3743. in,true
  3744. ThreeDeeRect
  3745. strChecked
  3746. strChecked
  3747. bottomLine
  3748. strChecked
  3749. topLine
  3750. strChecked
  3751. ground
  3752. strChecked
  3753. V    f    J
  3754. strChecked
  3755. .animate
  3756. buttondown
  3757. animate message, handled 
  3758. strChecked
  3759. out,false
  3760. ThreeDeeRect
  3761. strChecked
  3762. strChecked
  3763. bottomLine
  3764. strChecked
  3765. topLine
  3766. strChecked
  3767. strChecked
  3768. strChecked
  3769. strChecked
  3770. strChecked
  3771. strChecked
  3772. strChecked
  3773. strChecked
  3774. strChecked
  3775. strChecked
  3776. strChecked
  3777. strChecked
  3778. strChecked
  3779. strChecked
  3780. Animate
  3781. thought
  3782. strChecked
  3783. thought5
  3784. strChecked
  3785. thought4
  3786. strChecked
  3787. thought3
  3788. strChecked
  3789. thought2
  3790. strChecked
  3791. thought1
  3792. strChecked
  3793. ground
  3794. finaly
  3795. accelerate
  3796. animate
  3797. animate
  3798.     finaly = 
  3799. U"ground"
  3800. accelerate 
  3801. ,2,finalY
  3802. ,1.5,
  3803. 5625,684
  3804. origloc
  3805. strChecked
  3806. strChecked
  3807. strChecked
  3808. strChecked
  3809. false
  3810. 131316=1
  3811. 14;;?
  3812. 1@@I;
  3813. 6@@9@
  3814. =    10w
  3815. 11;11
  3816. wq3Q91
  3817. wws    ;
  3818. `5;30
  3819. `;053
  3820. 1AV;1
  3821. V\VLVLV\
  3822. F\F\VLV\VE
  3823. eieieieie
  3824. ieieieieie
  3825. ieieieieie
  3826. ieieieieie
  3827. ieieie`
  3828. `ieieieie
  3829. ieieieieie
  3830. ieieieieie
  3831. ieieieieie
  3832. ieiei`0
  3833. PP!@    
  3834. AVxP`
  3835. pwG?p
  3836. VTTVTVTP
  3837. 991911
  3838. `ieieieie
  3839. ieieieieie
  3840. ieieieieie
  3841. iee    5
  3842. eieieieie
  3843. ieieieieie
  3844. ieieieie
  3845. v#n#n#
  3846. Timing animation
  3847. label
  3848. myChapterID
  3849. visited
  3850. When you want animation to move at a particular speed regardless of the machine it's on, you can write a handler to check the time during the animation process.
  3851. The function timeGetTime() in the mmsystem DLL file is useful for this purpose.  This function returns the time in milliseconds. The mmsystem DLL comes with Windows 3.1.
  3852. out,true
  3853. ThreeDeeRect
  3854. strChecked
  3855. strChecked
  3856. bottomLine
  3857. strChecked
  3858. topLine
  3859. strChecked
  3860. in,true
  3861. ThreeDeeRect
  3862. strChecked
  3863. strChecked
  3864. bottomLine
  3865. strChecked
  3866. topLine
  3867. strChecked
  3868. strChecked
  3869. The animated globe above is a series of 16 frames. The buttons controlling its speed set a user property of the globe called Delay to various values (0 for "Fast," 60 for "medium," and 120 for "Slow"). The script in the globe checks to see if at least that many milliseconds have passed before displaying the next frame....
  3870. speedControl
  3871. strChecked
  3872. globe
  3873. delay
  3874. buttonclick
  3875. buttonclick
  3876. delay 
  3877. "globe" 
  3878. strChecked
  3879. Fa&st
  3880. globe
  3881. delay
  3882. buttonclick
  3883. buttonclick
  3884. delay 
  3885. "globe" 
  3886. strChecked
  3887. &Medium
  3888. globe
  3889. delay
  3890. buttonclick
  3891. buttonclick
  3892. delay 
  3893. "globe" 
  3894. strChecked
  3895. Slo&w
  3896. strChecked
  3897. globe
  3898. 4478050,10,0
  3899. strChecked
  3900. strChecked
  3901. strChecked
  3902. strChecked
  3903. strChecked
  3904. strChecked
  3905. strChecked
  3906. strChecked
  3907. strChecked
  3908. strChecked
  3909. strChecked
  3910. strChecked
  3911. strChecked
  3912. strChecked
  3913. strChecked
  3914. strChecked
  3915. strChecked
  3916. enterpage
  3917. false
  3918. false
  3919. xwwxxwwxx
  3920. wwxxwwxxww
  3921. xxwwxxwwxx
  3922. wwxxwwxxwp
  3923. xwwxxwwxx
  3924. wwxxwwxxww
  3925. xxwwxxwwxx
  3926. wwxxwwxxwp
  3927. Moving along a line
  3928. label
  3929. myChapterID
  3930. false
  3931. visited
  3932. Often, you just want to move an object along a straight line. This page contains a handler for doing that. You pass it the object you want to move, the line that you want to move the object along, and how many steps you want to take along the line.
  3933. Note that this handler will move an object along angled lines as well. Once you've positioned the guiding lines, you can hide them.
  3934. strChecked
  3935. PmoveObjectAlongPath
  3936. buttonclick
  3937. buttonclick
  3938.     -- sends message handled 
  3939. moveObjectAlongPath 
  3940. m"path",15
  3941. strChecked
  3942. in,true
  3943. ThreeDeeRect
  3944. strChecked
  3945. strChecked
  3946. bottomLine
  3947. strChecked
  3948. topLine
  3949. strChecked
  3950. strChecked
  3951. Click each of the ellipses above to see them move along their respective paths.
  3952. PmoveObjectAlongPath
  3953. buttonclick
  3954. buttonclick
  3955.     -- sends message handled 
  3956. moveObjectAlongPath 
  3957. "yoyo",40
  3958. strChecked
  3959. false
  3960. strChecked
  3961. out,true
  3962. ThreeDeeRect
  3963. strChecked
  3964. strChecked
  3965. bottomLine
  3966. strChecked
  3967. topLine
  3968. strChecked
  3969. out,true
  3970. ThreeDeeRect
  3971. strChecked
  3972. strChecked
  3973. bottomLine
  3974. strChecked
  3975. topLine
  3976. strChecked
  3977. topic
  3978. raisedField
  3979. tbk_wid_name
  3980. faceColor
  3981. highlightColor
  3982. shadowColor
  3983. tbk_wid_props
  3984. color,hls
  3985. color,hls
  3986. color,hls
  3987. tbk_wid_values
  3988. strChecked
  3989. highlight
  3990. strChecked
  3991. Table of contents
  3992. shadow
  3993. strChecked
  3994. Table of contents
  3995. strChecked
  3996. Table of contents
  3997. strChecked
  3998. Click on one of the topics below to view information on that subject.ubject.
  3999. 9501231240478869342129136941
  4000. 9501231240478869342129136941
  4001. ASYM_TpID
  4002. toolbar
  4003. ThreeDeeRect
  4004. out,true
  4005. bottomLine
  4006. topLine
  4007. strChecked
  4008. strChecked
  4009. strChecked
  4010. strChecked
  4011. strChecked
  4012. 9501231240478869454215319529
  4013. 9501231240478869454215319529
  4014. ASYM_TpID
  4015. -4,462,-31,521,28,312,-13,371,46,161,-4,220,55
  4016. 59,59
  4017. 59,59
  4018. anim_animationSettings
  4019. Electron 1
  4020. MplayAnimation
  4021. animSysbookLoaded
  4022. enterpage
  4023. ZstopAnimation
  4024. animSysbookLoaded
  4025. leavePage
  4026. notifyBefore 
  4027. animSysbookLoaded()
  4028. playAnimation 1 
  4029. stopAnimation
  4030. anim_animationSettings
  4031. Electron 3
  4032. MplayAnimation
  4033. animSysbookLoaded
  4034. enterpage
  4035. ZstopAnimation
  4036. animSysbookLoaded
  4037. leavePage
  4038. notifyBefore 
  4039. animSysbookLoaded()
  4040. playAnimation 1 
  4041. stopAnimation
  4042. 0,0,-105,15,-285,-45,-495,-225,-780,-465,-960,-675,-1080,-915,-1095,-1005,-1020,-1050,-900,-1020,-585,-840,-270,-510,-165,-360,-75,-195,0,-45
  4043. ,,,,,,,,,,,,,,
  4044. Constant
  4045. FALSE
  4046. FALSE
  4047. 6825,4755
  4048. 0,0,59,59,-104,15,-45,74,-204,-18,-145,41,-300,-57,-241,2,-379,-126,-320,-67,-459,-194,-400,-135,-539,-262,-480,-203,-619,-330,-560,-271,-700,-397,-641,-338,-780,-465,-721,-406,-848,-545,-789,-486,-917,-624,-858,-565,-977,-709,-918,-650,-1024,-803,-965,-744,-1071,-897,-1012,-838,-1094,-999,-1035,-940,-1009,-1047,-950,-988,-907,-1022,-848,-963,-815,-972,-756,-913,-724,-919,-665,-860,-633,-867,-574,-808,-551,-804,-492,-745,-478,-728,-419,-669,-406,-652,-347,-593,-333,-576,-274,-517,-262,-499,-203,-440,-202,-413,-143,-354,-146,-324,-87,-265,-95,-232,-36,-173,-47,-139,12,-80,0,-45,59,14
  4049. FALSE
  4050. 59,59
  4051. 59,59
  4052. anim_animationSettings
  4053. Electron 4
  4054. MplayAnimation
  4055. animSysbookLoaded
  4056. enterpage
  4057. ZstopAnimation
  4058. animSysbookLoaded
  4059. leavePage
  4060. notifyBefore 
  4061. animSysbookLoaded()
  4062. playAnimation 1 
  4063. stopAnimation
  4064. anim_animationSettings
  4065. enterpage
  4066. leavePage
  4067. 40,37,39,41
  4068. 0,0,-15,-735,180,-780,360,-735,390,0,360,765,180,795,15,765,0,0
  4069. ,true,,true,,true,,true
  4070. Constant
  4071. FALSE
  4072. FALSE
  4073. 6072,4234
  4074. 0,0,59,59,-1,-44,58,15,-1,-89,58,-30,-1,-133,58,-74,0,-178,59,-119,1,-222,60,-163,2,-267,61,-208,5,-311,64,-252,8,-355,67,-296,12,-400,71,-341,17,-444,76,-385,23,-488,82,-429,31,-532,90,-473,41,-575,100,-516,52,-618,111,-559,67,-660,126,-601,86,-700,145,-641,112,-736,171,-677,145,-765,204,-706,186,-778,245,-719,225,-756,284,-697,254,-723,313,-664,277,-686,336,-627,296,-645,355,-586,311,-603,370,-544,323,-561,382,-502,334,-518,393,-459,343,-474,402,-415,351,-430,410,-371,358,-386,417,-327,363,-342,422,-283,369,-298,428,-239,373,-254,432,-195,378,-210,437,-151,381,-165,440,-106,384,-121,443,-62,387,-77,446,-18,389,-32,448,27,390,12,449,71,388,57,447,116,385,101,444,160,383,145,442,204,379,190,438,249,376,234,435,293,372,278,431,337,367,323,426,382,362,367,421,426,356,411,415,470,349,455,408,514,341,498,400,557,332,542,391,601,322,585,381,644,309,628,368,687,294,670,353,729,275,710,334,769,251,747,310,806,220,778,279,837,179,795,238,854,140,775,199,834,111,741,170,800,91,702,150,761,75,661,134,720,62,618,121,677,52,575,111,634,42,531,101,590,35,487,94,546,29,443,88,502,24,399,83,458,19,355,78,414,15,311,74,370,11,266,70,325,8,222,67,281,6,178,65,237,4,133,63,192,3,89,62,148,1,44,60,103
  4075. 59,59
  4076. 59,59
  4077. 0,0,15,-105,120,-285,240,-465,435,-705,615,-855,780,-960,975,-1050,1050,-1020,1050,-930,945,-690,660,-405,480,-240,330,-120,120,-15,15,15
  4078. ,,,,,,,,,,,,,,,
  4079. constant
  4080. FALSE
  4081. FALSE
  4082. 5745,4770
  4083. 0,0,59,59,10,-67,69,-8,29,-130,88,-71,63,-188,122,-129,97,-246,156,-187,133,-304,192,-245,170,-360,229,-301,207,-416,266,-357,245,-472,304,-413,288,-524,347,-465,330,-576,389,-517,373,-629,432,-570,415,-681,474,-622,463,-728,522,-669,515,-771,574,-712,566,-815,625,-756,619,-857,678,-798,675,-893,734,-834,732,-930,791,-871,790,-965,849,-906,851,-993,910,-934,912,-1021,971,-962,973,-1049,1032,-990,1036,-1026,1095,-967,1050,-968,1109,-909,1038,-903,1097,-844,1011,-841,1070,-782,984,-779,1043,-720,957,-717,1016,-658,919,-664,978,-605,871,-616,930,-557,823,-568,882,-509,776,-521,835,-462,728,-473,787,-414,680,-425,739,-366,631,-379,690,-320,582,-333,641,-274,532,-288,591,-229,482,-242,541,-183,430,-200,489,-141,377,-158,436,-99,324,-117,383,-58,263,-87,322,-28,203,-57,262,2,143,-26,202,33,80,-4,139,55
  4084. FALSE
  4085. 59,59
  4086. 59,59
  4087. Path animation sysbook
  4088. label
  4089. myChapterID
  4090. visited
  4091. Multimedia ToolBook comes with a sysbook that makes animations along paths easy to create and maintain. You can animate along straight or curved paths.
  4092. in,ms
  4093. ThreeDeeRect
  4094. bottomLine
  4095. topLine
  4096. in,ms
  4097. ThreeDeeRect
  4098. bottomLine
  4099. topLine
  4100. Here are two examples of the types of paths you can use.to  animation.
  4101. (( (     
  4102.  w{'w(w{ 
  4103. false
  4104. false
  4105. Fish tank
  4106. label
  4107. myChapterID
  4108. visited
  4109. In this example, several fish are animated along different paths across the screen.  The animations are set to loop continuously, so that the fish will endlessly complete the same cycle. The school of yellow fish was made by copying and pasting a single fish that was previously animated.
  4110. Each fish is a transparent bitmap with a white irregular polygon behind it as a mask.
  4111. in,ms
  4112. ThreeDeeRect
  4113. bottomLine
  4114. topLine
  4115. in,ms
  4116. ThreeDeeRect
  4117. bottomLine
  4118. topLine
  4119. placeholder
  4120. WjpositionChildViewer
  4121. <KinitAnimation
  4122. enterpage
  4123. endAnimation
  4124. leavepage
  4125. ,%H.%
  4126. newbnds
  4127. positionChildViewer
  4128. serves 
  4129. %the placeholder 
  4130. train animation 
  4131. -- on 
  4132. opens 
  4133. . On 
  4134. sends 
  4135. animate message
  4136. notifyAfter 
  4137. "tank"
  4138. initAnimation 
  4139. positionChildViewer 
  4140. -- close 
  4141. notifyBefore 
  4142. endAnimation 
  4143. isOpen 
  4144. -- sizes 
  4145. specified 
  4146. r childViewer, bnds
  4147.     newbnds= pageUnitsToClient(
  4148. strChecked
  4149. The aquatic scene below is actually taking place on another page in this book. A child viewer is displaying that page.
  4150. The rectangle behind the viewer has script to control its behavior.e rectangle behind it has script to control its behavior.
  4151. leavepage
  4152. enterpage
  4153. false
  4154. false
  4155. EKG monitor
  4156. label
  4157. myChapterID
  4158. visited
  4159. The path animation system book allows you to animate an object at either a constant or variable speed over the length of its path. 
  4160. When a constant speed is chosen, the object moves over the length of its path at a steady rate. However, when a variable rate is chosen, the object moves quickly between distant points on its path and slowly between points that are near to one another.
  4161. illustrates an animation that is best done with a variable rate.  The monitor's beam should move across the screen at a steady rate but up and down at varying rates.
  4162. anim_animationSettings
  4163. Start
  4164. MplayAnimation
  4165. variable
  4166. buttonUp
  4167. enterPage
  4168. playAnimation 1 
  4169. "Beam"
  4170. notifyBefore 
  4171. 735,4545
  4172. startPosition
  4173. Start
  4174. ZstopAnimation
  4175. buttonUp
  4176. leavePage
  4177. stopAnimation 
  4178. "Beam"
  4179. notifyBefore 
  4180. Variable
  4181. MplayAnimation
  4182. buttonUp
  4183. playAnimation 1 
  4184. "beam"
  4185. Variable Rate
  4186. Constant
  4187. MplayAnimation
  4188. buttonUp
  4189. playAnimation 2 
  4190. "beam"
  4191. Constant Rate
  4192. in,ms
  4193. ThreeDeeRect
  4194. bottomLine
  4195. topLine
  4196. This example illustrates an animation that is best done with a variable rate. The monitor's beam should move across the screen at a steady rate but up and down at a faster rate..
  4197. enterPage
  4198. leavePage
  4199. false
  4200. false
  4201. 0,0,165,0,315,0,390,-75,435,330,525,-750,585,45,690,15,795,-45,900,30,1020,0,1170,0,1290,0,1410,0,1545,0,1620,-90,1665,330,1740,-735,1815,60,1965,15,2040,-45,2130,15,2250,0,2415,0
  4202. ,,,,,,,,,,,,,
  4203. Variable
  4204. FALSE
  4205. 5235,3420
  4206. 0,0,45,45,55,0,100,45,110,0,155,45,165,0,210,45,215,0,260,45,265,0,310,45,315,0,360,45,340,-25,385,20,365,-50,410,-5,390,-75,435,-30,405,60,450,105,420,195,465,240,435,330,480,375,465,-30,510,15,495,-390,540,-345,525,-750,570,-705,545,-485,590,-440,565,-220,610,-175,585,45,630,90,620,35,665,80,655,25,700,70,690,15,735,60,725,-5,770,40,760,-25,805,20,795,-45,840,0,830,-20,875,25,865,5,910,50,900,30,945,75,940,20,985,65,980,10,1025,55,1020,0,1065,45,1070,0,1115,45,1120,0,1165,45,1170,0,1215,45,1210,0,1255,45,1250,0,1295,45,1290,0,1335,45,1330,0,1375,45,1370,0,1415,45,1410,0,1455,45,1455,0,1500,45,1500,0,1545,45,1545,0,1590,45,1570,-30,1615,15,1595,-60,1640,-15,1620,-90,1665,-45,1635,50,1680,95,1650,190,1695,235,1665,330,1710,375,1690,-25,1735,20,1715,-380,1760,-335,1740,-735,1785,-690,1765,-470,1810,-425,1790,-205,1835,-160,1815,60,1860,105,1865,45,1910,90,1915,30,1960,75,1965,15,2010,60,1990,-5,2035,40,2015,-25,2060,20,2040,-45,2085,0,2070,-25,2115,20,2100,-5,2145,40,2130,15,2175,60,2170,10,2215,55,2210,5,2255,50,2250,0,2295,45,2305,0,2350,45,2360,0,2405,45,2415,0,2460,45
  4207. 45,45
  4208. 45,45
  4209. 0,0,165,0,315,0,390,-75,435,330,525,-750,585,45,690,15,795,-45,900,30,1020,0,1170,0,1290,0,1410,0,1545,0,1620,-90,1665,330,1740,-735,1815,60,1965,15,2040,-45,2130,15,2250,0,2415,0
  4210. ,,,,,,,,,,,,,
  4211. Constant
  4212. FALSE
  4213. 5235,3420
  4214. 0,0,45,45,98,0,143,45,196,0,241,45,294,0,339,45,370,-55,415,-10,398,-6,443,39,409,92,454,137,419,189,464,234,430,287,475,332,440,276,485,321,448,178,493,223,456,80,501,125,464,-18,509,27,472,-115,517,-70,480,-213,525,-168,488,-311,533,-266,497,-409,542,-364,505,-506,550,-461,513,-604,558,-559,521,-702,566,-657,529,-700,574,-655,536,-602,581,-557,544,-504,589,-459,551,-407,596,-362,558,-309,603,-264,566,-211,611,-166,573,-113,618,-68,580,-15,625,30,621,35,666,80,713,2,758,47,798,-43,843,2,878,14,923,59,969,13,1014,58,1065,0,1110,45,1163,0,1208,45,1262,0,1307,45,1360,0,1405,45,1458,0,1503,45,1552,-8,1597,37,1615,-84,1660,-39,1630,-1,1675,44,1640,97,1685,142,1650,195,1695,240,1661,292,1706,337,1669,270,1714,315,1676,172,1721,217,1683,74,1728,119,1690,-24,1735,21,1697,-121,1742,-76,1704,-219,1749,-174,1711,-317,1756,-272,1717,-415,1762,-370,1724,-513,1769,-468,1731,-611,1776,-566,1738,-709,1783,-664,1747,-664,1792,-619,1756,-566,1801,-521,1765,-468,1810,-423,1774,-371,1819,-326,1784,-273,1829,-228,1793,-175,1838,-130,1802,-78,1847,-33,1811,20,1856,65,1871,43,1916,88,1965,15,2010,60,2041,-44,2086,1,2123,10,2168,55,2219,4,2264,49,2317,0,2362,45,2415,0,2460,45
  4215. 45,45
  4216. 45,45
  4217. Moving frame animation
  4218. label
  4219. myChapterID
  4220. visited
  4221. The animation sysbook makes combining movement and frame animation easy. All you need to do is create a group of objects, specify a path, and then turn frame animation on.
  4222. in,ms
  4223. ThreeDeeRect
  4224. bottomLine
  4225. topLine
  4226. globe
  4227. MplayAnimation
  4228. animSysBookLoaded
  4229. enterpage
  4230. ZstopAnimation
  4231. animSysbookLoaded
  4232. leavePage
  4233. notifyBefore 
  4234. animSysBookLoaded()
  4235. playAnimation 1 
  4236. notifyAfter 
  4237. animSysbookLoaded()
  4238. stopAnimation
  4239. curframe
  4240. anim_animationSettings
  4241. in,ms
  4242. ThreeDeeRect
  4243. bottomLine
  4244. topLine
  4245. Here we have our familiar animated earth with movement added.ded.
  4246. enterpage
  4247. leavePage
  4248. false
  4249. false
  4250. 0,0,45,555,1560,585,2925,480,2925,-90,2895,-585,1530,-675,-75,-645,0,-60
  4251. ,true,,true,,true,,true,
  4252. Variable
  4253. 4687,1177
  4254. 0,0,765,765,10,60,775,825,28,117,793,882,56,170,821,935,93,221,858,986,138,268,903,1033,193,312,958,1077,257,352,1022,1117,330,390,1095,1155,413,424,1178,1189,504,455,1269,1220,604,482,1369,1247,713,507,1478,1272,832,528,1597,1293,959,546,1724,1311,1096,560,1861,1325,1241,572,2006,1337,1396,580,2161,1345,1560,585,2325,1350,1707,572,2472,1337,1846,556,2611,1321,1977,537,2742,1302,2099,515,2864,1280,2213,491,2978,1256,2318,463,3083,1228,2415,433,3180,1198,2504,400,3269,1165,2584,364,3349,1129,2655,325,3420,1090,2719,283,3484,1048,2773,238,3538,1003,2820,191,3585,956,2858,140,3623,905,2887,87,3652,852,2908,31,3673,796,2921,-28,3686,737,2925,-90,3690,675,2918,-144,3683,621,2902,-195,3667,570,2878,-244,3643,521,2846,-290,3611,475,2805,-334,3570,431,2757,-375,3522,390,2700,-414,3465,351,2635,-450,3400,315,2561,-484,3326,281,2480,-515,3245,250,2390,-544,3155,221,2292,-570,3057,195,2185,-594,2950,171,2071,-615,2836,150,1948,-634,2713,131,1817,-650,2582,115,1678,-664,2443,101,1530,-675,2295,90,1357,-670,2122,95,1194,-661,1959,104,1042,-650,1807,115,900,-634,1665,131,768,-616,1533,149,647,-593,1412,172,536,-568,1301,197,435,-539,1200,226,345,-506,1110,259,265,-470,1030,295,196,-431,961,334,137,-388,902,377,88,-342,853,423,50,-293,815,472,22,-240,787,525,4,-183,769,582,-3,-123,762,642,0,-60,765,705
  4255. FALSE
  4256. 765,765
  4257. 765,765
  4258. newChapterOrTopic
  4259. cancel
  4260. initpage
  4261. cancel
  4262. keyChar
  4263.     close 
  4264. initpage val
  4265. keyEnter
  4266. chapter
  4267. &Chapter
  4268. buttonclick
  4269. buttonclick
  4270. Cancel
  4271. buttonclick
  4272. buttonclick
  4273. Cancel
  4274. Cancel
  4275. strChecked
  4276. strChecked
  4277. strChecked
  4278. chapterCount
  4279. &Topic
  4280. topicCount
  4281. outlineOrganizer
  4282. chapterCount
  4283. topicCount
  4284. selectChars
  4285. false
  4286. visited
  4287. strChecked
  4288. strChecked
  4289. outline
  4290. topline
  4291. group
  4292. topLine
  4293. X sizeIt
  4294. bottomLine
  4295. sizeIt
  4296. sizeIt
  4297. bottomLine 
  4298. topline 
  4299. m"topLine" 
  4300. objs 
  4301.         rec = 
  4302.         sz = 
  4303.         pupp = syspageUnitsPerPixel
  4304. sz > 
  4305. sz > 
  4306.             xpix = 
  4307. syspageunitsperpixel
  4308.             ypix = 
  4309.             b = 
  4310.             ll = 
  4311.             lr = 
  4312.             ur = 
  4313.             ul = 
  4314. ul,lr
  4315. --            
  4316. ll,lr,ur
  4317. --            
  4318. ll,ul,
  4319. in,ms
  4320. ThreeDeeRect
  4321. bottomLine
  4322. topLine
  4323. outline
  4324. strChecked
  4325. selectedTextline
  4326. Moving objects                                        5
  4327.     Position property                                        7
  4328.     Script recorder                                        6
  4329.     Move command                                        11
  4330.     Move to command                                        4
  4331.     Move by command                                        3
  4332.     Moving on idle                                        12
  4333. Frame animation                                        2
  4334.     How it works                                        13
  4335.     Hiding and showing                                        14
  4336.     Animating buttons                                        15
  4337. Useful scripts                                        16
  4338.     Animating with color                                        17
  4339.     Simulating gravity                                        18
  4340.     Timing animation                                        19
  4341.     Moving along a line                                        20
  4342. Using path animation                                        36
  4343.     Path animation sysbook                                        40
  4344.     Fish tank                                        37
  4345.     EKG monitor                                        39
  4346.     Moving frame animation                                        41
  4347. Untitled                                        45
  4348.     Untitled                                        46
  4349. marker
  4350. vertLoc
  4351. vertLoc b 
  4352. value
  4353.     ypix = 
  4354. syspageunitsperpixel
  4355.     s = 
  4356.     halfH = 
  4357. C- 3*
  4358. strChecked
  4359. buttonGroup
  4360. yunewTopic
  4361. false
  4362. outline
  4363. newChapter
  4364. Chapter
  4365. ainitpage
  4366. Untitled
  4367. header
  4368. title
  4369. buttonclick
  4370. buttonclick
  4371.     stl = selectedTextLines 
  4372. "outline" 
  4373. vRef 
  4374. parentwindow 
  4375. initpage 
  4376. currentPage 
  4377. %modal
  4378. isopen 
  4379. pRef 
  4380.         close 
  4381.         title = "Untitled"
  4382. B"Chapter" 
  4383. newChapter 
  4384. newTopic stl
  4385. strChecked
  4386. &New...
  4387. editTopic
  4388. strChecked
  4389. &Delete
  4390. updateButtons
  4391. check
  4392. buttonclick
  4393. buttonclick
  4394. s_cancel
  4395. buttonclick
  4396. buttonclick
  4397. 4s_cancel
  4398. Edit &Title:
  4399. header
  4400. topline
  4401. group
  4402. topLine
  4403. X sizeIt
  4404. bottomLine
  4405. sizeIt
  4406. sizeIt
  4407. bottomLine 
  4408. topline 
  4409. m"topLine" 
  4410. objs 
  4411.         rec = 
  4412.         sz = 
  4413.         pupp = syspageUnitsPerPixel
  4414. sz > 
  4415. sz > 
  4416.             xpix = 
  4417. syspageunitsperpixel
  4418.             ypix = 
  4419.             b = 
  4420.             ll = 
  4421.             lr = 
  4422.             ur = 
  4423.             ul = 
  4424. ul,lr
  4425. --            
  4426. ll,lr,ur
  4427. --            
  4428. ll,ul,
  4429. in,ms
  4430. ThreeDeeRect
  4431. bottomLine
  4432. topLine
  4433. header
  4434. pageId
  4435. lineNum
  4436. Moving objectsnimation
  4437. character
  4438. paragraph
  4439. ASYM_BeenHere
  4440. Useful scripts
  4441. label
  4442. myChapterID
  4443. myPages
  4444. This section contains reusable handlers you can use to make writing your animation scripts easier.
  4445. 17,18,19,20
  4446. 17,18,19,20
  4447. first
  4448. strChecked
  4449. 9501231240428864061321273852
  4450. toolbar
  4451. ComboBox
  4452. xcombobox
  4453.         focuswindow = 
  4454. false
  4455. visited
  4456. strChecked
  4457. chapterCount
  4458. topicCount
  4459. previous
  4460. buttonclick
  4461. buttonclick
  4462.     -- sends the 
  4463. message
  4464. currentPage 
  4465. strChecked
  4466. buttonclick
  4467. buttonclick
  4468.     -- sends the 
  4469. tmessage
  4470. currentPage 
  4471. strChecked
  4472. heading
  4473. raisedField
  4474. tbk_wid_name
  4475. faceColor
  4476. highlightColor
  4477. shadowColor
  4478. tbk_wid_props
  4479. color,hls
  4480. color,hls
  4481. color,hls
  4482. tbk_wid_values
  4483. faceText
  4484. strChecked
  4485. highlight
  4486. strChecked
  4487. Table of contentsion
  4488. shadow
  4489. strChecked
  4490. Table of contentsion
  4491. J    Z    J
  4492. strChecked
  4493. Table of contentsion
  4494. buttonclick
  4495. buttonclick
  4496. currentPage 
  4497.     focuswindow = 
  4498. strChecked
  4499. tableOfContents
  4500. tableOfContents
  4501. buttonclick
  4502. buttonclick
  4503.         -- handled 
  4504. Hthe 
  4505. message navigates 
  4506.         -- table 
  4507. contents 
  4508. tableOfContents 
  4509. currentPage 
  4510. strChecked
  4511. Contents
  4512. SectionLabel
  4513. strChecked
  4514. Section:
  4515. outline
  4516. @4bookOverview
  4517. buttonup
  4518. bookOverview
  4519. strChecked
  4520. topics
  4521. topics
  4522. buttonclick
  4523. buttonclick
  4524.         -- causes navigation 
  4525. chapter heading 
  4526. currentPage 
  4527.     focuswindow = 
  4528. strChecked
  4529. Chapter Topics
  4530. helpTemplate
  4531. buttonclick
  4532. buttonclick
  4533. helpTemplate
  4534. strChecked
  4535. strChecked
  4536. strChecked
  4537. strChecked
  4538. strChecked
  4539. 9501231240478869454215319529
  4540. train
  4541. b;origloc
  4542. train
  4543. animate
  4544. b;origloc
  4545. train
  4546. initAnimation
  4547. animate
  4548.     t = 
  4549. "train" 
  4550.     rightMost = 
  4551.     p = 
  4552.     moveAmount = 45
  4553. origloc 
  4554. initAnimation
  4555.     t = 
  4556. visited
  4557. false
  4558. strChecked
  4559. train
  4560. origloc
  4561. -1485,90
  4562. strChecked
  4563. ASYM_BeenHere
  4564. `0o`0o`
  4565. 07wpw
  4566. wpwwx
  4567. strChecked
  4568. strChecked
  4569. strChecked
  4570. strChecked
  4571. strChecked
  4572. strChecked
  4573. strChecked
  4574. strChecked
  4575. strChecked
  4576. strChecked
  4577. strChecked
  4578. strChecked
  4579. strChecked
  4580. strChecked
  4581. strChecked
  4582. strChecked
  4583. strChecked
  4584. strChecked
  4585. strChecked
  4586. strChecked
  4587. strChecked
  4588. strChecked
  4589. strChecked
  4590. strChecked
  4591. strChecked
  4592. strChecked
  4593. strChecked
  4594. strChecked
  4595. strChecked
  4596. strChecked
  4597. strChecked
  4598. strChecked
  4599. strChecked
  4600. strChecked
  4601. strChecked
  4602. strChecked
  4603. strChecked
  4604. strChecked
  4605. strChecked
  4606. strChecked
  4607. strChecked
  4608. strChecked
  4609. strChecked
  4610. strChecked
  4611. strChecked
  4612. strChecked
  4613. strChecked
  4614. strChecked
  4615. 9501231300411006347028093682
  4616. orangeFish
  4617. MplayAnimation
  4618. blueFish
  4619. yellowFish3
  4620. yellowFish2
  4621. animSysbookLoaded
  4622. yellowFish1
  4623. initAnimation
  4624. orangeFish
  4625. blueFish
  4626. yellowFish3
  4627. ZstopAnimation
  4628. yellowFish2
  4629. animSysbookLoaded
  4630. yellowFish1
  4631. endAnimation
  4632. initAnimation
  4633. animSysbookLoaded()
  4634. playAnimation 1 
  4635. '"yellowFish1" 
  4636. '"yellowFish2" 
  4637. '"yellowFish3" 
  4638. '"blueFish" 
  4639. '"orangeFish" 
  4640. endAnimation
  4641. stopAnimation 
  4642. yellowFish3
  4643. anim_animationSettings
  4644. (( (     
  4645.  w{'w(w{ 
  4646. blueFish
  4647. anim_animationSettings
  4648. yellowFish1
  4649. anim_animationSettings
  4650. (( (     
  4651.  w{'w(w{ 
  4652. yellowFish2
  4653. anim_animationSettings
  4654. (( (     
  4655.  w{'w(w{ 
  4656. orangeFish
  4657. anim_animationSettings
  4658.     TT9T4
  4659. 4994Y94
  4660. T5EEU
  4661. TTUP}
  4662. 19Y9EEU
  4663. CDTUP
  4664. DUEEH
  4665. 11995LU
  4666. EDTTP
  4667. 11990
  4668. 45,-45,2475,1935,3825,1305,4185,1755,4725,1305
  4669. ,true,,true,
  4670. Constant
  4671. FALSE
  4672. -675,-135
  4673. 45,-45,765,390,72,-23,792,412,100,-1,820,434,127,21,847,456,154,42,874,477,181,64,901,499,209,86,929,521,236,108,956,543,264,129,984,564,291,151,1011,586,319,172,1039,607,347,194,1067,629,374,215,1094,650,402,236,1122,671,430,257,1150,692,458,278,1178,713,486,299,1206,734,514,320,1234,755,542,341,1262,776,570,362,1290,797,599,382,1319,817,627,403,1347,838,655,423,1375,858,684,444,1404,879,712,464,1432,899,741,484,1461,919,770,504,1490,939,798,524,1518,959,827,544,1547,979,856,564,1576,999,885,583,1605,1018,914,602,1634,1037,943,622,1663,1057,972,642,1692,1077,1001,661,1721,1096,1031,679,1751,1114,1060,698,1780,1133,1089,717,1809,1152,1119,736,1839,1171,1149,755,1869,1190,1178,773,1898,1208,1208,791,1928,1226,1238,809,1958,1244,1268,827,1988,1262,1298,845,2018,1280,1328,863,2048,1298,1358,881,2078,1316,1389,898,2109,1333,1419,915,2139,1350,1450,932,2170,1367,1480,949,2200,1384,1511,966,2231,1401,1541,983,2261,1418,1572,999,2292,1434,1603,1015,2323,1450,1634,1032,2354,1467,1666,1048,2386,1483,1697,1063,2417,1498,1728,1079,2448,1514,1760,1094,2480,1529,1791,1109,2511,1544,1823,1124,2543,1559,1854,1139,2574,1574,1886,1153,2606,1588,1918,1168,2638,1603,1950,1182,2670,1617,1982,1195,2702,1630,2015,1209,2735,1644,2047,1222,2767,1657,2079,1235,2799,1670,2112,1248,2832,1683,2145,1260,2865,1695,2177,1273,2897,1708,2210,1285,2930,1720,2243,1296,2963,1731,2277,1307,2997,1742,2310,1318,3030,1753,2343,1329,3063,1764,2376,1339,3096,1774,2410,1349,3130,1784,2444,1359,3164,1794,2477,1368,3197,1803,2511,1377,3231,1812,2545,1385,3265,1820,2579,1393,3299,1828,2613,1400,3333,1835,2648,1407,3368,1842,2682,1414,3402,1849,2716,1421,3436,1856,2751,1426,3471,1861,2785,1432,3505,1867,2820,1437,3540,1872,2855,1441,3575,1876,2889,1445,3609,1880,2924,1448,3644,1883,2959,1451,3679,1886,2994,1453,3714,1888,3029,1455,3749,1890,3064,1456,3784,1891,3099,1457,3819,1892,3134,1457,3854,1892,3169,1456,3889,1891,3203,1454,3923,1889,3238,1453,3958,1888,3273,1450,3993,1885,3308,1447,4028,1882,3343,1443,4063,1878,3377,1438,4097,1873,3412,1432,4132,1867,3446,1427,4166,1862,3481,1419,4201,1854,3515,1412,4235,1847,3549,1404,4269,1839,3583,1395,4303,1830,3616,1385,4336,1820,3649,1374,4369,1809,3682,1363,4402,1798,3715,1351,4435,1786,3748,1338,4468,1773,3780,1325,4500,1760,3812,1311,4532,1746,3838,1321,4558,1756,3861,1348,4581,1783,3885,1373,4605,1808,3910,1397,4630,1832,3937,1420,4657,1855,3965,1441,4685,1876,3994,1461,4714,1896,4024,1478,4744,1913,4055,1493,4775,1928,4088,1506,4808,1941,4121,1516,4841,1951,4156,1524,4876,1959,4190,1528,4910,1963,4225,1530,4945,1965,4260,1529,4980,1964,4295,1525,5015,1960,4329,1520,5049,1955,4363,1511,5083,1946,4397,1501,5117,1936,4430,1489,5150,1924,4462,1476,5182,1911,4493,1461,5213,1896,4524,1445,5244,1880,4555,1427,5275,1862,4584,1409,5304,1844,4614,1390,5334,1825,4642,1369,5362,1804,4670,1349,5390,1784,4698,1327,5418,1762,4725,1305,5445,1740
  4674. 720,435
  4675. 720,435
  4676. 45,-45,-2205,-675,-2565,135,-2835,585,-3735,675,-4815,855
  4677. ,true,,true,,
  4678. constant
  4679. FALSE
  4680. 3750,1230
  4681. 45,-45,735,510,-22,-64,668,491,-90,-82,600,473,-157,-99,533,456,-225,-117,465,438,-292,-134,398,421,-360,-151,330,404,-428,-166,262,389,-496,-181,194,374,-564,-197,126,358,-633,-211,57,344,-701,-225,-11,330,-770,-237,-80,318,-838,-250,-148,305,-907,-262,-217,293,-976,-272,-286,283,-1045,-282,-355,273,-1114,-290,-424,265,-1184,-299,-494,256,-1253,-306,-563,249,-1323,-311,-633,244,-1392,-315,-702,240,-1462,-319,-772,236,-1532,-321,-842,234,-1601,-320,-911,235,-1671,-318,-981,237,-1741,-314,-1051,241,-1810,-308,-1120,247,-1880,-299,-1190,256,-1948,-288,-1258,267,-2016,-273,-1326,282,-2084,-255,-1394,300,-2150,-233,-1460,322,-2214,-206,-1524,349,-2277,-175,-1587,380,-2336,-137,-1646,418,-2392,-96,-1702,459,-2442,-48,-1752,507,-2488,5,-1798,560,-2527,63,-1837,618,-2560,124,-1870,679,-2597,183,-1907,738,-2640,238,-1950,793,-2687,290,-1997,845,-2738,337,-2048,892,-2793,380,-2103,935,-2851,419,-2161,974,-2911,454,-2221,1009,-2973,486,-2283,1041,-3037,515,-2347,1070,-3101,540,-2411,1095,-3167,563,-2477,1118,-3234,584,-2544,1139,-3302,601,-2612,1156,-3369,618,-2679,1173,-3438,632,-2748,1187,-3506,645,-2816,1200,-3575,656,-2885,1211,-3644,665,-2954,1220,-3714,673,-3024,1228,-3783,683,-3093,1238,-3851,694,-3161,1249,-3920,706,-3230,1261,-3989,717,-3299,1272,-4058,729,-3368,1284,-4127,740,-3437,1295,-4196,752,-3506,1307,-4264,763,-3574,1318,-4333,775,-3643,1330,-4402,786,-3712,1341,-4471,798,-3781,1353,-4540,809,-3850,1364,-4609,821,-3919,1376,-4677,832,-3987,1387,-4746,844,-4056,1399,-4815,855,-4125,1410
  4682. FALSE
  4683. 690,555
  4684. 690,555
  4685. -45,45,-1395,495,-1935,855,-2205,1125,-2295,1395,-2475,1845,-2655,2115,-4815,2655
  4686. ,,,,,,,
  4687. Variable
  4688. FALSE
  4689. 3690,-270
  4690.     0,0,720,495,-124,71,596,566,-204,98,516,593,-283,124,437,619,-363,151,357,646,-442,177,278,672,-521,204,199,699,-601,230,119,725,-680,257,40,752,-760,283,-40,778,-839,310,-119,805,-919,336,-199,831,-998,363,-278,858,-1077,389,-357,884,-1157,416,-437,911,-1236,442,-516,937,-1316,469,-596,964,-1395,495,-675,990,-1427,516,-707,1011,-1459,537,-739,1032,-1490,559,-770,1054,-1522,580,-802,1075,-1554,601,-834,1096,-1586,622,-866,1117,-1617,643,-897,1138,-1649,664,-929,1159,-1681,686,-961,1181,-1713,707,-993,1202,-1744,728,-1024,1223,-1776,749,-1056,1244,-1808,770,-1088,1265,-1840,791,-1120,1286,-1871,813,-1151,1308,-1903,834,-1183,1329,-1935,855,-1215,1350,-1951,871,-1231,1366,-1967,887,-1247,1382,-1983,903,-1263,1398,-1999,919,-1279,1414,-2014,934,-1294,1429,-2030,950,-1310,1445,-2046,966,-1326,1461,-2062,982,-1342,1477,-2078,998,-1358,1493,-2094,1014,-1374,1509,-2110,1030,-1390,1525,-2126,1046,-1406,1541,-2141,1061,-1421,1556,-2157,1077,-1437,1572,-2173,1093,-1453,1588,-2189,1109,-1469,1604,-2205,1125,-1485,1620,-2210,1141,-1490,1636,-2216,1157,-1496,1652,-2221,1173,-1501,1668,-2226,1189,-1506,1684,-2231,1204,-1511,1699,-2237,1220,-1517,1715,-2242,1236,-1522,1731,-2247,1252,-1527,1747,-2253,1268,-1533,1763,-2258,1284,-1538,1779,-2263,1300,-1543,1795,-2269,1316,-1549,1811,-2274,1331,-1554,1826,-2279,1347,-1559,1842,-2284,1363,-1564,1858,-2290,1379,-1570,1874,-2295,1395,-1575,1890,-2306,1421,-1586,1916,-2316,1448,-1596,1943,-2327,1474,-1607,1969,-2337,1501,-1617,1996,-2348,1527,-1628,2022,-2359,1554,-1639,2049,-2369,1580,-1649,2075,-2380,1607,-1660,2102,-2390,1633,-1670,2128,-2401,1660,-1681,2155,-2411,1686,-1691,2181,-2422,1713,-1702,2208,-2433,1739,-1713,2234,-2443,1766,-1723,2261,-2454,1792,-1734,2287,-2464,1819,-1744,2314,-2475,1845,-1755,2340,-2486,1861,-1766,2356,-2496,1877,-1776,2372,-2507,1893,-1787,2388,-2517,1909,-1797,2404,-2528,1924,-1808,2419,-2539,1940,-1819,2435,-2549,1956,-1829,2451,-2560,1972,-1840,2467,-2570,1988,-1850,2483,-2581,2004,-1861,2499,-2591,2020,-1871,2515,-2602,2036,-1882,2531,-2613,2051,-1893,2546,-2623,2067,-1903,2562,-2634,2083,-1914,2578,-2644,2099,-1924,2594,-2655,2115,-1935,2610,-2782,2147,-2062,2642,-2909,2179,-2189,2674,-3036,2210,-2316,2705,-3163,2242,-2443,2737,-3290,2274,-2570,2769,-3417,2306,-2697,2801,-3544,2337,-2824,2832,-3671,2369,-2951,2864,-3799,2401,-3079,2896,-3926,2433,-3206,2928,-4053,2464,-3333,2959,-4180,2496,-3460,2991,-4307,2528,-3587,3023,-4434,2560,-3714,3055,-4561,2591,-3841,3086,-4688,2623,-3968,3118,-4815,2655,-4095,3150
  4691. FALSE
  4692. 720,495
  4693. 720,495
  4694. -45,45,-1395,495,-1935,855,-2205,1125,-2295,1395,-2475,1845,-2655,2115,-4815,2655
  4695. ,,,,,,,
  4696. Variable
  4697. FALSE
  4698. 4320,-450
  4699.     0,0,720,495,-124,71,596,566,-204,98,516,593,-283,124,437,619,-363,151,357,646,-442,177,278,672,-521,204,199,699,-601,230,119,725,-680,257,40,752,-760,283,-40,778,-839,310,-119,805,-919,336,-199,831,-998,363,-278,858,-1077,389,-357,884,-1157,416,-437,911,-1236,442,-516,937,-1316,469,-596,964,-1395,495,-675,990,-1427,516,-707,1011,-1459,537,-739,1032,-1490,559,-770,1054,-1522,580,-802,1075,-1554,601,-834,1096,-1586,622,-866,1117,-1617,643,-897,1138,-1649,664,-929,1159,-1681,686,-961,1181,-1713,707,-993,1202,-1744,728,-1024,1223,-1776,749,-1056,1244,-1808,770,-1088,1265,-1840,791,-1120,1286,-1871,813,-1151,1308,-1903,834,-1183,1329,-1935,855,-1215,1350,-1951,871,-1231,1366,-1967,887,-1247,1382,-1983,903,-1263,1398,-1999,919,-1279,1414,-2014,934,-1294,1429,-2030,950,-1310,1445,-2046,966,-1326,1461,-2062,982,-1342,1477,-2078,998,-1358,1493,-2094,1014,-1374,1509,-2110,1030,-1390,1525,-2126,1046,-1406,1541,-2141,1061,-1421,1556,-2157,1077,-1437,1572,-2173,1093,-1453,1588,-2189,1109,-1469,1604,-2205,1125,-1485,1620,-2210,1141,-1490,1636,-2216,1157,-1496,1652,-2221,1173,-1501,1668,-2226,1189,-1506,1684,-2231,1204,-1511,1699,-2237,1220,-1517,1715,-2242,1236,-1522,1731,-2247,1252,-1527,1747,-2253,1268,-1533,1763,-2258,1284,-1538,1779,-2263,1300,-1543,1795,-2269,1316,-1549,1811,-2274,1331,-1554,1826,-2279,1347,-1559,1842,-2284,1363,-1564,1858,-2290,1379,-1570,1874,-2295,1395,-1575,1890,-2306,1421,-1586,1916,-2316,1448,-1596,1943,-2327,1474,-1607,1969,-2337,1501,-1617,1996,-2348,1527,-1628,2022,-2359,1554,-1639,2049,-2369,1580,-1649,2075,-2380,1607,-1660,2102,-2390,1633,-1670,2128,-2401,1660,-1681,2155,-2411,1686,-1691,2181,-2422,1713,-1702,2208,-2433,1739,-1713,2234,-2443,1766,-1723,2261,-2454,1792,-1734,2287,-2464,1819,-1744,2314,-2475,1845,-1755,2340,-2486,1861,-1766,2356,-2496,1877,-1776,2372,-2507,1893,-1787,2388,-2517,1909,-1797,2404,-2528,1924,-1808,2419,-2539,1940,-1819,2435,-2549,1956,-1829,2451,-2560,1972,-1840,2467,-2570,1988,-1850,2483,-2581,2004,-1861,2499,-2591,2020,-1871,2515,-2602,2036,-1882,2531,-2613,2051,-1893,2546,-2623,2067,-1903,2562,-2634,2083,-1914,2578,-2644,2099,-1924,2594,-2655,2115,-1935,2610,-2782,2147,-2062,2642,-2909,2179,-2189,2674,-3036,2210,-2316,2705,-3163,2242,-2443,2737,-3290,2274,-2570,2769,-3417,2306,-2697,2801,-3544,2337,-2824,2832,-3671,2369,-2951,2864,-3799,2401,-3079,2896,-3926,2433,-3206,2928,-4053,2464,-3333,2959,-4180,2496,-3460,2991,-4307,2528,-3587,3023,-4434,2560,-3714,3055,-4561,2591,-3841,3086,-4688,2623,-3968,3118,-4815,2655,-4095,3150
  4700. FALSE
  4701. 720,495
  4702. 720,495
  4703. -45,45,-1395,495,-1935,855,-2205,1125,-2295,1395,-2475,1845,-2655,2115,-4815,2655
  4704. ,,,,,,,
  4705. Variable
  4706. FALSE
  4707. 3960,-720
  4708.     0,0,720,495,-124,71,596,566,-204,98,516,593,-283,124,437,619,-363,151,357,646,-442,177,278,672,-521,204,199,699,-601,230,119,725,-680,257,40,752,-760,283,-40,778,-839,310,-119,805,-919,336,-199,831,-998,363,-278,858,-1077,389,-357,884,-1157,416,-437,911,-1236,442,-516,937,-1316,469,-596,964,-1395,495,-675,990,-1427,516,-707,1011,-1459,537,-739,1032,-1490,559,-770,1054,-1522,580,-802,1075,-1554,601,-834,1096,-1586,622,-866,1117,-1617,643,-897,1138,-1649,664,-929,1159,-1681,686,-961,1181,-1713,707,-993,1202,-1744,728,-1024,1223,-1776,749,-1056,1244,-1808,770,-1088,1265,-1840,791,-1120,1286,-1871,813,-1151,1308,-1903,834,-1183,1329,-1935,855,-1215,1350,-1951,871,-1231,1366,-1967,887,-1247,1382,-1983,903,-1263,1398,-1999,919,-1279,1414,-2014,934,-1294,1429,-2030,950,-1310,1445,-2046,966,-1326,1461,-2062,982,-1342,1477,-2078,998,-1358,1493,-2094,1014,-1374,1509,-2110,1030,-1390,1525,-2126,1046,-1406,1541,-2141,1061,-1421,1556,-2157,1077,-1437,1572,-2173,1093,-1453,1588,-2189,1109,-1469,1604,-2205,1125,-1485,1620,-2210,1141,-1490,1636,-2216,1157,-1496,1652,-2221,1173,-1501,1668,-2226,1189,-1506,1684,-2231,1204,-1511,1699,-2237,1220,-1517,1715,-2242,1236,-1522,1731,-2247,1252,-1527,1747,-2253,1268,-1533,1763,-2258,1284,-1538,1779,-2263,1300,-1543,1795,-2269,1316,-1549,1811,-2274,1331,-1554,1826,-2279,1347,-1559,1842,-2284,1363,-1564,1858,-2290,1379,-1570,1874,-2295,1395,-1575,1890,-2306,1421,-1586,1916,-2316,1448,-1596,1943,-2327,1474,-1607,1969,-2337,1501,-1617,1996,-2348,1527,-1628,2022,-2359,1554,-1639,2049,-2369,1580,-1649,2075,-2380,1607,-1660,2102,-2390,1633,-1670,2128,-2401,1660,-1681,2155,-2411,1686,-1691,2181,-2422,1713,-1702,2208,-2433,1739,-1713,2234,-2443,1766,-1723,2261,-2454,1792,-1734,2287,-2464,1819,-1744,2314,-2475,1845,-1755,2340,-2486,1861,-1766,2356,-2496,1877,-1776,2372,-2507,1893,-1787,2388,-2517,1909,-1797,2404,-2528,1924,-1808,2419,-2539,1940,-1819,2435,-2549,1956,-1829,2451,-2560,1972,-1840,2467,-2570,1988,-1850,2483,-2581,2004,-1861,2499,-2591,2020,-1871,2515,-2602,2036,-1882,2531,-2613,2051,-1893,2546,-2623,2067,-1903,2562,-2634,2083,-1914,2578,-2644,2099,-1924,2594,-2655,2115,-1935,2610,-2782,2147,-2062,2642,-2909,2179,-2189,2674,-3036,2210,-2316,2705,-3163,2242,-2443,2737,-3290,2274,-2570,2769,-3417,2306,-2697,2801,-3544,2337,-2824,2832,-3671,2369,-2951,2864,-3799,2401,-3079,2896,-3926,2433,-3206,2928,-4053,2464,-3333,2959,-4180,2496,-3460,2991,-4307,2528,-3587,3023,-4434,2560,-3714,3055,-4561,2591,-3841,3086,-4688,2623,-3968,3118,-4815,2655,-4095,3150
  4709. FALSE
  4710. 720,495
  4711. 720,495
  4712. w"q13;3
  4713. p#v`f`70
  4714. ~g77sg
  4715. vsgbq13
  4716. wsvbS
  4717. pw3c"
  4718. 8gc11
  4719. 7  s17
  4720. y3310 w
  4721. f{fwr
  4722. 73w13 
  4723. &w6wsvguG
  4724. zsg3w
  4725. 3p+;0
  4726. "vvcg
  4727. 33;13;
  4728. xf87w
  4729. [uSQyw
  4730. 8#h93
  4731. 3118!
  4732. #{373
  4733. #6w737s
  4734. 7w57(
  4735. 0;0s 
  4736. '7swzwvW3
  4737. ;cs'88
  4738. :'wg(
  4739. wgusyes
  4740. 3668d;;3
  4741. #3;;3
  4742. v:v3}rw
  4743. 31;;33
  4744. 3;;0a"!
  4745.  00#C
  4746. wgX76p
  4747. jss7'c+s
  4748. ;;3;3;33
  4749. `S`4r
  4750. '508 /
  4751. wvw*;3;
  4752. ;3;3;
  4753. >Xwzwc;
  4754. 3;3;3?;
  4755. 067wg0#
  4756. 7'rf&
  4757. SWx(wu
  4758. gwzs6
  4759. #10370
  4760. wbrb";
  4761. 3e'53&
  4762. ;14#iw(
  4763. ws#zv
  4764. zRs5z>
  4765. @wS#C
  4766. zww6r
  4767. 3eV7s
  4768. 3v3f;
  4769. 6gpwfx
  4770. 3wzzsw'
  4771. 2:334'
  4772. 7266cf{3
  4773. s1789!9
  4774. 6rG6g
  4775. s'rv023
  4776. vjxn~vv
  4777. wj`'&&3
  4778. 'zr6vc
  4779. 3sh7s
  4780.  &2bx
  4781. 11wXr
  4782. 2sf6{3vf
  4783. b& &&
  4784.  0w11
  4785. 873cjvus
  4786. fz6~'"
  4787. "bbB;
  4788. bb3f$2
  4789. 11 "(
  4790. 3310w8
  4791. g3~iai
  4792. 306 36;3s
  4793. hsxx~
  4794. b'7&#
  4795. 9310+
  4796. wh88fxe
  4797. (wg*6
  4798. wzrg6g"w
  4799. k;;33
  4800. c;#p#
  4801. 36;;1
  4802. 830 +
  4803. >w{Wd
  4804. wxfvz
  4805. sg~>/
  4806. " 3f&23
  4807. w#vews!
  4808. ||}}w
  4809. h*gwz
  4810. 8wzvw
  4811. " "c3
  4812. wzwzwv.6v
  4813. sn#kw
  4814. v~jns
  4815. '#zwszwr&"
  4816. cfpbV"3
  4817. 10b2B33
  4818. xbw*{
  4819. 5wp2"
  4820. "6&&2Br
  4821. wchgu
  4822. 'zz4'
  4823. 2f2""&
  4824. nc2jbb `"r
  4825. b b!;
  4826. '$ "v
  4827. 6bGwi
  4828. 0#e1'
  4829. &'g*v
  4830. v2&"!
  4831. "&"b&"B7;2
  4832. `3;1g
  4833. "&s*7j
  4834.  4&"b$"
  4835.  'vh3
  4836. s0p!#
  4837. 3`";1
  4838. gv>7(
  4839. zff%"
  4840. jv'&*r"
  4841. 3zx+3
  4842. :vhw3f6z>
  4843. "bv#b$"~;
  4844. 6{jszr"b
  4845. gv2"w&&2
  4846. #0&6'
  4847. {c*8#
  4848. g(zvzx
  4849. 3vr&"B*
  4850. 6'xf'
  4851. s"b"g
  4852. su!1w
  4853. j~6v6
  4854. 6wjws~
  4855. "b&"w
  4856. b6g#"w
  4857. g&rzb
  4858. ng~nz
  4859. fggwc
  4860. rwg7znw'
  4861. &b"b"~~r"b
  4862. 4czrb
  4863.  "rjz&&*w
  4864. v::;1
  4865. &fsjCf
  4866. G"fb*
  4867. wgwvw6
  4868. rfr&%'
  4869. *`$#0
  4870. ~|#f&*
  4871. fg*fbfgfv
  4872. ww7gvw
  4873. gR`d$cgC
  4874. b'&b$&
  4875. 6"&&""bb*J
  4876. 0":j3b"u
  4877. bf&f&ffb
  4878. ssvsgc
  4879. wf&"R$
  4880. ""fp2z
  4881. r&"z`"#&u
  4882. 6f2V&"
  4883. g6v7c6rv
  4884. &gcff&&""
  4885. #&bb &b"'
  4886. cb&#!$#
  4887. 62b"BB"B
  4888. j8jh7
  4889. C`"` &
  4890. `277"B&
  4891. f "f 7 $#'
  4892. wcR&v
  4893. a` "F&d
  4894. !bB'f&
  4895. zvfr&c"rbj
  4896. c`&v##
  4897. b$f ''6'bF
  4898. 4'&'s$&&
  4899.  "b"b`
  4900. vbvfzv
  4901. &b"&"Bvv
  4902. bb#&#"
  4903. !&!$rpsa'#
  4904. v7v&!  ""
  4905. !$`&bFB
  4906.  c'B&
  4907. f6`%  Bv
  4908. "bfgfjcbfc
  4909. b"B*j"
  4910. &76Vv64
  4911. jnfnnvo
  4912. nffgd' $ $
  4913. $'fnr&&r`b
  4914. b"b2#"
  4915.  "  "
  4916. @bBbB
  4917. ffbf"
  4918. bff:f
  4919. '66v6pr6
  4920. f$bf"
  4921. $&v`"&&
  4922. bvbj7&bb'
  4923. g "&w
  4924. "'wv"f"2cv
  4925. g'&"R'
  4926. nff$&f
  4927. ff bBb
  4928. `#hr%&D&6#
  4929. 'b7&2p
  4930. f&b$vf"f
  4931. B`fb&
  4932. b&  "~
  4933. 3!"bbf!
  4934.  0"Br46
  4935. &brGf
  4936. d&rbd"
  4937. fr&% bBb$b
  4938. zzv"b&"
  4939. F&g0p
  4940. bcvcgfgBf
  4941. bBFft"fb&
  4942. r&""`'0dgz
  4943. f&fbB'r
  4944. "bbrba"
  4945. bB"`b``fzw
  4946. s"%"b2
  4947. bbffd
  4948. &fbdgrvcb
  4949. `#$6&ff
  4950. &`b&b&
  4951. srb&ff"3"b
  4952. f&&f&`b"
  4953. &fb`fb
  4954. ""$ "
  4955. 6&cbrw
  4956. t#g`f&bF
  4957. $&v'fww6&v
  4958. rab`ffC
  4959. c"#"brd
  4960. F``f&"b
  4961. bfbbfd$&fb
  4962. a$"&66cbr
  4963. &g"p"'dgf&
  4964. bdgc&Vgwvf
  4965. ccs&'&z467
  4966. f&F&Fbf&Fb
  4967. fd`bfbB "
  4968.  "&"`
  4969. c`'&rR#&
  4970. `gb`$&gg
  4971. &wf&`$$pb
  4972. `d&& ":
  4973. fbff&bf
  4974. bbdfbff&&f
  4975.   "$"b"
  4976. &wgg''&6$2
  4977. ''&p"%&v&f
  4978. $df&ffF&"f
  4979. p&fgt
  4980. `&& &e&
  4981. &*w&bd&
  4982. fFfbdf&&fb
  4983. FfF&Bf&b
  4984. g&v7gvw'
  4985. 'cbbqbpse
  4986. &$f&&"f6f
  4987. #7:"fbd
  4988. f&bffb`ffF
  4989.  #g2v6c
  4990. bvb&!cf'&b
  4991. b&6fbd
  4992. vgb`f
  4993. f&"FC&&w
  4994. bbFbb
  4995. "jb& "
  4996. v6vwgvs
  4997. b7'g&bvrv7
  4998. ` cg&&
  4999. bp&ff
  5000. bbF@ .##hr
  5001. {&fbFFbf
  5002. ""bjf& "
  5003. f6v6"bbr7"
  5004. gcb66gbd`f
  5005. "F&gg`f
  5006. fvrcc$&$ c
  5007. cfczw
  5008. Fff&fbff&
  5009. 4sfbw"''vw
  5010. wf&&$$ 'ff
  5011. &rcBfgv`ff
  5012. bCBbfwb`%"
  5013. `:"7"&rr6b
  5014. &&Ff$fBbf&
  5015. cgfb&#'
  5016. fwwgbg
  5017. F" vgfg
  5018. &&f f&g
  5019. xvbr'cgv2f
  5020. gd&bV
  5021. vpwgb'`v
  5022. g'&"b
  5023. &ffbfB`bf&
  5024. ffb`` 
  5025. 2cfgh6bd&&
  5026. vv bf&v~
  5027. b&ffbF&dbf
  5028. bf&&"
  5029. "bb&&"
  5030. 2brzr'r
  5031. xg&b`%"
  5032. vgffvfvg
  5033. g'v`v&h
  5034. 'fwzb
  5035. "f&dbd&&bf
  5036. &bFf&ffbbB
  5037. &~v's
  5038. &$bfF
  5039. $ " ""b 
  5040. &f~nzw
  5041. gffd&ff'
  5042. v ffdcfw'
  5043. ffjwx0&66
  5044. &&ff&fb`
  5045. && bBa
  5046. bF&bFf&B
  5047. &ff&fvf.
  5048. rcgfr
  5049. $&"bb&f 
  5050. &b&*bbf
  5051. b`d&BF&ff&
  5052. bffbfdg
  5053. &fg&6frCgz
  5054. vg&v6wg&
  5055. &ffb&"
  5056. "bjf&&b
  5057. dvFbf&fdf&
  5058. f&ff&b
  5059. rgfbB
  5060. bbFf 
  5061. jb`&"&&f
  5062. z2fbf&f
  5063.  cffv
  5064. ff'fBb
  5065. bgffgg6fbb
  5066. `  "bb"
  5067. "bbjjfjf
  5068. "&&fbf"
  5069. 6gbrg bbgf
  5070. &&"b&
  5071. jbf&$
  5072. !!ff&
  5073. ~vbF$
  5074. v6f`agv'd 
  5075. fbB'&&
  5076. Bbffn
  5077.  ""$"
  5078. ffbf&" 
  5079. c` r`
  5080. `fbf&&
  5081. gbf&&fvv
  5082. d&ff"%'&c
  5083. ff&ffgg
  5084.  " "" 
  5085. "&&jbb
  5086. ggbvb
  5087. bFhf`""G&b
  5088. frBvbb
  5089. ""  "
  5090. $"B6ff&
  5091. gfpffFf`f
  5092. ff$&vfvff
  5093. " ""  "
  5094. f&& b
  5095. "`&" 
  5096. g&gbvx
  5097. bRpb`bgb
  5098.   "  
  5099.   &"bf&&
  5100. bb&"" "b&"
  5101. b" &"
  5102. 0 "cFd&
  5103. &rf&~
  5104. b&" b&&
  5105. 'f"bv
  5106. vfgffbf&b
  5107.  ""  "&"
  5108.   "$"
  5109. &  b6b
  5110. pvhxffgg
  5111. gg``bv&g
  5112. ~vf"(
  5113. "b "&b`
  5114. "  "  "
  5115. ""  " "
  5116. wvf&&bBB
  5117. v'bbr
  5118. "&"bbf"
  5119. "b&jb"f"` 
  5120.  "" "
  5121. &ff&vfvffg
  5122. f 'Bg
  5123. ggbF.
  5124. bb"&&""b&&
  5125. 2""r 
  5126. vrCfvv
  5127. b"b"bf"jb 
  5128. "bjbb"&"bf
  5129. t4 rr$
  5130. rf`fb`fd
  5131. gfvbwvg
  5132. bbff&"B&"&
  5133. jbbjf
  5134. "'  r
  5135. bwwrf
  5136. '&'fgF
  5137. &"fb&"`&
  5138. bjb""bjbb&
  5139. jjbb "
  5140.  ffb"gbd
  5141. & "bfb""&"
  5142. &&"b"
  5143. "jbf&""
  5144.  &"" "
  5145. &ffbtg
  5146. vgG"v&fvfw
  5147. bf&Fb
  5148. bb "&f"&"
  5149. "f&"b"bbf&
  5150. "  "b!
  5151. g$''&#
  5152. xf"fvb"v
  5153. ffggffnn
  5154. &"ff&"b
  5155.  "&*bb"
  5156. &rp p 
  5157. vd(nrv
  5158. jbbjjbb
  5159. "b"&"
  5160. v f7"c&nbf
  5161. nffvf&'
  5162. &""bf
  5163. "b"bjf
  5164. 'g&`cC
  5165. &""b 
  5166. bb"&f"
  5167.   " " "" "
  5168. b " b"h
  5169. f''b"avn
  5170. ""&&"b"bb&
  5171. ""&"&" "
  5172. ""&&f"bb&
  5173.  b"f0
  5174. &66cfgCb 
  5175. nvv'wb'fv
  5176. nf& bfb"b"
  5177. "f&""
  5178. bjbb&
  5179. "" & 
  5180. `#f"& 2r0
  5181. ggffb
  5182. ""&&fb"b&"
  5183. ""b&bb
  5184.   bbfjfbbf
  5185. "b`""'
  5186. '`gf&v&
  5187. gzt6&g
  5188. bb&bb
  5189. ""b""b "&"
  5190. "d"p &
  5191. gwbfn
  5192. ""b"&
  5193. "&jf 
  5194. "&"f&"f&f
  5195. ffb&&"b&&"
  5196. &"&c1
  5197. bv&&be26
  5198. ffnffn
  5199. &b"bbf*bjj
  5200. "&"&&
  5201. cc"Bc
  5202. g~vfn
  5203.  &" "
  5204. b&"&&b&f&&
  5205. jf""bbf
  5206. %'bBpbb&C'
  5207. 26  f
  5208. vxv&n
  5209. &&"b"
  5210.  "&&b
  5211. bf"bb&&f"b
  5212. f&&f"bjj
  5213. jfjjbf
  5214. 0w 6"bBCc`
  5215. nfnff~wf
  5216. &bb"B"" 
  5217. cb40#& 
  5218. b"&&bfbbf
  5219.  ffc# 
  5220. hf~vvn
  5221. ffBff
  5222. f"bb&
  5223. bb"&f"&&
  5224. &"&&b
  5225. f&&fjjbf
  5226. jbf" "#
  5227. ffvgnf
  5228. nf""&&jf
  5229. "&&j&&"bb&
  5230. &"&fbfjfbf
  5231. &bfj*bj&
  5232. f&"f&"Bh
  5233. &&bfBb
  5234. &ff&ffnn
  5235. jfjfbb&
  5236. f"bb"
  5237. !br6cCa r6
  5238. &dbff
  5239. "b"jbb"
  5240. "bjjf
  5241.  bbjb
  5242. &"  '
  5243.  "b B
  5244. fbff&f
  5245. &bf&ffbb
  5246. bd&f&
  5247. &"bjjf"bb"
  5248.  ""'8
  5249. 40"464020
  5250. bfFF&
  5251. b&"b&&
  5252. "&rb""
  5253. fbfbb
  5254. bbjf"b""fj
  5255. jf&&jf&&b`
  5256. &&"&"
  5257. " " "  "  
  5258. ffbfc'
  5259. nf`$$b``
  5260. f"bb&"
  5261. &*f&&fj
  5262. ff&fbFff&&
  5263. nffb"bf
  5264. "jbbf
  5265. zg 6f
  5266. ff$&bb
  5267. bbf"&
  5268. w~zc"0g
  5269. nfnnf&f
  5270. ff$fBF
  5271. " "" 
  5272. fbjjbb ""b
  5273. &&"  "
  5274.   "  
  5275. nw~rb
  5276. &bfdbF&fn
  5277. bjjbb
  5278. nnfnnf
  5279. `fBf&&
  5280. "&fb""
  5281.   ""&""
  5282. f&&""
  5283. nfnf"&
  5284. bb"bZk3f
  5285. fhxvff
  5286. fbbffb
  5287. nnffn
  5288. nfnff
  5289. nnfnfn
  5290. bbc3{sn
  5291. nnfnnffnf
  5292.   &&"B
  5293. ffnfn
  5294. "f&` bf
  5295. fnffn
  5296. fbffb
  5297. ffnfnf
  5298. `" `bf &
  5299. "bb` 
  5300. ""Bb&&b"gp
  5301.   "&bjbb
  5302. fnfnn
  5303. " bbjb "bf
  5304. nnfnff
  5305.  "`&"f
  5306. nfnff
  5307. bb&fb "
  5308. fnffnf
  5309. &&jjbb ""
  5310. &" ""&"
  5311. fnnffnnff
  5312. nffnf
  5313. "$"&&bb&&j
  5314. nfnnf
  5315. "bjjf"
  5316. nffnnf
  5317.  "&&fbb""f
  5318. &"bf" b
  5319. nnfnf
  5320. nfnnf
  5321. nfnnf
  5322. ""bbf&&
  5323. "&&"`"
  5324. nffnf
  5325. &&"&""B"
  5326. nfnfnf
  5327. $& bf&""bf
  5328. &&jbb"
  5329. nfnfnfnf
  5330. bb "b&&""&
  5331. "" " "& $
  5332. ffnffnn
  5333. &"bbf"bbj
  5334. nfnnffnf
  5335. nfnnf
  5336. nnfnf
  5337. &"b&""&&jb
  5338. ffnffnn
  5339. nfnnfnf
  5340. ffbb"bb&&
  5341. bb  "`"f
  5342. fnnfn
  5343. b&&""bbf&&
  5344. "b" ""b"
  5345. nnfnf
  5346. bfb"&&
  5347. "b"  && "&
  5348. nnffn
  5349. b"bb"&"
  5350. &&"&ffab
  5351. nffnf
  5352. &&"bb
  5353. B b"&&nfc
  5354. 373nnfnnf
  5355. ffnfnf
  5356. ffnff
  5357.  ""b"&
  5358. s47nff
  5359. &ffnfnc
  5360. nfnff
  5361. nnfnff
  5362. nffnn
  5363. nnfnf
  5364. ffnfn
  5365. nnfnf
  5366. fnffn
  5367. nfnff
  5368. ffnnd
  5369. fnnfn
  5370. nnffnnf
  5371. fnfnff
  5372. nffa3
  5373. nnfnnf
  5374. nffnf
  5375. ffnff
  5376. nfnfnnf
  5377. ffnffn
  5378. nfnfnfn
  5379. ffnnffnff
  5380. ffnfn
  5381. ffnnff
  5382. nnffnnfnf
  5383. nnffn
  5384. ffnfnfnf
  5385. nfnfnf
  5386. fnfnf
  5387. ffnfn
  5388. fnfnnf
  5389. fnnfn
  5390. ncCc2fnf
  5391. fnffnf
  5392. fnfnnff
  5393. nfnff
  5394. nnfnn
  5395. nfnff
  5396. #+#ff
  5397. nffnff
  5398. nfnfnnffnn
  5399. fnffnn
  5400. fc7#'nf
  5401. ffnnff
  5402. ffnfnfnf
  5403. fnnff
  5404. ffnnf
  5405. nfnfnffnnf
  5406. ffnfnff
  5407. nfnfnnffnn
  5408. nfnffnf
  5409. fnffnn
  5410. fnfnnf
  5411. fnfnfn
  5412. fc%#Bfnnfn
  5413. nnfnff
  5414. fnnff
  5415. pageUnits
  5416. visited
  5417. false
  5418. strChecked
  5419. strChecked
  5420. Page Units:
  5421. Each pixel on the screen is several page units wide by several units tall. The amount varies depending on your screen resolution. The sysPageUnitsPerPixel system property will tell you how many page units there are for each horizontal and vertical pixel represented on the screen. For example, in standard VGA, there are 15 page units per horizontal pixel and 15 per vertical pixel.
  5422. strChecked
  5423. scriptRecorderPopup1
  5424. visited
  5425. false
  5426. strChecked
  5427. scriptRecorderPopup1
  5428. strChecked
  5429. To use the script recorder:
  5430. 1.     Make sure the objects you want to move are not selected.
  5431. 2.     Choose Start Recording from the Edit menu.
  5432. 3.     Drag the objects along the path you want them to follow, clicking frequently to record the movement.
  5433. 4.     Choose Stop Recording from the Edit menu.
  5434. 5.     In the script of the button that starts the animation, choose Paste Recording from the script editor's Edit menu..
  5435. strChecked
  5436. scriptRecorderPopup2
  5437. visited
  5438. false
  5439. strChecked
  5440. strChecked
  5441. Guidelines for using the script recorder:
  5442. The main advantage of the script recorder is that you can create animation without writing scripts. However, there are also disadvantages:
  5443. Difficult to modify  To change a recorded animation, you must either edit the script ToolBook created or record the animation again.
  5444. Difficult to create smooth movement  It may be hard to create uniform spacing and direction between each step of the animation.
  5445. If you need to create smooth, easily modifiable animation, you may want to examine the topics in the Useful Scripts section of this book.......
  5446. strChecked
  5447. aboutAnimation
  5448. about
  5449. keychar
  5450. isOpen 
  5451.         focuswindow = 
  5452. keyEnter
  5453.             close 
  5454. "about"
  5455. strChecked
  5456. in,false
  5457. ThreeDeeRect
  5458. strChecked
  5459. strChecked
  5460. bottomLine
  5461. strChecked
  5462. topLine
  5463. strChecked
  5464. strChecked
  5465. ,%H.%
  5466. 0,100,0
  5467. 0,0,0
  5468. 0,100,0
  5469. buttonclick
  5470. 0,100,0
  5471. switch
  5472. tvOn 
  5473. value
  5474. buttonclick
  5475. switch
  5476. (32)+32
  5477. (32)+32
  5478. --            
  5479. (32)+32
  5480. strChecked
  5481. strChecked
  5482. strChecked
  5483. strChecked
  5484. strChecked
  5485. strChecked
  5486. strChecked
  5487. strChecked
  5488. strChecked
  5489. strChecked
  5490. strChecked
  5491. strChecked
  5492. strChecked
  5493. strChecked
  5494. strChecked
  5495. strChecked
  5496. strChecked
  5497. strChecked
  5498. strChecked
  5499. strChecked
  5500. strChecked
  5501. strChecked
  5502. strChecked
  5503. strChecked
  5504. strChecked
  5505. strChecked
  5506. strChecked
  5507. strChecked
  5508. out,true
  5509. ThreeDeeRect
  5510. strChecked
  5511. strChecked
  5512. bottomLine
  5513. strChecked
  5514. topLine
  5515. strChecked
  5516. false
  5517. about
  5518. screen
  5519. buttonclick
  5520. buttonclick
  5521. isOpen 
  5522. "tv 1"
  5523. tvOn 
  5524. T"screen" 
  5525.     close 
  5526. "about"
  5527. strChecked
  5528. strChecked
  5529. strChecked
  5530. 0"@"J
  5531. strChecked
  5532. strChecked
  5533. T#d#J
  5534. strChecked
  5535. strChecked
  5536. strChecked
  5537. strChecked
  5538. strChecked
  5539. ,&<&J
  5540. strChecked
  5541. strChecked
  5542. L'\'J
  5543. strChecked
  5544. strChecked
  5545. strChecked
  5546. strChecked
  5547. strChecked
  5548. strChecked
  5549. strChecked
  5550. B+R+J
  5551. strChecked
  5552. strChecked
  5553. childloc
  5554. l,|,J
  5555. strChecked
  5556. frame
  5557. strChecked
  5558. b-r-J
  5559. strChecked
  5560. lastTime
  5561. strChecked
  5562. strChecked
  5563. Animation Book
  5564. Created in
  5565. ToolBook 3.0
  5566. Asymetrix Corporation
  5567. strChecked
  5568. R0b0J
  5569. strChecked
  5570. strChecked
  5571. F1V1J
  5572. strChecked
  5573. strChecked
  5574. screen
  5575. >2J2mp
  5576. X2h2J
  5577. lastTime
  5578. strChecked
  5579. strChecked
  5580. strChecked
  5581. strChecked
  5582. strChecked
  5583. Written by
  5584. Joseph Brickkkin
  5585. ToolBook 3.0
  5586. Asymetrix Corporation
  5587. maxBounce
  5588. myInfo
  5589. -30,3,1
  5590. strChecked
  5591. -30,2,1
  5592. strChecked
  5593. strChecked
  5594. clock
  5595. childloc
  5596. strChecked
  5597. strChecked
  5598. screen
  5599. lastTime
  5600. strChecked
  5601. strChecked
  5602. strChecked
  5603. angle
  5604. strChecked
  5605. strChecked
  5606. strChecked
  5607. enterbackground
  5608. about
  5609. keychar
  5610. keyEnter
  5611.             close 
  5612. "about"
  5613. 0,0,0
  5614. screen
  5615.     screen = 
  5616. tvOn 
  5617. strChecked
  5618. strChecked
  5619. Animation Book
  5620. Created in
  5621. Multimedia
  5622. ToolBook 3.0
  5623. Asymetrix Corporation
  5624. screen
  5625. ,%H.%
  5626. 0,100,0
  5627. 0,0,0
  5628. 0,100,0
  5629. tvOn 
  5630. value
  5631. lastTime
  5632. strChecked
  5633. strChecked
  5634. screen
  5635. 66,67,68,23,78
  5636. curPat
  5637. itemoffset
  5638. patternlist
  5639. notifybefore 
  5640.     patternlist = "66,67,68,23,78"
  5641.     curPat = 
  5642.     nextPat = itemoffset(
  5643. !,patternList) 
  5644. lastTime
  5645. strChecked
  5646. tv switch
  5647. strChecked
  5648. screen
  5649. lastTime
  5650. strChecked
  5651. strChecked
  5652. strChecked
  5653. strChecked
  5654. strChecked
  5655. screen
  5656. lastTime
  5657. strChecked
  5658. placeholder
  5659. strChecked
  5660. enterpage
  5661. leavepage
  5662. credit
  5663. strChecked
  5664. Melody Christensen
  5665. credit
  5666. strChecked
  5667. Artwork byyyyyyy
  5668. train
  5669. scriptRecorderPopup1
  5670. toolbar
  5671. scriptRecorderPopup2
  5672. pageUnits
  5673. newChapterOrTopic
  5674. outlineOrganizer
  5675. aboutAnimation
  5676. tableOfContents
  5677. tv switch
  5678. Chapter Headings
  5679. Topics
  5680. toolbar
  5681. newpage
  5682. previous
  5683. first
  5684. strChecked
  5685. 9501231240428864061321273852
  5686. 9501231240428864061321273852
  5687. ASYM_TpID
  5688. myChapterID
  5689. myPages
  5690. Moving objects
  5691. label
  5692. Most animation involves moving an object from one place to another. The topics in this section discuss the various techniques for moving objects using OpenScript.
  5693. strChecked
  5694. placeholder
  5695. WjpositionChildViewer
  5696. train
  5697. <KinitAnimation
  5698. enterpage
  5699. train
  5700. leavepage
  5701. ,%H.%
  5702. newbnds
  5703. positionChildViewer
  5704. .animate
  5705. train
  5706. serves 
  5707. %the placeholder 
  5708. train animation 
  5709. -- on 
  5710. opens 
  5711. . On 
  5712. sends 
  5713. animate message
  5714. notifyAfter 
  5715. initAnimation 
  5716. positionChildViewer 
  5717. -- close 
  5718. notifyBefore 
  5719. isOpen 
  5720. -- sizes 
  5721. specified 
  5722. r childViewer, bnds
  5723.     newbnds= pageUnitsToClient(
  5724. strChecked
  5725. strChecked
  5726. strChecked
  5727. leavepage
  5728. enterpage
  5729. 7,6,11,4,3,12
  5730. ASYM_BeenHere
  5731. 7,6,11,4,3,12
  5732. Frame animation
  5733. label
  5734. myChapterID
  5735. chapterCount
  5736. topicCount
  5737. myPages
  5738. A common method to display a complex animation is to create several frames and show them in a series, similar to the way a movie works. This section covers the basics of frame animation using OpenScript.
  5739. strChecked
  5740. strChecked
  5741. strChecked
  5742. strChecked
  5743. strChecked
  5744. strChecked
  5745. strChecked
  5746. strChecked
  5747. strChecked
  5748. strChecked
  5749. 4    D    J
  5750. strChecked
  5751. strChecked
  5752. strChecked
  5753. strChecked
  5754. strChecked
  5755. strChecked
  5756. strChecked
  5757. strChecked
  5758. strChecked
  5759. strChecked
  5760. strChecked
  5761. strChecked
  5762. strChecked
  5763. strChecked
  5764. strChecked
  5765. strChecked
  5766. strChecked
  5767. strChecked
  5768. strChecked
  5769. strChecked
  5770. strChecked
  5771. strChecked
  5772. strChecked
  5773. strChecked
  5774. trailerCountdown
  5775. lastTime
  5776. myAngle
  5777. strChecked
  5778. strChecked
  5779. strChecked
  5780. strChecked
  5781. minute
  5782. strChecked
  5783. counter
  5784. strChecked
  5785. enterpage
  5786. 13,14,15
  5787. 13,14,15
  5788. Using path animation
  5789. label
  5790. myChapterID
  5791. myPages
  5792. The authoring system book (mtb30.sbk) offers a way to create complex animation without writing complex code.
  5793. To distribute an application with animationr more information...........................
  5794. out,true
  5795. ThreeDeeRect
  5796. strChecked
  5797. strChecked
  5798. bottomLine
  5799. strChecked
  5800. topLine
  5801. strChecked
  5802. in,ms
  5803. ThreeDeeRect
  5804. strChecked
  5805. bottomLine
  5806. strChecked
  5807. topLine
  5808. strChecked
  5809. strChecked
  5810. false
  5811. showAllFrames
  5812. Electron 2
  5813. MplayAnimation
  5814. animSysbookLoaded
  5815. enterpage
  5816. ZstopAnimation
  5817. animSysbookLoaded
  5818. leavePage
  5819. notifyBefore 
  5820. animSysbookLoaded()
  5821. playAnimation 1 
  5822. stopAnimation
  5823. 0,0,-752,-10,-830,-210,-767,-400,10,-405,730,-390,790,-225,808,-10,10,0
  5824. ,true,,true,,true,,true
  5825. Constant
  5826. FALSE
  5827. FALSE
  5828. 6257,4435
  5829. 0,0,59,59,-151,-4,-92,55,-302,-14,-243,45,-452,-31,-393,28,-600,-62,-541,-3,-740,-117,-681,-58,-823,-227,-764,-168,-705,-317,-646,-258,-560,-360,-501,-301,-411,-383,-352,-324,-261,-397,-202,-338,-110,-403,-51,-344,41,-404,100,-345,192,-398,251,-339,343,-386,402,-327,493,-366,552,-307,640,-332,699,-273,770,-258,829,-199,745,-128,804,-69,610,-63,669,-4,462,-31,521,28,312,-13,371,46,161,-4,220,55
  5830. 59,59
  5831. 59,59
  5832. anim_animationSettings
  5833. Electron 1
  5834. MplayAnimation
  5835. animSysbookLoaded
  5836. enterpage
  5837. ZstopAnimation
  5838. animSysbookLoaded
  5839. leavePage
  5840. notifyBefore 
  5841. animSysbookLoaded()
  5842. playAnimation 1 
  5843. stopAnimation
  5844. anim_animationSettings
  5845. Electron 3
  5846. MplayAnimation
  5847. animSysbookLoaded
  5848. enterpage
  5849. ZstopAnimation
  5850. animSysbookLoaded
  5851. leavePage
  5852. notifyBefore 
  5853. animSysbookLoaded()
  5854. playAnimation 1 
  5855. stopAnimation
  5856. 0,0,-105,15,-285,-45,-495,-225,-780,-465,-960,-675,-1080,-915,-1095,-1005,-1020,-1050,-900,-1020,-585,-840,-270,-510,-165,-360,-75,-195,0,-45
  5857. ,,,,,,,,,,,,,,
  5858. Constant
  5859. FALSE
  5860. FALSE
  5861. 6825,4755
  5862. 0,0,59,59,-104,15,-45,74,-204,-18,-145,41,-300,-57,-241,2,-379,-126,-320,-67,-459,-194,-400,-135,-539,-262,-480,-203,-619,-330,-560,-271,-700,-397,-641,-338,-780,-465,-721,-406,-848,-545,-789,-486,-917,-624,-858,-565,-977,-709,-918,-650,-1024,-803,-965,-744,-1071,-897,-1012,-838,-1094,-999,-1035,-940,-1009,-1047,-950,-988,-907,-1022,-848,-963,-815,-972,-756,-913,-724,-919,-665,-860,-633,-867,-574,-808,-551,-804,-492,-745,-478,-728,-419,-669,-406,-652,-347,-593,-333,-576,-274,-517,-262,-499,-203,-440,-202,-413,-143,-354,-146,-324,-87,-265,-95,-232,-36,-173,-47,-139,12,-80,0,-45,59,14
  5863. FALSE
  5864. 59,59
  5865. 59,59
  5866. anim_animationSettings
  5867. Electron 4
  5868. MplayAnimation
  5869. animSysbookLoaded
  5870. enterpage
  5871. ZstopAnimation
  5872. animSysbookLoaded
  5873. leavePage
  5874. notifyBefore 
  5875. animSysbookLoaded()
  5876. playAnimation 1 
  5877. stopAnimation
  5878. anim_animationSettings
  5879. enterpage
  5880. leavePage
  5881. 40,37,39,41
  5882. 40,37,39,41
  5883. up toolbar
  5884.     pref = 
  5885. enabled 
  5886. on the outline 
  5887. selectedTextLines 
  5888. currentPage 
  5889. xtopicsBackground()
  5890. pRef 
  5891. -- updates 
  5892. . sent 
  5893. entered 
  5894. that navigates 
  5895. initPage
  5896. "heading" 
  5897. label 
  5898. "chapterLabel" 
  5899. table 
  5900. contents 
  5901.     myPages = 
  5902. topicList 
  5903. updateCheckMarks
  5904. updateChecks 
  5905. clearing a 
  5906. "You cannot delete 
  5907. "Warning: 
  5908. operation 
  5909. 8be reversed 
  5910. ]Undo." 
  5911. f"OK" 
  5912. "Cancel"
  5913. ls = 
  5914. curBK = 
  5915. xchaptersBackground()
  5916. rebuildStructure
  5917. e= ls
  5918. -- same 
  5919. [handler
  5920. f"OK" 
  5921. ls = 
  5922. e= ls
  5923. newChapter
  5924. -- This 
  5925. {lives on the 
  5926. "Chapter Headings" 
  5927. serves
  5928. %table 
  5929. contents 
  5930. every chapter. Each 
  5931.  heading
  5932. -- has one 
  5933. a userProperty (myPages) containing a 
  5934. -- list 
  5935. idnumbers 
  5936. BookOverview dialog box 
  5937. passed 
  5938. handler via
  5939. pageList parameter.
  5940. topicList 
  5941. limited 
  5942.     maxTopics = 10
  5943.     listCount = 
  5944. curPageID
  5945.         -- find out 
  5946. that 
  5947. been visited
  5948.         v = 
  5949.         curG = 
  5950. ("g"&i) 
  5951.         o = 
  5952. curField
  5953. curCheck
  5954.         -- update 
  5955. each 
  5956. Mbased on 
  5957. label (
  5958.         -- 
  5959. checkmark, 
  5960. appropriate
  5961. p <> v
  5962.         -- store 
  5963. {navigation
  5964. pageID 
  5965.         -- 
  5966. hidden
  5967. remaining tabs
  5968. ("g"&i) 
  5969. -- updates 
  5970. checkmarks. 
  5971. called instead 
  5972. coming 
  5973. since only 
  5974. need 
  5975. be updated
  5976. updateChecks 
  5977.         -- 
  5978. representing a "
  5979.         -- 
  5980. made up 
  5981. a checkbutton.
  5982.         curTopic = 
  5983. ("g"&i) 
  5984.             o = 
  5985. fieldRef
  5986. checkRef
  5987.             curPageId = 
  5988. curpageID
  5989.     -- turn on 
  5990. selected 
  5991.     goPage = 
  5992. (pageid 
  5993. initPage 
  5994. -- highlights 
  5995. M"buttons" (they're really fields)
  5996. value
  5997. lightGray
  5998. darkBlue()
  5999. highlightColor 
  6000. value
  6001. shadowColor 
  6002. faceColor 
  6003. sized
  6004.     spupp = syspageunitsperpixel
  6005.     b = 
  6006.     syssuspendmessages = 
  6007.     -- flag 
  6008. %having been visited
  6009. up toolbar
  6010.     toolbarRef = 
  6011. enabled 
  6012.     -- only allow 
  6013. same chapter
  6014. xchaptersBackground()
  6015. "outline"
  6016. selectedTextLines 
  6017. currentPage 
  6018. -- initializes the label 
  6019. a user property 
  6020. each content 
  6021.  heading 
  6022. initPage
  6023. ID (mychapterID 
  6024. "topicLabel" 
  6025. pressed, 
  6026. contents 
  6027. V. myChapterId 
  6028. a userProperty containing 
  6029. . It 
  6030. 8overview dialog box.
  6031.     backpage = 
  6032. (myChapterID 
  6033. updateCheckMarks 
  6034. added, 
  6035. newTopic    
  6036.     nextPageParent = 
  6037. myPages 
  6038. deleted.
  6039. "You cannot 
  6040. "Warning: 
  6041. operation 
  6042. 5be reversed 
  6043. ]Undo." 
  6044. f"OK" 
  6045. "Cancel"
  6046. ls = 
  6047. curBK = 
  6048. xtopicsBackground() 
  6049. rebuildStructure
  6050. e= ls
  6051. -- maintain navigational structure 
  6052. f"OK" 
  6053. ls = 
  6054. e= ls
  6055. highlightColor 
  6056. value
  6057. shadowColor 
  6058. faceColor 
  6059. sized
  6060.     spupp = syspageunitsperpixel
  6061.     b = 
  6062.     syssuspendmessages = 
  6063. -- enable table 
  6064. contents 
  6065. enabled 
  6066. B"tableOfContents" 
  6067. "toolbar" 
  6068.     pref = 
  6069. pRef 
  6070. "heading" 
  6071. "Table 
  6072. -- Don't allow deletion 
  6073. "You cannot delete 
  6074. Ycutting 
  6075. "This template does 
  6076. xsupport adding 
  6077. initialize 
  6078. 4we land on 
  6079. initPage 
  6080. highlightColor 
  6081. value
  6082. shadowColor 
  6083. faceColor 
  6084. sized
  6085.     spupp = syspageunitsperpixel
  6086.     b = 
  6087.     syssuspendmessages = 
  6088. -- This 
  6089. {serves 
  6090. %the table 
  6091. contents 
  6092. 8. It 
  6093. updated
  6094. 'Book Overview dialog box
  6095. voutline 
  6096. pageList
  6097. limited 
  6098.     maxTopics = 8
  6099.     listCount = textlineCount(
  6100.         t = 
  6101.         -- find 
  6102. that 
  6103. has been visited
  6104.         curG = 
  6105. ("g"&i) 
  6106.         o = 
  6107. curField
  6108.         -- 
  6109.         -- store 
  6110. links 
  6111. pageID 
  6112. remaining tabs
  6113. ("g"&i) 
  6114.     -- turn on 
  6115. selected 
  6116.     goPage = 
  6117. initPage 
  6118. -- highlights 
  6119.  "buttons" (they're really fields)
  6120. value
  6121. lightGray
  6122. darkBlue()
  6123. -- updates 
  6124. checkmarks. Only checks 
  6125. chapter have 
  6126. updateChecks
  6127.     numChapters = 8
  6128.         -- 
  6129. representing a "
  6130.         -- each 
  6131. made up 
  6132. a checkbutton.
  6133. ("g"&i) 
  6134.             o = 
  6135.             -- 
  6136. Yreferences 
  6137. checkref
  6138.             -- 
  6139. stored 
  6140.             -- a 
  6141. userProperty myPages 
  6142.             subPages = mypages 
  6143.             -- walk through 
  6144.             -- 
  6145. curID
  6146. checkRef 
  6147. updateLabels
  6148.         -- 
  6149.         -- 
  6150. ("g"&i) 
  6151.             o = 
  6152.             -- 
  6153.  = label 
  6154. -- initializes the 
  6155. structure 
  6156. outline form 
  6157. chapters 
  6158. <current 
  6159. (curPageNum) 
  6160. highlighted.
  6161. initPage listBoxText
  6162.     outlineField = 
  6163.         pNum = 
  6164. selectedTextlines 
  6165. 3-1,1))
  6166. scrollToSelectedTextline 
  6167. updateHeader 
  6168. -- reorders 
  6169. 8based on 
  6170. Qmade 
  6171. ZcurChapterID,curChapterTitle,pageList,chapterList
  6172.     voutline = 
  6173.     -- walk through each 
  6174.     chapterCount = 0
  6175.         curTextLine = 
  6176.         curID = extractID(
  6177.         -- 
  6178. numbers. 
  6179. rebuildStructure 
  6180. -- gets 
  6181. strings 
  6182. following two types:
  6183. p><tabs><
  6184. extractName strng
  6185.     tabOffset = 
  6186.     lastTabLoc = 
  6187. -- puts a 
  6188. insertName 
  6189. ,newName
  6190. "<Untitled>"
  6191.         startLoc = 2
  6192.     endLoc = 
  6193. R(startloc - 1) 
  6194. -- pulls 
  6195. zout 
  6196. -- <n: ><
  6197. extractNumber txt
  6198. colOffset 
  6199. ~(":",
  6200. .- 1 
  6201. istype("
  6202. buttonclick
  6203.     o = 
  6204. "outline" 
  6205.     stl = selectedTextLines 
  6206.     tlineNum = 
  6207. chapterOrPage 
  6208. "Delete 
  6209. (s)?" 
  6210. f"OK" 
  6211. "Cancel"
  6212. startline 
  6213.         ssm = sysSuspendMessages
  6214. (stl)
  6215. curID = extractID(
  6216. BstartLine 
  6217. "Cannot delete the 
  6218. /" && 
  6219. /& "."
  6220.             curBK = 
  6221. xtopicsBackground() 
  6222. xchaptersBackground()
  6223.  = ssm
  6224. rebuildStructure
  6225. initPage 
  6226. 4s_cancel
  6227. keyEnter
  6228. updateText
  6229. lineNum 
  6230. chapter 
  6231. fref 
  6232. "outline"
  6233. curLine 
  6234. insertName(
  6235.     pRef = 
  6236. (pageID 
  6237. label 
  6238. chaptersBackground()
  6239. updateLabels 
  6240. "tableofcontents" 
  6241.         bkRef = 
  6242. topicsBackground()
  6243. initPage 
  6244. 4s_enterText
  6245. enabled 
  6246. "updateButtons" 
  6247. renumberText
  6248. count 
  6249. extractNumber(
  6250. ~(":",
  6251. t)-1 
  6252. key,isShift
  6253. keyupArrow && keyDownArrow && keyFirst && keyLast
  6254. oselectedtextlines
  6255. updateHeader tl
  6256. 4s_cancel
  6257.         stl = selectedTextLines 
  6258. lineNum
  6259.     fref = 
  6260.     txtline = 
  6261. chapter 
  6262. txtLine)
  6263. extractName(
  6264. pageId 
  6265. extractID(
  6266. enabled 
  6267. "updateButtons" 
  6268. maxChapter
  6269. C(t) 
  6270. -- This 
  6271. main dragAndDrop code:
  6272. 4s_navFromPalette
  6273.         sls = 
  6274. gotopage 
  6275. initpage 
  6276. enormous handler handles selecting, dragging, 
  6277. dropping 
  6278. listbox
  6279. ZstartLine,endLine,lineHeight,mybounds,xloc,mytext
  6280.     -- Find 
  6281. Bclicked on. 
  6282. will be 
  6283. starting 
  6284.         -- Break 
  6285. user 
  6286. V edge 
  6287.         startline = 
  6288. <= 0 
  6289. Uwe want 
  6290. n. we 
  6291. value
  6292.     -- later 
  6293. we've 
  6294.  a heading:
  6295.     endline = 
  6296.     -- lineheight 
  6297. pageUnits 
  6298. (see 
  6299. below):
  6300.     -- Cache commonly used values 
  6301.     xpix = 
  6302. sysPageUnitsPerPixel
  6303.     ypix = 
  6304.     myBounds = 
  6305.     myText = 
  6306.     marker = 
  6307.     totalLineCount = 
  6308.  we know 
  6309. be between 
  6310. sides 
  6311.     -- The following section selects 
  6312. B(s):
  6313.     -- lineList 
  6314.  corresponding 
  6315.     -- we wish 
  6316. 9-- (We've 
  6317.         headingOrTopic = "
  6318.         -- Walk down 
  6319. Zwe hit another 
  6320.         -- incrementing 
  6321. needed:
  6322. oselectedTextlines 
  6323. moves 
  6324. arrow up 
  6325.     -- targetLine 
  6326. insertion point 
  6327. loop executes 
  6328. mousebutton 
  6329. released:
  6330.         mouseLoc = 
  6331.             -- 
  6332. above 
  6333. -- calculate 
  6334. Ucurrently 
  6335.             -- 
  6336. there's 
  6337. beyond 
  6338.             -- 
  6339. somewhere 
  6340.             pnt = 
  6341.             -- 
  6342. -- vertLoc 
  6343. -- lineYloc returns 
  6344. `location 
  6345. a given 
  6346.             -- 
  6347.             -- 
  6348. inside 
  6349. U(s):
  6350. toward 
  6351. U(s) 
  6352. 1 place 
  6353.         -- 
  6354. that we 
  6355.         -- numLines 
  6356. .     + 1
  6357.         -- 
  6358. targetline > 
  6359.         -- we 
  6360. asure 
  6361. moved 
  6362.         -- 
  6363.         -- 
  6364. original 
  6365.         -- 
  6366. "," & 
  6367. reorder
  6368. scrollToSelectedTextLine
  6369. (stl) 
  6370.     b = 
  6371.     s = 
  6372. > s + 
  6373. - numlines,0)
  6374. units 
  6375.  - 1 - 
  6376. -- adjusts 
  6377. . Called 
  6378. adjustsize n
  6379.     b = 
  6380.  * n + 3*
  6381.     v = 
  6382. b - 16*
  6383. highlightColor 
  6384. value
  6385. shadowColor 
  6386. faceColor 
  6387. sized
  6388.     spupp = syspageunitsperpixel
  6389.     b = 
  6390.     syssuspendmessages = 
  6391. -- the 
  6392. {loc, isShift
  6393. ZoldX,oldy,newX,newY
  6394.     SM_SWAPBUTTON = 23
  6395.     b = 
  6396.     xGroup = 
  6397. "xLine"
  6398.     yGroup = 
  6399. "yLine"
  6400.     xpix = 
  6401. sysPageUnitsPerPixel
  6402.     ypix = 
  6403.     dx = 
  6404.     dy = 
  6405.     cb = 
  6406. "client"
  6407.     xfield = 
  6408.     yfield = 
  6409.     descrField = 
  6410.     thisWin = 
  6411. Window
  6412. user has swapped mouse buttons, since 
  6413. returns
  6414.     -- hardware key down.
  6415. getsystemmetrics(
  6416.         leftMouseButton = 
  6417. loop occurs 
  6418. whole 
  6419. drags
  6420. (<> loc
  6421.             -- 
  6422. asure 
  6423. within 
  6424.             newP = 
  6425. cb + 330,
  6426. X-dx),
  6427. cb - (
  6428. cb+330,
  6429.  - dy),
  6430. cb - (
  6431.             b = 
  6432.             y = 
  6433. b + (
  6434.             x = 
  6435. b + (
  6436.             -- endpoint 
  6437. handler 
  6438. dimension lines)
  6439.             -- that sizes them.
  6440. a hidden 
  6441. Bthat writes the 
  6442. %supposedly
  6443. -- written 
  6444. recorder.
  6445. animate
  6446. buttonClick" & 
  6447.     -- optimization: store 
  6448. {reference 
  6449. %we will
  6450.     -- be refering 
  6451.     balloon = 
  6452.     cloud = 
  6453.     szb = 
  6454.     szc = 
  6455.     -- we are going 
  6456. walk 
  6457. , so let's
  6458.     -- cache them 
  6459.     vsb = 
  6460. m"balloonpath"
  6461.     vsc = 
  6462. m"cloudpath"
  6463. come 
  6464. a list 
  6465. pairs 
  6466.     -- one 
  6467. each vertex. For 
  6468. iteration 
  6469. loop, 
  6470.     -- we 
  6471.  grab 
  6472. y positions 
  6473. F, subtract half
  6474. positioning relative 
  6475. (vsc) 
  6476. xposb
  6477. yposb
  6478. xposc
  6479. yposc
  6480. buttonClick
  6481. PaintObject 
  6482. Page 
  6483. 4785,2184
  6484. Group 
  6485. 6203,1728
  6486. 4975,2146
  6487. 6090,1746
  6488. 5200,2146
  6489. 5956,1746
  6490. 5425,2178
  6491. 5822,1731
  6492. 5698,2229
  6493. 5661,1708
  6494. 5888,2267
  6495. 5548,1691
  6496. 6054,2267
  6497. 5448,1691
  6498. 6256,2273
  6499. 5330,1688
  6500. 6410,2248
  6501. 5238,1699
  6502. 6552,
  6503. 5153,1711
  6504. 6647,2184
  6505. 5097,1728
  6506. 6849,2133
  6507. 4977,1752
  6508. 7027,2108
  6509. 4871,1763
  6510. 7193,2108
  6511. 4773,1763
  6512. 7335,2121
  6513. 4688,1757
  6514. highlightColor 
  6515. value
  6516. shadowColor 
  6517. faceColor 
  6518. sized
  6519.     spupp = syspageunitsperpixel
  6520.     b = 
  6521.     syssuspendmessages = 
  6522. highlightColor 
  6523. value
  6524. shadowColor 
  6525. faceColor 
  6526. sized
  6527.     spupp = syspageunitsperpixel
  6528.     b = 
  6529.     syssuspendmessages = 
  6530.     -- sends the animate message handled 
  6531. -- moves 
  6532. 2golf ball 
  6533. ?hole, no matter where 
  6534. starts 
  6535. Zsteps,ballRef,ballLoc,xmove,ymove
  6536. b. Note: 
  6537. higher 
  6538. more slowly 
  6539. will 
  6540. g = 20
  6541.     -- optimization: store reference 
  6542. Hbe refering 
  6543. over 
  6544.     ballref = 
  6545. two positions 
  6546. figure out how far
  6547.     -- we have 
  6548. nthem horizontally 
  6549. vertically on each 
  6550.     -- We 
  6551. Hfinding 
  6552. difference 
  6553.     -- distances 
  6554. divide 
  6555.     holeLoc = 
  6556.     -- now that we know 
  6557. loop:
  6558. somewhere 
  6559. . This 
  6560. randomBallLocation
  6561. location on 
  6562.     greenRef = 
  6563.     gbounds = 
  6564.     gsize = 
  6565.     bSize = 
  6566.     xmax = 
  6567.     ymax = 
  6568. n)),\
  6569. -- on 
  6570. , makes ball bounce around within 
  6571. "ballBounds"
  6572. notifyBefore 
  6573.     velocityConstant = 15
  6574.     -- myInfo 
  6575. a userProperty storing information needed 
  6576. figure out 
  6577.     -- where 
  6578. nthe 
  6579. t. It 
  6580. stored 
  6581. a list because
  6582.     -- accessing 1 
  6583. faster than 
  6584.     -- The 
  6585. holds 
  6586. Wfollowing 
  6587.     -- <
  6588. pageUnits moved 
  6589. iterations 
  6590. apex>,
  6591.     -- <current direction: 1 
  6592. up, -1 
  6593. down>
  6594.     xVector= 
  6595.     elapsedTime= 
  6596.     currentDirection= 
  6597. =I have 
  6598. inside
  6599.     bnds = 
  6600.     frameBnds = 
  6601.     -- Each 
  6602. used a unit 
  6603. Ipassed. At the
  6604. 0; 3 
  6605. later, 
  6606.     -- ElapsedTime 
  6607. multiplied 
  6608. acceleration constant 
  6609. calculate 
  6610. amount 
  6611. needs 
  6612. nover 
  6613. instance).
  6614.     -- When 
  6615. going 
  6616. , we 
  6617. up, we 
  6618.     yVector = 
  6619.     newPosition = 
  6620.     -- now that we've 
  6621. , let's 
  6622. whether we 
  6623. change 
  6624. `directions
  6625.         -- 
  6626. we've hit 
  6627. ) + 30 >= 
  6628. omaxBounce
  6629.         -- 
  6630. we're 
  6631.  <= 0
  6632.             -- update 
  6633. we've 
  6634. either 
  6635.         -- 
  6636.         -- 
  6637. ) >= 
  6638. -1 * 
  6639. -- sets sweep hand 
  6640. angle/360. At 0, the 
  6641. points up.
  6642. -- rotation 
  6643. clockwise
  6644.     fullRev = 360 -- constant 
  6645. degrees 
  6646. & revolution.
  6647. current 
  6648. stored property
  6649. myAngle 
  6650.     -- find 
  6651.     coords = 
  6652.     ctr = (
  6653. ")/2,\
  6654. Tradius 
  6655.     = ((
  6656. _) - (
  6657. k))/2
  6658. radians. (2*PI 
  6659.     -- Note: PI/2 
  6660. subtracted so 0 
  6661. Lrather than 
  6662.     minutesAngle = (
  6663. ) * (2 * PI) - (PI / 2)
  6664. ctr,\
  6665. {)), \
  6666. -- moves sweephand one 
  6667. around 
  6668. should take 1 
  6669. complete 
  6670. notifybefore 
  6671.     steps = 10 -- 
  6672.     millsecs = 1000 -- 
  6673. milliseconds 
  6674.     maxDisplay = 9 -- highest 
  6675. zdisplayed
  6676.     curTime = timeGetTime()
  6677.     newAngle = (
  6678. kmillSecs)/
  6679. we need 
  6680. change 
  6681.         fref = 
  6682. "counter" 
  6683.         t = 
  6684.             t = 
  6685.     -- update 
  6686. -- links 
  6687. initializes widget
  6688. Xmmsystem
  6689. entering a 
  6690. pasted 
  6691. notifyAfter 
  6692. -- This handler accelerates 
  6693. its current 
  6694. a terminating y 
  6695. , simulating earth's gravity.
  6696. -- Since the animation 
  6697. based on 
  6698. will fall 
  6699. 'same 
  6700. -- on 
  6701. processor.
  6702. Also, since you provide 
  6703. {'s relative 
  6704. falls should look natural.
  6705. -- Parameters:
  6706. -- ob: 
  6707. -- heightInMeters: how tall 
  6708. represented 
  6709. SUPPOSED 
  6710. example, 
  6711. {represents a trash can, 
  6712. F"1" would work.)
  6713. -- y1: 
  6714. destination y coordinate, where 
  6715. want 
  6716. stop.
  6717. -- v0: 
  6718. starting 
  6719. `velocity (optional) 
  6720.  per 
  6721. -- (note: 
  6722. ToolBook 
  6723. 4, down 
  6724. positive, up 
  6725. negative)
  6726. ,y1,v0
  6727.     -- link timeGetTime(): 
  6728. returns 
  6729. milliseconds
  6730. Xmmsystem
  6731. xsupplied
  6732.         v0 = 0
  6733.     obBounds = 
  6734. units
  6735.     heightInTwips = 
  6736.     -- find out 
  6737. many 
  6738. < there are 
  6739.     twipsPerMeter = 
  6740. constant 
  6741. acceleration due 
  6742.     -- (
  6743.  = 9.8
  6744.     -- store 
  6745.     y0 = 
  6746.     t0 = timegettime()
  6747. loop moves 
  6748. reaches y1
  6749.         -- 
  6750. elapsed 
  6751. started, 
  6752.         t = (
  6753. -t0)/1000
  6754.         -- 
  6755. speed 
  6756.         v = (v0 + 
  6757.         -- 
  6758. formula 
  6759.         -- on 
  6760. v0, y0, 
  6761. Note 
  6762. conversion.
  6763.         y = y0 + (v0*t+.5*
  6764. *(t^2))*
  6765.         -- 
  6766. y, making sure we haven't gone 
  6767. v >= 0
  6768.             y = 
  6769. j(y,y1-
  6770. Zy + 
  6771. >= y1 
  6772. v >=0
  6773. -- shows thought bubble, safe. Drops 
  6774.     , bounces 
  6775. animate
  6776.     safeHeight = 2 -- 
  6777. "real life" (
  6778.     y0 = 
  6779. U"ground"
  6780. ,y0,-2
  6781. ,y0,-.5
  6782.     -- initialize 
  6783. initAnimation
  6784. wstate
  6785. initanimation
  6786. origloc 
  6787. -- animates globe, consisting 
  6788. 16 paintobjects named "1" 
  6789. notifybefore 
  6790.     numFrames = 16 -- 
  6791.     -- info 
  6792. a userProp that has three values (1 userProperty 
  6793. quicker 
  6794. read than 3). The 
  6795. Yare:
  6796.     -- <
  6797. occurred>,<current frame displayed>,
  6798.     -- <
  6799. delay between frames>
  6800. Zvars
  6801. lastTime
  6802. lastFrame
  6803.     newTime = timeGetTime()
  6804.     vref = 
  6805. period 
  6806. passed. If so, 
  6807. u >= 
  6808.         newFrame = 
  6809.         -- update 
  6810. newframe 
  6811. increase 
  6812. decrease the speed 
  6813. animation.
  6814. milliseconds.
  6815. -- initialize 
  6816. widget
  6817. Xmmsystem
  6818. entering a 
  6819. pasted 
  6820. notifyAfter 
  6821. -- moves 
  6822. {moveObj along pathObj. 
  6823. -- steps 
  6824. movements per segment 
  6825. moveObjectAlongPath 
  6826. "You can only 
  6827. lines 
  6828. angledLines."
  6829.     vert = 
  6830. startX
  6831. startY
  6832.     obSize = 
  6833.         -- here we will 
  6834. figure out how far
  6835.         -- we have 
  6836. nthem horizontally 
  6837. vertically on each 
  6838.         -- We 
  6839. Hfinding 
  6840. difference 
  6841.         -- distances 
  6842. divide 
  6843.         xmove = (
  6844.         ymove = (
  6845.         -- now that we know 
  6846.         -- 
  6847. loop:
  6848. dial 
  6849. angle
  6850.     ctr = 
  6851. coords = 
  6852. radius = ((
  6853. ) - (
  6854. ())/2
  6855. dialAngle = (
  6856. _/360) * (2 * PI) - (PI / 2)
  6857. U"hand" 
  6858. + (.8 * 
  6859. f)), \
  6860. (.8 * 
  6861. )/2,\
  6862.     pagelist = pageList()
  6863. H360 
  6864. itemoffset(
  6865. T) + 1
  6866. "tv switch"
  6867. ("tv" && 
  6868. notifybefore 
  6869. "1,2,5,3"
  6870. notifyBefore 
  6871.     velocityConstant = 6
  6872.     -- info 
  6873. a list 
  6874. needed information 
  6875. %follows:
  6876. *= myInfo 
  6877.     xVector= 
  6878.     elapsedTime= 
  6879.     currentDirection= 
  6880.     bnds = 
  6881.     frameBnds = 
  6882. screen 
  6883.     yVector = 
  6884.     newPosition = 
  6885.     -- now that we've moved, let's 
  6886. whether we have 
  6887. change directions
  6888. ) + 30 >= 
  6889. omaxBounce
  6890.  <= 0
  6891. ) >= 
  6892. -1 * 
  6893. positionChildViewer childViewer, bnds
  6894.     newbnds= pageUnitsToClient(
  6895. notifyAfter 
  6896. "credit" 
  6897. nameList()
  6898.     vref = 
  6899. "extra"
  6900. pagescroll 
  6901. currentpage 
  6902. "train"
  6903. r vRef,
  6904. initAnimation 
  6905. isOpen 
  6906. notifyBefore 
  6907. animate 
  6908.         nl = 
  6909. itemoffset(
  6910.         newName = 
  6911. (nl)+1) 
  6912.         close 
  6913. namelist
  6914. "Janet Strong,Melody Christensen,Shuang Li,Joseph Brick"
  6915. sized
  6916. ZbuttonPos
  6917.     spupp = sysPageUnitsPerPixel
  6918. pRef 
  6919. currentPage 
  6920. gHeader 
  6921. gButtons 
  6922. "buttonGroup" 
  6923. gOutline 
  6924. "outline" 
  6925. marker 
  6926. oclientsize
  6927. rightBorder 
  6928. cs - 
  6929. bottomBorder 
  6930. cs - 
  6931. bSize 
  6932. cs - 
  6933. sizeIt 
  6934.  - 4*
  6935. fb+10*
  6936. fb - 18*
  6937. openWindow
  6938. Zsm_cxframe,sm_cyframe,sm_cycaption,defaultSize,defaultPosition
  6939. {winRef
  6940. 4metric indexes:
  6941.  32 -- width 
  6942. sizable 
  6943.  33 -- height 
  6944. 4 -- 
  6945. 3000,5000
  6946. "0,0"
  6947. X"user"
  6948.         INT getSystemMetrics(
  6949.     -- cache 
  6950. {references
  6951. stored clientSize 
  6952. ini file
  6953. clientSz 
  6954. pageUnitsToClient(
  6955. the borders 
  6956. captions 
  6957. extraWidth 
  6958. extraHeight 
  6959. )*2+\
  6960. winref 
  6961.     -- calculate maximimum 
  6962. ebased on 
  6963. maxSize 
  6964. "outlineOrganizer" )
  6965. maximumSize 
  6966. chandling 
  6967. about box:
  6968. windowsized 
  6969. closeWindow
  6970. statusbar
  6971. -- initialize the 
  6972. sized
  6973.     outfield = 
  6974. "outline" 
  6975.         ypix = 
  6976. sysPageUnitsPerPixel
  6977.         o = 
  6978.         b = 
  6979.         syssuspendmessages = 
  6980. adjustsize 
  6981. ylineheight 
  6982. o,3) 
  6983. font gets changed 
  6984. , reset 
  6985. fontChange 
  6986. 4s_lheight
  6987. notifyAfter 
  6988. -- returns 
  6989. a given 
  6990. linkStuff
  6991. fref 
  6992. makeFont 
  6993. stringHeight()
  6994. destroyFont
  6995.  windows 
  6996. stuff 
  6997. linkstuff
  6998. X"gdi"
  6999. getTextExtent(
  7000. gselectObject(
  7001. deleteObject(
  7002. gcreateFont(
  7003.     linkDLL "user"
  7004. ggetDC(
  7005. releaseDC(
  7006. makefont fontName,pitch,
  7007. weight 
  7008. ghfont,hOldObject,hdc
  7009. sysClientHandle)
  7010. syspageunitsperpixel
  7011. fheight 
  7012. ((1440/
  7013. /72)) -- 
  7014. pixels
  7015. hFont 
  7016. <,0,0,0,
  7017. ,0,0,0,0,0,0,0,0,
  7018. "Failure: no logical 
  7019. created."
  7020. -- kills 
  7021. sysclientHandle,
  7022. twips, 
  7023. length 
  7024. stringLen 
  7025.     ,strlen
  7026. strLen 
  7027. k65536) * 
  7028. "aaa",3) 
  7029. y65536) * 
  7030.  1993,1994. Asymetrix Corporation. All Rights Reserved.
  7031. /gives you permission 
  7032. e, revise, 
  7033. reuse the
  7034. -- individual 
  7035. scripts 
  7036. your own
  7037. -- applications.
  7038. You may 
  7039. H entire 
  7040. -- substantial part 
  7041. redistribution 
  7042. ` product.
  7043. retains 
  7044.  copyright on 
  7045.  original elements 
  7046.  . Include 
  7047.  notice "Portions 
  7048.  1993, 1994. 
  7049. they contain 
  7050. copied 
  7051. -- tableOfContents message sent 
  7052. Htoolbar 
  7053. pressed
  7054.  Standard ToolBook messages 
  7055.  menus, initialize Back handling
  7056. enterApplication
  7057. "mtb30anm.sbk" 
  7058. enabled 
  7059. sysRuntime 
  7060. fhelpText "Options 
  7061. modifying content 
  7062. template."
  7063. e"Template &Outline" alias "outline" 
  7064. c"contents" 
  7065. fhelptext\
  7066.          "Displays/hides 
  7067. I palette."
  7068. e"New &Chapter..." 
  7069.          "Adds 
  7070. qchapter 
  7071. e"Change C&
  7072. Name.." 
  7073. changeName" 
  7074.          "Changes 
  7075. current 
  7076. Topic..." 
  7077. e"Using 
  7078. helpTemplate" 
  7079. ) on 
  7080. firstTime 
  7081. rebuildStructure
  7082. xanimSysbookLoaded()
  7083. "The path animation sysbook 
  7084. xloaded. Animations 
  7085. the ""Path 
  7086. "" sections will 
  7087. . Be sure that either 
  7088. .sbk 
  7089. mtb30ani.
  7090. are included 
  7091. startupSysbooks."
  7092. checkmarks
  7093.     bk = topicsBackground()
  7094. visited 
  7095. "tableofcontents" 
  7096. entermenu menuName,menuAlias
  7097. chaptersBackground() 
  7098.             disable 
  7099. TopicsBackground() 
  7100. leaveapplication
  7101. isOpen 
  7102. focusWindow
  7103.     mstate = menuItemChecked("
  7104.             close 
  7105. inserted 
  7106. area,
  7107. beyond 
  7108. 4s_temp_animNewBackground
  7109. chapterCount 
  7110. < chapterLimit()
  7111.  "skipDialog"
  7112.         lastPage = 
  7113. "This 
  7114. limited 
  7115. " && 
  7116.  && "
  7117.  Utility handlers 
  7118. -- returns 
  7119.  allowed 
  7120. /reference 
  7121. headings 
  7122.  updatePalette
  7123. ZpagesOfEachChapter,curPage,curBackground,prevChapterHeadingPage,chapterList,listBoxText
  7124. ) = 2
  7125.     pageCounter = 2
  7126.         curPageId = 
  7127.         pagelabel = 
  7128. xNULL
  7129. myPages 
  7130. curChapterId = 
  7131. myChapterID 
  7132.  = curChapterID
  7133. & "," & pageLabel 
  7134. & tabSpacer() & 
  7135.             -- 
  7136. /. Move 
  7137. ;backgrounds
  7138.     voutline 
  7139. initPage 
  7140. currentPage 
  7141. -- Used 
  7142.  box 
  7143. a dialog 
  7144. used 
  7145. store extra information 
  7146.     gets clipped 
  7147. side 
  7148. extractName t
  7149.     tabOffset = 
  7150. extractID t
  7151.     lastTabLoc = 
  7152. U(t) 
  7153. numerical location 
  7154. itemOffset itm,lst
  7155. color
  7156. middleGray
  7157. 240,63.5,2.1875
  7158. dark 
  7159. darkBlue
  7160. 240,25.125,100
  7161. tabs. 
  7162. serves a spacer between 
  7163. on each 
  7164. listbox. 
  7165.  Navigation 
  7166.     pref = 
  7167. updatechecks 
  7168.     mydir = 
  7169.     sen = sysErrorNumber
  7170.     se = 
  7171.     ss = 
  7172.     bref = 
  7173. u&"tmplhelp.tbk")
  7174. 1= ss
  7175. "Cannot find 
  7176. 8TMPLHELP.TBK"
  7177.         vref = 
  7178. defaultpage 
  7179. "cbt1" 
  7180. r= se
  7181. newChapter promptForName
  7182.         chapterName = "Untitled"
  7183. ("Enter 
  7184.             ls = 
  7185.             -- 
  7186. a clean 
  7187.             -- 
  7188. Fsuspend 
  7189. navigate 
  7190.             -- appropriate 
  7191. nterPage 
  7192.             ssm = syssuspendmessages
  7193. e= ls
  7194. " && 
  7195.  && "
  7196. newTopic pageNum
  7197.         ls = 
  7198.         -- 
  7199.         -- 
  7200.         -- 
  7201.  = ssm
  7202. e= ls
  7203. saveAs
  7204. aboutAnimate
  7205. %modal
  7206. anim_StartSize()
  7207. wQ<Zq
  7208. Q6`]Q6]`
  7209. fft<w
  7210. Ix~@f
  7211. Q6`]Q6]`
  7212. rV390
  7213. Q6`]Q6>`
  7214. &{&55?w8
  7215. ^H^O/O3{
  7216. B@^\T@
  7217. 3H5?wz6O
  7218. LjSzL
  7219. O?5?'
  7220. Z4}z)
  7221. TXX4hTn
  7222. X8ww0Z
  7223. 6Cu`p
  7224. TVxuKT
  7225. lSC00S0
  7226. 98@805Q}
  7227. n6Kn6
  7228. K4efMZlH
  7229. hwU@)
  7230. 0}4=&
  7231. uHw00
  7232. #5#H?
  7233. #Z#"@
  7234. {D?c5
  7235. L?nwKnr
  7236. jw/}/K/
  7237. {Y6K6
  7238. 3zK^:nK9wwnKf
  7239. lN0}0
  7240. t6KDn
  7241. :wwnKf
  7242. 3wntww<Kf
  7243. nww<Kf
  7244. S04z0
  7245. 3~D?0w3{
  7246. t^t[:[_{
  7247. etmBqeJ
  7248. R`t,k`
  7249. dHGDv+
  7250. )z~pf
  7251. IRAMDRIVESYS
  7252. RASSTARTEXE
  7253. RECORDERDLL
  7254. RIVETS  BMP
  7255. SCRNSAVESCR
  7256. SIGVIEW EXE
  7257. SONNE
  7258.