home *** CD-ROM | disk | FTP | other *** search
/ ToolBook 3.0 / ToolBook v3.0.iso / tb30 / samples / animate.tbk (.txt) < prev    next >
Encoding:
Asymetrix ToolBook File  |  1994-05-19  |  360.1 KB  |  4,268 lines

  1. wwwwp
  2. wwwwwwwp
  3. wwwwwwp
  4. wwwwwwp
  5. wwwwwp
  6. wwwwwp
  7. wwwwwp
  8. wwwwwwp
  9. wwwwwwp
  10. wwwwwwwp
  11. arrow5
  12. arrow1
  13. arrow2
  14. arrow3
  15. arrow4
  16. arrow6
  17. wwwwwwwwwwwwwwwwwwwwwwwwwwwwwww
  18. wwwwwwwwwwwwp
  19. wwwwwwwww
  20. wwwwwwwww
  21. wwwwwwww
  22. wwwwwwww
  23. wwwwwwww
  24. wwwwwwwwwwwwp
  25. wwwwww
  26. wwwwwww
  27. wwwwp
  28. wwwww
  29. wwwwwp
  30. wwwwwww
  31. wwwwp
  32. wwwwww
  33. DDDDD
  34. wwwww
  35. wwwwww
  36. DDDDD@
  37. wwwww
  38. DDDDDDD
  39. DDDDDDD@
  40. DDDDDDDDD
  41. wpwwp
  42. wwwww
  43. wwwwww
  44. wwwwww
  45. wwwwp
  46. wwwwwww
  47. wwwwww
  48. wwwwwwp
  49. wwwwwwww
  50. wwwwwww
  51. wwwwwwwwwwwp
  52. wwwwwwwww
  53. wwwwwwww
  54. wwwwwwwp
  55. wwwwwwwwww
  56. wwwwwwwwwwp
  57. wwwwwwwwwww
  58. wwwwwwwwwwwwww
  59. wwwwwwwwwwwww
  60. wwwwwwwwwwwwwwwwwwwwwwwwwwwwp
  61. wwwwwwwwwwwwwwwwwwwwwwwwwwwwp
  62. wwwwwwwwwwwp
  63. wwwwwwwwwwwp
  64. wwwwwwww
  65. wwwwwwwp
  66. wwwwww
  67. wwwwwwwwwww
  68. wwwwwwp
  69. wwwwwwwwwwwwwwp
  70. wwwwp
  71. wwwwwwwwwwwwwwwwwwp
  72. wwwwwww
  73. wwwwwp
  74. wwwww
  75. wwwwwwwwwwwwww
  76. wwwwwwwwwwwwwwwwwww
  77. wwwwwwwwwwwwwwwwwwwwwwwwwp
  78. wwwwwwwwwwwwwwwwwwwwwwwwwwp
  79. wwwwwwwwwwwwwwwwwwwwwww
  80. wwwwwwwwwwwwwwwwwwwwwwp
  81. wwwwwwwwwwwwwwwwwwwwp
  82. wwwwwwwwwwwwwwwwwww
  83. wwwwp
  84. wwwwwwwwwwwwwwwwwp
  85. wwwww
  86. wwwwwwwwwwwwwwwp
  87. wwwwp
  88. wwwwww
  89. wwwwwwwwwwwwwww
  90. wwwwwp
  91. wwwwwwp
  92. wwwwwwwwwwwww
  93. wwwwwp
  94. wwwwwwwp
  95. wwwwwwwwwww
  96. wwwwwwp
  97. wwwwwwwwp
  98. wwwwwwwp
  99. wwwwwwwp
  100. wwwwwwwwww
  101. wwwwwwwwwp
  102. wwwwwwwwwwww
  103. wwwwwwwwwwwp
  104. wwwwwwwwwwwwwwwwwwwwwwwwwwwwwww
  105. wwwwwwwwwwwwp
  106. wwwwwwwww
  107. wwwwwwwww
  108. wwwwwwww
  109. wwwwwwww
  110. wwwwwwww
  111. wwwwwwwwwwwwp
  112. wwwwww
  113. wwwwwww
  114. wwwwp
  115. wwwww
  116. wwwwwp
  117. wwwwwww
  118. wwwwp
  119. wwwwww
  120. DDDDD
  121. wwwww
  122. wwwwww
  123. DDDDD@
  124. wwwww
  125. DDDDDDD
  126. DDDDDDD@
  127. DDDDDDDDD
  128. wpwwp
  129. wwwww
  130. wwwwww
  131. wwwwww
  132. wwwwp
  133. wwwwwww
  134. wwwwww
  135. wwwwwwp
  136. wwwwwwww
  137. wwwwwww
  138. wwwwwwwwwwwp
  139. wwwwwwwww
  140. wwwwwwww
  141. wwwwwwwp
  142. wwwwwwwwww
  143. wwwwwwwwwwp
  144. wwwwwwwwwww
  145. wwwwwwwwwwwwww
  146. wwwwwwwwwwwww
  147. wwwwwwwwwwwwwwwwwwwwwwwwwwwwp
  148. wwwwwwwwwwwwwwwwwwwwwwwwwwwwp
  149. wwwwwwwwwwwp
  150. wwwwwwwwwwwp
  151. wwwwwwww
  152. wwwwwwwp
  153. wwwwww
  154. wwwwwwwwwww
  155. wwwwwwp
  156. wwwwwwwwwwwwwwp
  157. wwwwp
  158. wwwwwwwwwwwwwwwwwwp
  159. wwwwwww
  160. wwwwwp
  161. wwwww
  162. wwwwwwwwwwwwww
  163. wwwwwwwwwwwwwwwwwww
  164. wwwwwwwwwwwwwwwwwwwwwwwwwp
  165. wwwwwwwwwwwwwwwwwwwwwwwwwwp
  166. wwwwwwwwwwwwwwwwwwwwwww
  167. wwwwwwwwwwwwwwwwwwwwwwp
  168. wwwwwwwwwwwwwwwwwwwwp
  169. wwwwwwwwwwwwwwwwwww
  170. wwwwp
  171. wwwwwwwwwwwwwwwwwp
  172. wwwww
  173. wwwwwwwwwwwwwwwp
  174. wwwwp
  175. wwwwww
  176. wwwwwwwwwwwwwww
  177. wwwwwp
  178. wwwwwwp
  179. wwwwwwwwwwwww
  180. wwwwwp
  181. wwwwwwwp
  182. wwwwwwwwwww
  183. wwwwwwp
  184. wwwwwwwwp
  185. wwwwwwwp
  186. wwwwwwwp
  187. wwwwwwwwww
  188. wwwwwwwwwp
  189. wwwwwwwwwwww
  190. wwwwwwwwwwwp
  191. """""""""""""
  192. *********
  193. *********
  194. *********
  195. *********
  196. """"""""""""""
  197. **********"
  198. ***********"
  199. ************ 
  200. ***********
  201. """"""""""""""
  202. ********"
  203. *********"
  204. ********** 
  205. *********
  206. """""""""""""
  207. ******"
  208. *******"
  209. ******** 
  210. *******
  211. """""""""""""
  212. *****
  213. ****"
  214. *****
  215. *****"
  216. *****
  217. ****** 
  218. *****
  219. *****
  220. """""""""""""
  221. **********
  222. **********
  223. **********
  224. **********
  225. xxxxp
  226. wwwwwwwwwwwwwwwwwwwwwwwwwwwwww
  227. wwwwwwwwwwwwwwwwwwwwwwwwwwwwww
  228. wwwwwwwwwwwwwwwwwwwwwwwwwwwwww
  229. wwwwwx
  230. wwwwwwwwwwwww
  231. wwwwwwwxxxx
  232. wwwwwwwwwww
  233. wwwwwwwwwwx
  234. wwwwwwwwwww
  235. wwwwwwwwww
  236. wwwwwwwwwwW
  237. wwwwwwwwwp
  238. wwwwwwwwww
  239. twwwwwwwww
  240. wwwwwwwww
  241. )wwwwwwwwx
  242. wwwwwwwww
  243. wwwwwwwwpx
  244. wwwwwwwwwf
  245. wwwwwwww
  246. pwwwwwwwww
  247. @wwwwwwww
  248. wwwwwwww
  249. wwwwwwww
  250. wwwwwwww
  251. Vwwwwwwww
  252. wwwwwwww
  253. wwwwwwww
  254. pwwwp
  255. wwwwwwww
  256. Gwwwwwwww
  257. wwwwwwwwEUwwwwwwww
  258. wwwpww
  259. wwwwwwww
  260. wwwwwwww
  261. wwwwwwww
  262. xwwwwwwww
  263. wwwwwwww
  264. wwwwwwww
  265. wxxxx
  266. wwwwwwwwF
  267. wwwwwwwwp
  268. wwwwwwww
  269. &wwwwwwwwp
  270. wxxpwwwwwwwww
  271. &wwwwwwwwx
  272. wwwwwwwww
  273. &wwwwwwwww
  274. wwwwwwwww
  275. wwwwwwwwwp
  276. wwwwwwwwww
  277. wwwwwwwwww
  278. wwwwwwwwww
  279. Fwwwwwwwwwwx
  280. wwwwwwwwwww
  281. Xwwwwwwwwwww
  282. wwwwwwwwwww
  283. wwwwwwwwwwww
  284. wwwwwwwwwwwwww
  285. wwwwwwwwwwwwwwwwwwwwwwwwwwwwww
  286. wwwwwwwwwwwwwwwwwwwwwwwwwwwwww
  287. wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwx
  288. strChecked
  289. aboutAnimation
  290. isOpen 
  291.         focuswindow = 
  292. in,false
  293. ThreeDeeRect
  294. bottomLine
  295. topLine
  296. ,%H.%
  297. 0,100,0
  298. 0,0,0
  299. 0,100,0
  300. buttonclick
  301. 0,100,0
  302. switch
  303. tvOn 
  304. value
  305. buttonclick
  306. switch
  307. (32)+32
  308. (32)+32
  309. --            
  310. (32)+32
  311. out,true
  312. ThreeDeeRect
  313. bottomLine
  314. topLine
  315. false
  316. about
  317. screen
  318. buttonclick
  319. buttonclick
  320. isOpen 
  321. "tv 1"
  322. tvOn 
  323. T"screen" 
  324.     close 
  325. "about"
  326. childloc
  327. frame
  328. lastTime
  329. Animation Book
  330. Created in
  331. ToolBook 3.0
  332. Asymetrix Corporation
  333. screen
  334. lastTime
  335. strChecked
  336. strChecked
  337. strChecked
  338. strChecked
  339. strChecked
  340. strChecked
  341. strChecked
  342. strChecked
  343. J 2!J
  344. strChecked
  345. strChecked
  346. strChecked
  347. strChecked
  348. j!R"J
  349. strChecked
  350. strChecked
  351. strChecked
  352. B"*#J
  353. strChecked
  354. strChecked
  355. strChecked
  356. strChecked
  357. b#J$J
  358. strChecked
  359. strChecked
  360. strChecked
  361. :$"%J
  362. strChecked
  363. strChecked
  364. strChecked
  365. strChecked
  366. Z%B&J
  367. strChecked
  368. strChecked
  369. strChecked
  370. strChecked
  371. z&b'J
  372. strChecked
  373. strChecked
  374. strChecked
  375. R':(J
  376. strChecked
  377. strChecked
  378. strChecked
  379. strChecked
  380. J(2)J
  381. strChecked
  382. strChecked
  383. strChecked
  384. strChecked
  385. j)R*J
  386. strChecked
  387. strChecked
  388. strChecked
  389. B**+J
  390. strChecked
  391. strChecked
  392. strChecked
  393. strChecked
  394. b+J,J
  395. strChecked
  396. strChecked
  397. strChecked
  398. :,"-J
  399. strChecked
  400. strChecked
  401. strChecked
  402. strChecked
  403. Z-B.J
  404. strChecked
  405. strChecked
  406. strChecked
  407. strChecked
  408. z.b/J
  409. strChecked
  410. strChecked
  411. strChecked
  412. strChecked
  413. strChecked
  414. strChecked
  415. strChecked
  416. J021J
  417. strChecked
  418. strChecked
  419. strChecked
  420. strChecked
  421. j1*2J
  422. strChecked
  423. childloc
  424. screen
  425. lastTime
  426. clock
  427. angle
  428. enterbackground
  429. strChecked
  430. strChecked
  431. strChecked
  432. strChecked
  433. strChecked
  434. strChecked
  435. strChecked
  436. strChecked
  437. strChecked
  438. strChecked
  439. Written by
  440. Joseph Brickkkin
  441. ToolBook 3.0
  442. Asymetrix Corporation
  443. maxBounce
  444. 30,17,-1
  445. myInfo
  446. 30,16,-1
  447. strChecked
  448. strChecked
  449. strChecked
  450. aboutAnimation
  451. 0,0,0
  452. screen
  453.     screen = 
  454. tvOn 
  455. Animation Book
  456. Created in
  457. ToolBook 3.0
  458. Asymetrix Corporation
  459. screen
  460. ,%H.%
  461. 0,100,0
  462. 0,0,0
  463. 0,100,0
  464. tvOn 
  465. value
  466. lastTime
  467. strChecked
  468. strChecked
  469. strChecked
  470. tv switch
  471. screen
  472. lastTime
  473. strChecked
  474. strChecked
  475. strChecked
  476. strChecked
  477. strChecked
  478. screen
  479. 66,67,68,23,78
  480. curPat
  481. itemoffset
  482. patternlist
  483. notifybefore 
  484.     patternlist = "66,67,68,23,78"
  485.     curPat = 
  486.     nextPat = itemoffset(
  487. !,patternList) 
  488. lastTime
  489. strChecked
  490. strChecked
  491. strChecked
  492. screen
  493. lastTime
  494. strChecked
  495. placeholder
  496. strChecked
  497. credit
  498. strChecked
  499. Janet Strongtensen
  500. credit
  501. strChecked
  502. Artwork byyyyyyy
  503. enterpage
  504. leavepage
  505. strChecked
  506. u u!u"u#u$u%u&u'u(u)u*u+u,u
  507. 1u2u3u4u5u6u7u#z9u:u;u<u=u>u?u@uAuBuCuDuEuFuGuHuIuJuKuLuMuNuOuPuQuRuSuTuUuVuWuXuYuZu[u\u]u^u_u`uaubucudueufuguhuiujukulumunuoupuqurusutu
  508. Useful Scripts
  509. Animating with color
  510. Useful scripts
  511. myChapter
  512. myChapterID
  513. visited
  514. chapterCount
  515. topicCount
  516. Animating with color
  517. label
  518. strChecked
  519. Not all animation involves moving or hiding objects. You can create an animation just by setting the colors of various objects.
  520. The object representing the TV screen has a script that cycles its rgbFill property through 512 colors of the RGB spectrum.
  521. Each panel of the colorful sculpture on the right cycles through four colors..h four colors.ur colors.
  522. out,true
  523. ThreeDeeRect
  524. strChecked
  525. strChecked
  526. bottomLine
  527. strChecked
  528. topLine
  529. strChecked
  530. in,true
  531. ThreeDeeRect
  532. strChecked
  533. strChecked
  534. bottomLine
  535. l    |    J
  536. strChecked
  537. topLine
  538. strChecked
  539. strChecked
  540. strChecked
  541. strChecked
  542. strChecked
  543. strChecked
  544. strChecked
  545. strChecked
  546. strChecked
  547. strChecked
  548. strChecked
  549. strChecked
  550. curColor
  551. fucurColor
  552. gucurColor
  553. notifybefore 
  554. Zcolorlist[4]
  555. 1]=128,128,0
  556. 2]=255,0,255
  557. +3]=0,128,128
  558. ;=0,255,0
  559.     curColor = 
  560. k4 + 1
  561. orgbfill 
  562. colorList[
  563. curColor
  564. strChecked
  565. curColor
  566. fucurColor
  567. gucurColor
  568. notifybefore 
  569. Zcolorlist[4]
  570. 1]=128,128,0
  571. 2]=255,0,255
  572. +3]=0,128,128
  573. ;=0,255,0
  574.     curColor = 
  575. k4 + 1
  576. orgbfill 
  577. colorList[
  578. curColor
  579. strChecked
  580. curColor
  581. fucurColor
  582. gucurColor
  583. -- cycles through four colors
  584. notifybefore 
  585. Zcolorlist[4]
  586. 1]=128,128,0
  587. 2]=255,0,255
  588. +3]=0,128,128
  589. ;=0,255,0
  590.     curColor = 
  591. k4 + 1
  592. orgbfill 
  593. colorList[
  594. curColor
  595. strChecked
  596. curColor
  597. fucurColor
  598. gucurColor
  599. notifybefore 
  600. Zcolorlist[4]
  601. 1]=128,128,0
  602. 2]=255,0,255
  603. +3]=0,128,128
  604. ;=0,255,0
  605.     curColor = 
  606. k4 + 1
  607. orgbfill 
  608. colorList[
  609. curColor
  610. strChecked
  611. strChecked
  612. strChecked
  613. strChecked
  614. strChecked
  615. strChecked
  616. 6 F J
  617. strChecked
  618. strChecked
  619. Z!j!J
  620. strChecked
  621. strChecked
  622. strChecked
  623. strChecked
  624. strChecked
  625. strChecked
  626. strChecked
  627. strChecked
  628. strChecked
  629. 0&@&J
  630. strChecked
  631. strChecked
  632. T'd'J
  633. strChecked
  634. strChecked
  635. j(z(J
  636. strChecked
  637. strChecked
  638. strChecked
  639. .*>*J
  640. strChecked
  641. strChecked
  642. "+2+J
  643. strChecked
  644. strChecked
  645. strChecked
  646. strChecked
  647. .&,    "
  648. .&,    "
  649. oplastTime
  650. timegettime
  651. -- cycle through 512 colors 
  652. the rgb spectrum.
  653. notifybefore 
  654.     inc = 32 -- amount 
  655. each 
  656. orgbfill
  657.     r = (r+
  658.         g = (g+
  659.             b = (b+
  660. lastTime 
  661. timegettime()
  662. 20B0J
  663. R0^0mp
  664. strChecked
  665. lastTime
  666. strChecked
  667. o    44&
  668. strChecked
  669. .2>2J
  670. strChecked
  671. strChecked
  672. strChecked
  673. strChecked
  674. strChecked
  675. strChecked
  676. strChecked
  677. F6V6J
  678. strChecked
  679. strChecked
  680. strChecked
  681. &868J
  682. strChecked
  683. strChecked
  684. J9Z9J
  685. strChecked
  686. strChecked
  687. false
  688. Animating with color
  689. Untitled
  690. Simulating gravity
  691. Useful scripts
  692. myChapter
  693. myChapterID
  694. chapterCount
  695. topicCount
  696. false
  697. visited
  698. Simulating gravity
  699. label
  700. strChecked
  701. 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.
  702. Press the Animate button on the right to see a demonstration.nstration.
  703. out,true
  704. ThreeDeeRect
  705. strChecked
  706. strChecked
  707. bottomLine
  708. strChecked
  709. topLine
  710. strChecked
  711. in,true
  712. ThreeDeeRect
  713. strChecked
  714. strChecked
  715. bottomLine
  716. strChecked
  717. topLine
  718. strChecked
  719. ground
  720. strChecked
  721. strChecked
  722. .animate
  723. buttondown
  724. animate message, handled 
  725. strChecked
  726. out,false
  727. ThreeDeeRect
  728. strChecked
  729. strChecked
  730. bottomLine
  731. strChecked
  732. topLine
  733. strChecked
  734. strChecked
  735. strChecked
  736. strChecked
  737. strChecked
  738. strChecked
  739. strChecked
  740. strChecked
  741. strChecked
  742. strChecked
  743. strChecked
  744. strChecked
  745. strChecked
  746. strChecked
  747. Animate
  748. thought
  749. strChecked
  750. thought5
  751. strChecked
  752. thought4
  753. strChecked
  754. thought3
  755. strChecked
  756. thought2
  757. strChecked
  758. thought1
  759. strChecked
  760. ground
  761. finaly
  762. accelerate
  763. animate
  764. animate
  765.     finaly = 
  766. U"ground"
  767. accelerate 
  768. ,2,finalY
  769. ,1.5,
  770. 5625,684
  771. origloc
  772. strChecked
  773. strChecked
  774. strChecked
  775. strChecked
  776. Simulating Gravity
  777. Script recorder
  778. Timing animation
  779. Useful scripts
  780. myChapter
  781. myChapterID
  782. visited
  783. Timing animation
  784. label
  785. strChecked
  786. 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.
  787. 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.
  788. out,true
  789. ThreeDeeRect
  790. strChecked
  791. strChecked
  792. bottomLine
  793. strChecked
  794. topLine
  795. strChecked
  796. in,true
  797. ThreeDeeRect
  798. strChecked
  799. strChecked
  800. bottomLine
  801. strChecked
  802. topLine
  803. strChecked
  804. d    t    J
  805. strChecked
  806. 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....
  807. speedControl
  808. strChecked
  809. globe
  810. delay
  811. buttonclick
  812. buttonclick
  813. delay 
  814. "globe" 
  815. strChecked
  816. Fa&st
  817. globe
  818. delay
  819. buttonclick
  820. buttonclick
  821. delay 
  822. "globe" 
  823. strChecked
  824. &Medium
  825. globe
  826. delay
  827. buttonclick
  828. buttonclick
  829. delay 
  830. "globe" 
  831. strChecked
  832. Slo&w
  833. strChecked
  834. globe
  835. 216412,4,0
  836. strChecked
  837. strChecked
  838. strChecked
  839. strChecked
  840. strChecked
  841. strChecked
  842. strChecked
  843. strChecked
  844. strChecked
  845. strChecked
  846. strChecked
  847. strChecked
  848. strChecked
  849. strChecked
  850. b r J
  851. strChecked
  852. strChecked
  853. strChecked
  854. enterpage
  855. false
  856. Timing Animation
  857. Moving along a line
  858. "    v    ,
  859. Useful scripts
  860. myChapter
  861. myChapterID
  862. false
  863. visited
  864. chapterCount
  865. topicCount
  866. Moving along a line
  867. label
  868. strChecked
  869. 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.
  870. Note that this handler will move an object along angled lines as well. Once you've positioned the guiding lines, you can hide them.
  871. strChecked
  872. PmoveObjectAlongPath
  873. buttonclick
  874. buttonclick
  875.     -- sends message handled 
  876. moveObjectAlongPath 
  877. m"path",15
  878. strChecked
  879. in,true
  880. ThreeDeeRect
  881. strChecked
  882. strChecked
  883. bottomLine
  884. strChecked
  885. topLine
  886. strChecked
  887. strChecked
  888. Click each of the ellipses above to see them move along their respective paths.
  889. PmoveObjectAlongPath
  890. buttonclick
  891. buttonclick
  892.     -- sends message handled 
  893. moveObjectAlongPath 
  894. "yoyo",40
  895. strChecked
  896. Moving Along a Line
  897. content
  898. chapterCount
  899. topicCount
  900. selectChars
  901. false
  902. visited
  903. strChecked
  904. outline
  905. lineheight
  906. hotfield
  907. outfield
  908. sizeSample
  909. adjustsize
  910. sized
  911. enterpage
  912. reader
  913. -- initialize the 
  914. sized
  915.     hotfield = 
  916. "sizeSample" 
  917.     outfield = 
  918. "outline" 
  919.         ypix = 
  920. sysPageUnitsPerPixel
  921.         o = 
  922.         b = 
  923.         syssuspendmessages = 
  924. adjustsize 
  925. ylineheight 
  926. o,3) 
  927. notifybefore 
  928. notifyAfter 
  929. strChecked
  930. sizeSample
  931. strChecked
  932. sizeSample
  933. strChecked
  934. outline
  935. strChecked
  936. Moving objects                                        2
  937.     Position property                                        3
  938.     Script recorder                                        4
  939.     Move command                                        5
  940.     Move to command                                        7
  941.     Move by command                                        6
  942.     Moving on idle                                        8
  943. Frame animation                                        9
  944.     How it works                                        10
  945.     Hiding and showing                                        11
  946.     Animating buttons                                        12
  947. Useful scripts                                        13
  948.     Animating with color                                        14
  949.     Simulating gravity                                        15
  950.     Timing animation                                        16
  951.     Moving along a line                                        17                        17                        17e                                        17Moving in a Arc                                        91ipts                                        65
  952.     Animating with color                                        87
  953.     Simulating Gravity                                        67
  954.     Timing Animation                                        66
  955.     Moving Along a Line                                        90
  956.     Moving in a Arc                                        91
  957. marker
  958. vertLoc
  959. vertLoc b 
  960. value
  961.     ypix = 
  962. syspageunitsperpixel
  963.     s = 
  964.     halfH = 
  965. C- 3*
  966. strChecked
  967. cancel
  968. spacer
  969. outline
  970. LPscrollToSelectedTextLine
  971. Enter title for this chapter.
  972. Untitled
  973. title
  974. buttonclick
  975. buttonclick
  976. ("Enter title 
  977. chapter." 
  978. f"Untitled"
  979.         o = 
  980. "outline" 
  981. & spacer() & New 
  982. selectedtextlines 
  983. scrollToSelectedTextLine 
  984. strChecked
  985. New Chapter...
  986. cancel
  987. Enter title for this topic.
  988. spacer
  989. outline
  990. LPscrollToSelectedTextLine
  991. Untitled
  992. tline
  993. title
  994. buttonclick
  995. buttonclick
  996. ("Enter title 
  997. f"Untitled"
  998.         t = 
  999. =& spacer() & "
  1000.         o = 
  1001. "outline" 
  1002.         stl = selectedTextLines 
  1003. M = textlineCount(
  1004. k& t 
  1005. selectedtextlines 
  1006. scrollToSelectedTextLine 
  1007. strChecked
  1008. New Topic...
  1009. editTopic
  1010. cancel
  1011. extractName
  1012. extractID
  1013. Change title of this
  1014. spacer
  1015. chapterOrTopic
  1016. outline
  1017. chapter
  1018. topic
  1019. newTitle
  1020. idnum
  1021. title
  1022. buttonclick
  1023. buttonclick
  1024.     chapterOrTopic = "
  1025.     o = 
  1026. "outline" 
  1027.     stl = selectedTextLines 
  1028.     tlineNum = 
  1029.         t = 
  1030. Btlinenum 
  1031.         title = extractName(t)
  1032.         idnum = extractID(t)
  1033.         -- Localization issue
  1034. ("Change 
  1035. " && 
  1036. &"." 
  1037.         newTitle = 
  1038. ZnewLine
  1039. O& spacer() & 
  1040. strChecked
  1041. Edit Title...
  1042. strChecked
  1043. strChecked
  1044. strChecked
  1045. Topics
  1046. Chapter headings
  1047. updateBook
  1048. ainitPage
  1049. buttonclick
  1050. buttonclick
  1051. updateBook
  1052. "Chapter headings"
  1053. "Topics"
  1054. initPage 
  1055.     close 
  1056. strChecked
  1057. strChecked
  1058. Rearrange chapters and topics by dragging and dropping them.
  1059. buttonclick
  1060. buttonclick
  1061.     close 
  1062. strChecked
  1063. Cancel
  1064. enterpage
  1065. reader
  1066. toolbar
  1067. ComboBox
  1068. xcombobox
  1069.         focuswindow = 
  1070. false
  1071. visited
  1072. strChecked
  1073. previous
  1074. buttonclick
  1075. buttonclick
  1076.     -- sends the 
  1077. message
  1078. currentPage 
  1079. strChecked
  1080. buttonclick
  1081. buttonclick
  1082.     -- sends the 
  1083. tmessage
  1084. currentPage 
  1085. strChecked
  1086. heading
  1087. raisedField
  1088. tbk_wid_name
  1089. faceColor
  1090. highlightColor
  1091. shadowColor
  1092. tbk_wid_props
  1093. color,hls
  1094. color,hls
  1095. color,hls
  1096. tbk_wid_values
  1097. faceText
  1098. strChecked
  1099. highlight
  1100. strChecked
  1101. Moving objectsnts
  1102. shadow
  1103. strChecked
  1104. Moving objectsnts
  1105. "    2    J
  1106. strChecked
  1107. Moving objectsnts
  1108. buttonclick
  1109. buttonclick
  1110. currentPage 
  1111.     focuswindow = 
  1112. strChecked
  1113. tableOfContents
  1114. tableOfContents
  1115. buttonclick
  1116. buttonclick
  1117.         -- handled 
  1118. Hthe 
  1119. message navigates 
  1120.         -- table 
  1121. contents 
  1122. tableOfContents 
  1123. currentPage 
  1124. strChecked
  1125. Table of contents
  1126. SectionLabel
  1127. strChecked
  1128. Section:
  1129. outline
  1130. @4bookOverview
  1131. buttonup
  1132. bookOverview
  1133. strChecked
  1134. topics
  1135. topics
  1136. buttonclick
  1137. buttonclick
  1138.         -- causes navigation 
  1139. chapter heading 
  1140. currentPage 
  1141.     focuswindow = 
  1142. strChecked
  1143. Topics
  1144. train
  1145. b;origloc
  1146. train
  1147. animate
  1148. b;origloc
  1149. train
  1150. initAnimation
  1151. animate
  1152.     t = 
  1153. "train" 
  1154.     rightMost = 
  1155.     p = 
  1156.     moveAmount = 45
  1157. origloc 
  1158. initAnimation
  1159.     t = 
  1160. false
  1161. visited
  1162. strChecked
  1163. train
  1164. -1485,90
  1165. origloc
  1166. strChecked
  1167. pageUnits
  1168. false
  1169. visited
  1170. Page Units:
  1171. 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.
  1172. strChecked
  1173. strChecked
  1174. scriptRecorderPopup1
  1175. false
  1176. visited
  1177. scriptRecorderPopup1
  1178. To use the script recorder:
  1179. 1.     Make sure the objects you want to move are not selected.
  1180. 2.     Choose Start Recording from the Edit menu.
  1181. 3.     Drag the objects along the path you want them to follow, clicking frequently to record the movement.
  1182. 4.     Choose Stop Recording from the Edit menu.
  1183. 5.     In the script of the button that starts the animation, choose Paste Recording from the script editor's Edit menu..
  1184. strChecked
  1185. strChecked
  1186. scriptRecorderPopup2
  1187. false
  1188. visited
  1189. Guidelines for using the script recorder:
  1190. The main advantage of the script recorder is that you can create animation without writing scripts. However, there are also disadvantages:
  1191. Difficult to modify  To change a recorded animation, you must either edit the script ToolBook created or record the animation again.
  1192. Difficult to create smooth movement  It may be hard to create uniform spacing and direction between each step of the animation.
  1193. If you need to create smooth, easily modifiable animation, you may want to examine the topics in the Useful Scripts section of this book.......
  1194. strChecked
  1195. strChecked
  1196. tableOfContents
  1197. false
  1198. visited
  1199. Guidelines for using the script recorder:
  1200. The main advantage of the script recorder is that you can create animation without writin
  1201. Terminal
  1202. Courier
  1203. Move command
  1204. Moving objects
  1205. myChapter
  1206. myChapterID
  1207. false
  1208. visited
  1209. chapterCount
  1210. topicCount
  1211. Move command
  1212. label
  1213. strChecked
  1214. 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.
  1215. The commands to use for moving an object are move to and move by.
  1216. Toolbook uses page units as the unit of measure to specify position.lled page units...
  1217. pageUnitsPopup
  1218. buttonclick
  1219. buttonclick
  1220. "pageUnitsPopup"
  1221. strChecked
  1222. strChecked
  1223. Move <object> to <position>
  1224. This command moves the specified object to the position supplied, for example:
  1225.    move polygon "x" to 0,0
  1226. Moves it to the upper-left corner of the screen.een..
  1227. raisedField
  1228. tbk_wid_name
  1229. faceColor
  1230. highlightColor
  1231. shadowColor
  1232. tbk_wid_props
  1233. color,hls
  1234. color,hls
  1235. color,hls
  1236. tbk_wid_values
  1237. strChecked
  1238. highlight
  1239. strChecked
  1240. move toe Commandperty
  1241. shadow
  1242. strChecked
  1243. move toe Commandperty
  1244. strChecked
  1245. move toe Commandperty
  1246. raisedField
  1247. tbk_wid_name
  1248. faceColor
  1249. highlightColor
  1250. shadowColor
  1251. tbk_wid_props
  1252. color,hls
  1253. color,hls
  1254. color,hls
  1255. tbk_wid_values
  1256. strChecked
  1257. highlight
  1258. strChecked
  1259. move bye Commandperty
  1260. shadow
  1261. strChecked
  1262. move bye Commandperty
  1263. strChecked
  1264. move bye Commandperty
  1265. strChecked
  1266. Move <object> by <amount>
  1267. This command moves the object by the x and y amounts supplied, for example:
  1268.    move polygon "x" by 45,60
  1269. Moves it 45 page units to the right and 60 down.  s downits down
  1270. Hiding and showing
  1271. Move by command
  1272. Moving objects
  1273. myChapter
  1274. myChapterID
  1275. chapterCount
  1276. topicCount
  1277. visited
  1278. Move by command
  1279. label
  1280. 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.
  1281. 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.
  1282. out,true
  1283. ThreeDeeRect
  1284. bottomLine
  1285. topLine
  1286. in,true
  1287. ThreeDeeRect
  1288. bottomLine
  1289. topLine
  1290. green
  1291. .animate
  1292. buttonup
  1293.     -- sends the animate message handled 
  1294. out,false
  1295. ThreeDeeRect
  1296. bottomLine
  1297. topLine
  1298. Animate
  1299. strChecked
  1300. strChecked
  1301. strChecked
  1302. strChecked
  1303. strChecked
  1304. strChecked
  1305. strChecked
  1306. strChecked
  1307. strChecked
  1308. strChecked
  1309. strChecked
  1310. strChecked
  1311. strChecked
  1312. strChecked
  1313. strChecked
  1314. strChecked
  1315. strChecked
  1316. strChecked
  1317. strChecked
  1318. strChecked
  1319. strChecked
  1320. strChecked
  1321. strChecked
  1322. strChecked
  1323. strChecked
  1324. strChecked
  1325. strChecked
  1326. strChecked
  1327. strChecked
  1328. strChecked
  1329. false
  1330. strChecked
  1331. strChecked
  1332. command
  1333. Animating buttons
  1334. Creating animated buttons
  1335. Move to command
  1336. orbit
  1337. moonRef
  1338. animate
  1339. -- moves the 
  1340. along 
  1341. animate
  1342.     -- optimization: store 
  1343. {reference 
  1344. %we will
  1345.     -- be refering 
  1346.     moonRef = 
  1347.     sz = 
  1348.     -- we are going 
  1349. walk 
  1350. , so let's
  1351.     -- cache them 
  1352.     vs = 
  1353. "orbit"
  1354. come 
  1355. a list 
  1356. pairs 
  1357.     -- one 
  1358. each vertex. For 
  1359. iteration 
  1360. loop, 
  1361.     -- we 
  1362.  grab 
  1363. y positions 
  1364. E, subtract half
  1365. ball's 
  1366. positioning relative 
  1367. that 
  1368. (vs) 
  1369. Moving objects
  1370. myChapter
  1371. myChapterID
  1372. chapterCount
  1373. topicCount
  1374. visited
  1375. Move to command
  1376. label
  1377. 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.
  1378. 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.ther.
  1379. out,true
  1380. ThreeDeeRect
  1381. bottomLine
  1382. topLine
  1383. in,true
  1384. ThreeDeeRect
  1385. bottomLine
  1386. topLine
  1387. orbit
  1388. .animate
  1389. buttondown
  1390.     -- sends the animate message handled 
  1391. out,false
  1392. ThreeDeeRect
  1393. bottomLine
  1394. topLine
  1395. Animate
  1396. strChecked
  1397. strChecked
  1398. strChecked
  1399. strChecked
  1400. strChecked
  1401. strChecked
  1402. strChecked
  1403. strChecked
  1404. strChecked
  1405. strChecked
  1406. strChecked
  1407. strChecked
  1408. strChecked
  1409. strChecked
  1410. strChecked
  1411. strChecked
  1412. strChecked
  1413. strChecked
  1414. strChecked
  1415. strChecked
  1416. strChecked
  1417. strChecked
  1418. strChecked
  1419. strChecked
  1420. strChecked
  1421. strChecked
  1422. strChecked
  1423. strChecked
  1424. strChecked
  1425. strChecked
  1426. strChecked
  1427. strChecked
  1428. strChecked
  1429. false
  1430. strChecked
  1431. strChecked
  1432. command
  1433. Moving on idle
  1434. Moving objects
  1435. myChapter
  1436. myChapterID
  1437. false
  1438. visited
  1439. Moving on idle
  1440. label
  1441. strChecked
  1442. Whenever ToolBook is not running scripts, it receives the idle  message. If you want an animation to run constantly while nothing else is happening, you can trigger each step of the animation upon the idle message. 
  1443. 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.....
  1444. in,true
  1445. ThreeDeeRect
  1446. strChecked
  1447. ballbounds
  1448. strChecked
  1449. bottomLine
  1450. strChecked
  1451. topLine
  1452. strChecked
  1453. in,true
  1454. ThreeDeeRect
  1455. strChecked
  1456. strChecked
  1457. bottomLine
  1458. strChecked
  1459. topLine
  1460. strChecked
  1461. strChecked
  1462. 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.
  1463. elapsedTime
  1464. curDir
  1465. vector
  1466. maxBounce
  1467. -150,13,1
  1468. myInfo
  1469. strChecked
  1470. Moving on Idle
  1471. Frame animation
  1472. My Dogs
  1473. pageCaption
  1474. Frame animation
  1475. myChapter
  1476. myChapterID
  1477. myPages
  1478. chapterCount
  1479. topicCount
  1480. Frame animation
  1481. label
  1482. visited
  1483. strChecked
  1484. 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..
  1485. strChecked
  1486. strChecked
  1487. strChecked
  1488. strChecked
  1489. strChecked
  1490. strChecked
  1491. strChecked
  1492. strChecked
  1493. strChecked
  1494. F    V    J
  1495. strChecked
  1496. strChecked
  1497. strChecked
  1498. strChecked
  1499. strChecked
  1500. strChecked
  1501. strChecked
  1502. strChecked
  1503. strChecked
  1504. strChecked
  1505. strChecked
  1506. strChecked
  1507. strChecked
  1508. strChecked
  1509. strChecked
  1510. strChecked
  1511. strChecked
  1512. strChecked
  1513. strChecked
  1514. strChecked
  1515. strChecked
  1516. strChecked
  1517. strChecked
  1518. strChecked
  1519. strChecked
  1520. trailerCountdown
  1521. lastTime
  1522. myAngle
  1523. strChecked
  1524. strChecked
  1525. strChecked
  1526. strChecked
  1527. minute
  1528. strChecked
  1529. counter
  1530. strChecked
  1531. enterpage
  1532. 10,11,12
  1533. Frame Animation
  1534. How it works
  1535. mation works
  1536. $('x(
  1537. Jerry
  1538. pageCaption
  1539. Frame animation
  1540. myChapter
  1541. myChapterID
  1542. selectChars
  1543. chapterCount
  1544. topicCount
  1545. visited
  1546. How it works
  1547. label
  1548. strChecked
  1549. 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.
  1550. The animation at the top is a series of sixteen paint objects, shown individually below.
  1551. objects 
  1552. Setting resources
  1553. Page flippingetting resources
  1554. Page flipping
  1555. strChecked
  1556. out,true
  1557. ThreeDeeRect
  1558. strChecked
  1559. strChecked
  1560. bottomLine
  1561. strChecked
  1562. topLine
  1563. strChecked
  1564. strChecked
  1565. N    ^    J
  1566. strChecked
  1567. out,true
  1568. ThreeDeeRect
  1569. strChecked
  1570. strChecked
  1571. bottomLine
  1572. strChecked
  1573. topLine
  1574. strChecked
  1575. strChecked
  1576. strChecked
  1577. strChecked
  1578. strChecked
  1579. curFrame
  1580. myCurFrame
  1581. myCurFrame
  1582. newFrame
  1583. hides 
  1584. shows frames (paintobjects) 
  1585. the globe animation.
  1586. -- The paintObjects are named "1" 
  1587. notifybefore 
  1588.     numFrames = 16 -- 
  1589.     curFrame = myCurFrame 
  1590. -- currently showing 
  1591.     newFrame = 
  1592.     -- store 
  1593. myCurFrame
  1594. strChecked
  1595. strChecked
  1596. strChecked
  1597. strChecked
  1598. strChecked
  1599. strChecked
  1600. strChecked
  1601. strChecked
  1602. strChecked
  1603. strChecked
  1604. strChecked
  1605. strChecked
  1606. strChecked
  1607. strChecked
  1608. \ l J
  1609. strChecked
  1610. strChecked
  1611. strChecked
  1612. strChecked
  1613. strChecked
  1614. strChecked
  1615. 2%B%J
  1616. in,true
  1617. ThreeDeeRect
  1618. strChecked
  1619. strChecked
  1620. $"&2&
  1621. bottomLine
  1622. Z&j&J
  1623. strChecked
  1624. topLine
  1625. strChecked
  1626. widget slows down everything, 
  1627. notifybefore 
  1628. 2(>(mp
  1629. L(\(J
  1630. lastTime
  1631. strChecked
  1632. Slow-Mo
  1633. in,true
  1634. ThreeDeeRect
  1635. strChecked
  1636. strChecked
  1637. bottomLine
  1638.  *0*J
  1639. strChecked
  1640. topLine
  1641. strChecked
  1642. V+f+J
  1643. strChecked
  1644. This globe animation is  a series of paintObjects, shown one after the other.......the other.
  1645. curFrame
  1646. myCurFrame
  1647. mycurframe
  1648. highlight
  1649. newFrame
  1650. moves the 
  1651. over 
  1652. appropriate globe.
  1653. "globes are 
  1654. numbered "1" 
  1655. notifybefore 
  1656.     numFrames = 16 -- 
  1657. paintObjects
  1658. current 
  1659. showing:
  1660.     curFrame = mycurframe 
  1661.     newFrame = 
  1662. myCurFrame 
  1663. myCurFrame
  1664. strChecked
  1665. strChecked
  1666. strChecked
  1667. "222J
  1668. strChecked
  1669. 83H3J
  1670. strChecked
  1671. + 4&4
  1672. N4^4J
  1673. strChecked
  1674. +65<5
  1675. d5t5J
  1676. strChecked
  1677. +L6R6
  1678. strChecked
  1679. +b7h7
  1680. strChecked
  1681. +x8~8
  1682. strChecked
  1683. strChecked
  1684. strChecked
  1685. strChecked
  1686. strChecked
  1687. strChecked
  1688. 6?F?J
  1689. strChecked
  1690. N@^@J
  1691. strChecked
  1692. highlight
  1693. <ALAJ
  1694. strChecked
  1695. false
  1696. How it works
  1697. content
  1698. toolbar
  1699. Hiding and showing
  1700. objects
  1701. Timothy
  1702. pageCaption
  1703. Frame animation
  1704. myChapter
  1705. myChapterID
  1706. chapterCount
  1707. topicCount
  1708. visited
  1709. Hiding and showing
  1710. label
  1711. strChecked
  1712. A common method for creating frame animation is to hide and show objects in a group using the hide and show commands.
  1713. 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.
  1714. rts of the book, such as pressing the next page button.
  1715. out,true
  1716. ThreeDeeRect
  1717. strChecked
  1718. strChecked
  1719. bottomLine
  1720. strChecked
  1721. topLine
  1722. strChecked
  1723. curFrame
  1724. myCurFrame
  1725. myCurFrame
  1726. newFrame
  1727. -- This handler controls the animation 
  1728. -- The 
  1729. consists 
  1730. 18 paintobjects, named 
  1731. -- 1 
  1732. 18, respectively. For each execution 
  1733. (sent constantly 
  1734. mode) 
  1735. advanced one frame.
  1736. currently shown 
  1737. stored 
  1738. %a userProperty
  1739. notifybefore 
  1740.     numFrames = 18 -- 
  1741. paintObjects
  1742. ping 
  1743.     curFrame = myCurFrame 
  1744.     -- calculate 
  1745.     newFrame = 
  1746.  so we know what 
  1747. curdog
  1748. lastTime
  1749. myCurFrame
  1750. strChecked
  1751. strChecked
  1752. strChecked
  1753. strChecked
  1754. strChecked
  1755. strChecked
  1756. strChecked
  1757. strChecked
  1758. strChecked
  1759. strChecked
  1760. strChecked
  1761. strChecked
  1762. strChecked
  1763. strChecked
  1764. strChecked
  1765. strChecked
  1766. strChecked
  1767. strChecked
  1768. strChecked
  1769. strChecked
  1770.   2 ~
  1771. D T J
  1772. in,true
  1773. ThreeDeeRect
  1774. strChecked
  1775. strChecked
  1776. bottomLine
  1777. l!|!J
  1778. strChecked
  1779. topLine
  1780. strChecked
  1781. strChecked
  1782. 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
  1783. false
  1784. Animating buttons
  1785. buttons
  1786. .&,    "
  1787. newcursor
  1788. curCursor
  1789. progressCursor
  1790. progressCursor
  1791. = cursor 0
  1792.         maxCursor = 12
  1793.         curCursor = 
  1794.         currentCursor = 
  1795.         newcursor = (
  1796. "+ 1) 
  1797. newCursor 
  1798. Frame animation
  1799. myChapter
  1800. myChapterID
  1801. chapterCount
  1802. topicCount
  1803. false
  1804. visited
  1805. Animating buttons
  1806. label
  1807. strChecked
  1808. 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.
  1809. The button on the right displays an animation when clicked.en clicked.............property to display a series of bitmap resources.
  1810. The button on the right displays an animation when clicked.....
  1811. in,true
  1812. ThreeDeeRect
  1813. bottomLine
  1814. topLine
  1815. This button has two frames of animation: one specified by its normalGraphic, the other specified by its invertGraphic, which is displayed when clicked.
  1816. arrow
  1817. notifyBefore 
  1818. normalgraphic 
  1819. k6 + 1
  1820. bitmap ("arrow"&
  1821. notifyBefore 
  1822. normalgraphic 
  1823. k4 + 1
  1824. bitmap ("cd"&
  1825. in,true
  1826. ThreeDeeRect
  1827. bottomLine
  1828. topLine
  1829. These buttons set their normalGraphic property to a series of images.lGraphic, the other specified by its invertGraphic. 
  1830. Position property
  1831. Useful scripts
  1832. Useful scripts
  1833. myChapter
  1834. myChapterID
  1835. 14,15,16,17
  1836. myPages
  1837. chapterCount
  1838. topicCount
  1839. visited
  1840. Useful scripts
  1841. label
  1842. strChecked
  1843. This section contains reusable handlers you can use to make writing your animation scripts easier.
  1844. These buttons set their normalGraphic property to a series of images.lGraphic, the other specified by its invertGraphic. 
  1845. Topics
  1846. tableOfContents
  1847. toolbar
  1848. leavepage
  1849. previous
  1850. topics
  1851. tableOfContents
  1852. toolbar
  1853. Table of contents
  1854. heading
  1855. enterPage
  1856. You cannot delete this page.
  1857. author
  1858. clear
  1859. ainitPage
  1860. -- enable table 
  1861. contents 
  1862. enabled 
  1863. B"tableOfContents" 
  1864. "toolbar" 
  1865.     pref = 
  1866. pRef 
  1867. "heading" 
  1868. "Table 
  1869. -- Don't allow deletion 
  1870. "You cannot delete 
  1871. qcutting 
  1872. initialize 
  1873. 4we land on 
  1874. initPage 
  1875. strChecked
  1876. out,true
  1877. ThreeDeeRect
  1878. strChecked
  1879. strChecked
  1880. bottomLine
  1881. strChecked
  1882. topLine
  1883. strChecked
  1884. &    :    ~
  1885. L    \    J
  1886. out,true
  1887. ThreeDeeRect
  1888. strChecked
  1889. strChecked
  1890. bottomLine
  1891. strChecked
  1892. topLine
  1893. strChecked
  1894. topic
  1895. raisedField
  1896. tbk_wid_name
  1897. faceColor
  1898. highlightColor
  1899. shadowColor
  1900. tbk_wid_props
  1901. color,hls
  1902. color,hls
  1903. color,hls
  1904. tbk_wid_values
  1905. strChecked
  1906. highlight
  1907. strChecked
  1908. Table of contents
  1909. shadow
  1910. strChecked
  1911. Table of contents
  1912. strChecked
  1913. Table of contents
  1914. strChecked
  1915. Click on one of the topics below to view information on that subject.ubject.
  1916. toolbar
  1917. ThreeDeeRect
  1918. out,true
  1919. bottomLine
  1920. topLine
  1921. strChecked
  1922. strChecked
  1923. strChecked
  1924. strChecked
  1925. strChecked
  1926. toolbar
  1927. strChecked
  1928. strChecked
  1929. strChecked
  1930. strChecked
  1931. strChecked
  1932. strChecked
  1933. strChecked
  1934. strChecked
  1935. strChecked
  1936. strChecked
  1937. strChecked
  1938. strChecked
  1939. strChecked
  1940. strChecked
  1941. strChecked
  1942. strChecked
  1943. strChecked
  1944. strChecked
  1945. strChecked
  1946. strChecked
  1947. strChecked
  1948. strChecked
  1949. strChecked
  1950. strChecked
  1951. strChecked
  1952. strChecked
  1953. strChecked
  1954. strChecked
  1955. strChecked
  1956. strChecked
  1957. strChecked
  1958. strChecked
  1959. strChecked
  1960. strChecked
  1961. strChecked
  1962. strChecked
  1963. strChecked
  1964. strChecked
  1965. strChecked
  1966. strChecked
  1967. strChecked
  1968. strChecked
  1969. strChecked
  1970. strChecked
  1971. strChecked
  1972. strChecked
  1973. strChecked
  1974. strChecked
  1975. strChecked
  1976. strChecked
  1977. strChecked
  1978. tableOfContents
  1979. myChapter
  1980. myPages
  1981. chapterCount
  1982. topicCount
  1983. false
  1984. visited
  1985. 24,27
  1986. selectChars
  1987. strChecked
  1988. tableOfContents
  1989. strChecked
  1990. strChecked
  1991. chapter1
  1992. How It Works                                        26
  1993. Hiding and Showing                                        25
  1994. Animating with Resouces                                        61
  1995. Page Flipping                                        62
  1996. Untitled                                        74
  1997. topics
  1998. pageID
  1999. strChecked
  2000. Moving objects
  2001. check1
  2002. strChecked
  2003. strChecked
  2004. chapter2
  2005. The Position Property                                        59
  2006. The Script Recorder                                        63
  2007. The Move Command                                        68
  2008. Move By                                        58
  2009. Move To                                        57
  2010. Moving on Idle                                        64
  2011. topics
  2012. pageID
  2013. strChecked
  2014. Frame animation
  2015. check2
  2016. strChecked
  2017. strChecked
  2018. chapter3
  2019. Timing Animation                                        66
  2020. Simulating Gravity                                        67
  2021. topics
  2022. pageID
  2023. strChecked
  2024. Useful scriptso
  2025. check3
  2026. strChecked
  2027. strChecked
  2028. chapter4
  2029. Chickens                                        26
  2030. Goats                                        25
  2031. topics
  2032. pageID
  2033. strChecked
  2034. Blahul Scripts
  2035. check4
  2036. strChecked
  2037. strChecked
  2038. chapter5
  2039. strChecked
  2040. check5
  2041. strChecked
  2042. strChecked
  2043. chapter6
  2044. strChecked
  2045. check6
  2046. strChecked
  2047. strChecked
  2048. chapter7
  2049. strChecked
  2050. check7
  2051. strChecked
  2052. strChecked
  2053. chapter8
  2054. strChecked
  2055. check8
  2056. strChecked
  2057. train
  2058. scriptRecorderPopup1
  2059. Moving objects
  2060. Moving objects
  2061. myChapter
  2062. myChapterID
  2063. 3,4,5,7,6,8
  2064. myPages
  2065. chapterCount
  2066. topicCount
  2067. visited
  2068. selectChars
  2069. Moving objects
  2070. label
  2071. strChecked
  2072. Most animation involves moving an object from one place to another. The topics in this section discuss the various techniques for moving objects.
  2073. strChecked
  2074. placeholder
  2075. WjpositionChildViewer
  2076. train
  2077. <KinitAnimation
  2078. enterpage
  2079. train
  2080. leavepage
  2081. ,%H.%
  2082. newbnds
  2083. positionChildViewer
  2084. .animate
  2085. train
  2086. serves 
  2087. %the placeholder 
  2088. train animation 
  2089. -- on 
  2090. opens 
  2091. . On 
  2092. sends 
  2093. animate message
  2094. notifyAfter 
  2095. initAnimation 
  2096. positionChildViewer 
  2097. -- close 
  2098. notifyBefore 
  2099. isOpen 
  2100. -- sizes 
  2101. specified 
  2102. r childViewer, bnds
  2103.     newbnds= pageUnitsToClient(
  2104. strChecked
  2105. strChecked
  2106. V    f    J
  2107. strChecked
  2108. leavepage
  2109. enterpage
  2110. Moving Objects
  2111. Move command
  2112. tv switch
  2113. Position property
  2114. Moving objects
  2115. myChapter
  2116. myChapterID
  2117. chapterCount
  2118. topicCount
  2119. false
  2120. visited
  2121. Position property
  2122. label
  2123. str_allback
  2124. searchString
  2125. 37,48
  2126. selectChars
  2127. strChecked
  2128. 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.  
  2129. 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.ow its position property changes..........................m the left side of page, and 865 page units from the top of the page. 
  2130. Its position is "600,865" 865 page units from the top of the page. 
  2131. Its position is "600,865"
  2132. pageUnitsPopup
  2133. buttonclick
  2134. buttonclick
  2135. "pageUnitsPopup"
  2136. strChecked
  2137. in,true
  2138. ThreeDeeRect
  2139. strChecked
  2140. strChecked
  2141. bottomLine
  2142. strChecked
  2143. topLine
  2144. strChecked
  2145. descr
  2146. strChecked
  2147. The position  is 300,300.      he illustration above is 1560,1455. ag the object{
  2148. strChecked
  2149. strChecked
  2150. strChecked
  2151. client
  2152. strChecked
  2153. strChecked
  2154. strChecked
  2155. ToolBook - POSITION.TBKign
  2156. strChecked
  2157. strChecked
  2158. strChecked
  2159. strChecked
  2160.  File   Edit   View  Page  Object  Draw
  2161. strChecked
  2162. 3005page
  2163. yline
  2164. client
  2165. endpoint
  2166. endpoint 
  2167. value
  2168. Znewb
  2169.     cb = 
  2170. client
  2171.     xpix = 
  2172. sysPageUnitsPerPixel
  2173.     ypix = 
  2174.     b = 
  2175.     w = 
  2176.     v1 = x - w 
  2177.     v2 = 
  2178. cb + 
  2179.     v3 = v1+w
  2180.     v4 = y - 
  2181.     fref = 
  2182.     sz = 
  2183.     fpos = v3 + 
  2184. *2,v2+(v4-v2)
  2185. y2 - 
  2186. v4 - v2
  2187. strChecked
  2188. strChecked
  2189. centerLine
  2190. strChecked
  2191. xline
  2192. client
  2193. endpoint
  2194. endpoint 
  2195. value
  2196. Znewb
  2197.     xpix = 
  2198. sysPageUnitsPerPixel
  2199.     ypix = 
  2200.     cb = 
  2201. client
  2202.     b = 
  2203.     h = 
  2204.     v1 = 
  2205. cb + 
  2206.     v2 = y - h 
  2207.     v3 = x - 
  2208.     v4 = v2 + h
  2209.     fref = 
  2210.     sz = 
  2211.     fpos = v1+(v3-v1)
  2212. y2 - 
  2213. y2,v4 + 
  2214. v3 - v1
  2215. strChecked
  2216. strChecked
  2217. centerLine
  2218. strChecked
  2219. strChecked
  2220. 3005page
  2221. strChecked
  2222. strChecked
  2223. strChecked
  2224. Move by command
  2225. scriptRecorderPopup2
  2226. Script recorder
  2227. Moving objects
  2228. myChapter
  2229. myChapterID
  2230. visited
  2231. Script recorder
  2232. label
  2233. strChecked
  2234. 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.
  2235. How to use the script recorder
  2236. When to use the script recorder
  2237. The animation to the right was created using the script recorder.
  2238. e objects around, dragging and dropping for each step of the animation.
  2239. 4. Choose Stop Recording from the Edit menu.
  2240. 5. In the script of the button that starts the animation, choose Paste Recording from the script editors Edit menu.
  2241. scriptRecorderPopup
  2242. buttonclick
  2243. buttonclick
  2244. "scriptRecorderPopup"
  2245. strChecked
  2246. scriptRecorderPopup2
  2247. buttonclick
  2248. buttonclick
  2249. "scriptRecorderPopup2"
  2250. strChecked
  2251. strChecked
  2252. strChecked
  2253. strChecked
  2254. B    V    ~
  2255. h    x    J
  2256. out,true
  2257. ThreeDeeRect
  2258. strChecked
  2259. strChecked
  2260. bottomLine
  2261. strChecked
  2262. topLine
  2263. strChecked
  2264. strChecked
  2265. in,true
  2266. ThreeDeeRect
  2267. strChecked
  2268. strChecked
  2269. bottomLine
  2270. strChecked
  2271. topLine
  2272. strChecked
  2273. balloonpath
  2274. strChecked
  2275. cloudpath
  2276. strChecked
  2277. cloud
  2278. strChecked
  2279. strChecked
  2280. strChecked
  2281. strChecked
  2282. &Button
  2283. strChecked
  2284. out,false
  2285. ThreeDeeRect
  2286. strChecked
  2287. strChecked
  2288. bottomLine
  2289. strChecked
  2290. topLine
  2291. strChecked
  2292. strChecked
  2293. strChecked
  2294. strChecked
  2295. strChecked
  2296. strChecked
  2297. strChecked
  2298. strChecked
  2299. strChecked
  2300. strChecked
  2301. strChecked
  2302. strChecked
  2303. strChecked
  2304. strChecked
  2305. Animate
  2306. balloon
  2307. strChecked
  2308. false
  2309. strChecked
  2310. Move by command
  2311. scriptRecorderPopup2
  2312. Script recorder
  2313. MS Sans Serif
  2314. MS Sans Serif
  2315. MS Sans Serif
  2316. MS Sans Serif
  2317. MS Sans Serif
  2318. MS Sans Serif
  2319. MS Sans Serif
  2320. MS Sans Serif
  2321. Times New Roman
  2322. System
  2323. Courier New
  2324. MS Sans Serif
  2325. MS Sans Serif
  2326. Courier New
  2327. Arial
  2328. Arial
  2329. MS Sans Serif
  2330. MS Sans Serif
  2331. strChecked
  2332. Courier New
  2333. page "scriptRecorderPopup2"
  2334. toolbar
  2335. page "toolbar"
  2336. content
  2337. Arrange Content
  2338. page "content"
  2339. train
  2340. Page "train"
  2341. pageUnitsPopup
  2342. location
  2343. buttonclick
  2344. buttonclick
  2345.     close 
  2346. scriptRecorderPopup
  2347. 29,30
  2348. ScriptRecorderPopup2
  2349. Page "pageunits"
  2350. page "scriptRecorderPopup1"
  2351. The Animation Book
  2352. about
  2353. page "aboutAnimation"
  2354. About Animation Book
  2355. Page "tv 1"
  2356. extra
  2357. page "train"
  2358. screen
  2359. xopenwindow
  2360. false
  2361. screen
  2362. xcloseWindow
  2363. xopenwindow 
  2364. tvOn 
  2365. T"screen" 
  2366. currentPage 
  2367. xcloseWindow
  2368. h    ge id 32
  2369. 435,450
  2370. frame
  2371. screen
  2372. openwindow
  2373. closeWindow
  2374. openwindow 
  2375. currentPage 
  2376. pageUnitsToClient(
  2377. frame 
  2378. T"screen" 
  2379. closeWindow
  2380. closeWindow
  2381. pageUnits
  2382. pageName
  2383. Move to command
  2384. &File
  2385. &Open...    Ctrl+O
  2386. &Save    Ctrl+S
  2387. Print Set&up...
  2388. printsetup
  2389. &Print Pages...    Ctrl+P
  2390. printpages
  2391. &Run...
  2392. E&xit    Alt+F4
  2393. &Edit
  2394. Aut&hor    F3
  2395. author
  2396. &Help
  2397. &Contents    F1
  2398. contents
  2399. &About Animate...
  2400. about
  2401. strChecked
  2402. Chapter Headings
  2403. strChecked
  2404. out,true
  2405. ThreeDeeRect
  2406. strChecked
  2407. strChecked
  2408. bottomLine
  2409. strChecked
  2410. topLine
  2411. strChecked
  2412. out,true
  2413. ThreeDeeRect
  2414. strChecked
  2415. strChecked
  2416. bottomLine
  2417. strChecked
  2418. topLine
  2419. strChecked
  2420. Topics
  2421. strChecked
  2422. strChecked
  2423. topic1
  2424. 6    F    J
  2425. pageId
  2426. strChecked
  2427. Position propertylorworks
  2428. check1
  2429. strChecked
  2430. strChecked
  2431. topic2
  2432. pageId
  2433. strChecked
  2434. Script recorderity objects        25
  2435. check2
  2436. strChecked
  2437. strChecked
  2438. topic3
  2439. pageId
  2440. strChecked
  2441. Move commandtions buttons                                61
  2442. check3
  2443. strChecked
  2444. strChecked
  2445. Q    + 2
  2446. topic4
  2447. pageId
  2448. strChecked
  2449. Move to commandlineuces62
  2450. check4
  2451. strChecked
  2452. strChecked
  2453. topic5
  2454. pageId
  2455. strChecked
  2456. Move by commandline4
  2457. check5
  2458. strChecked
  2459. strChecked
  2460. topic6
  2461. pageId
  2462. strChecked
  2463. Moving on idlec
  2464. check6
  2465. strChecked
  2466. strChecked
  2467. topic7
  2468. pageId
  2469. strChecked
  2470. Tonyc7r7
  2471. check7
  2472. strChecked
  2473. strChecked
  2474. topic8
  2475. pageId
  2476. strChecked
  2477. Barbara8{
  2478. check8
  2479. strChecked
  2480. strChecked
  2481. topic9
  2482. strChecked
  2483. topic9r8E
  2484. check9
  2485. strChecked
  2486. strChecked
  2487. topic10
  2488. strChecked
  2489. topic108
  2490. check10
  2491. strChecked
  2492. in,true
  2493. ThreeDeeRect
  2494. strChecked
  2495. strChecked
  2496. bottomLine
  2497. strChecked
  2498. topLine
  2499. strChecked
  2500. strChecked
  2501. chapterLabel
  2502. raisedField
  2503. tbk_wid_name
  2504. faceColor
  2505. highlightColor
  2506. shadowColor
  2507. tbk_wid_props
  2508. color,hls
  2509. color,hls
  2510. color,hls
  2511. tbk_wid_values
  2512. strChecked
  2513. highlight
  2514. 4 D J
  2515. strChecked
  2516. Moving objectsnts
  2517. shadow
  2518. strChecked
  2519. Moving objectsnts
  2520. strChecked
  2521. Moving objectsnts
  2522. strChecked
  2523. Click on one of the topics below
  2524. to view information on that subject.......
  2525. strChecked
  2526. @6v.v.v3
  2527. a hidden 
  2528. Bthat writes the 
  2529. %supposedly
  2530. -- written 
  2531. recorder.
  2532. animate
  2533. buttonClick" & 
  2534.     -- optimization: store 
  2535. {reference 
  2536. %we will
  2537.     -- be refering 
  2538.     balloon = 
  2539.     cloud = 
  2540.     szb = 
  2541.     szc = 
  2542.     -- we are going 
  2543. walk 
  2544. , so let's
  2545.     -- cache them 
  2546.     vsb = 
  2547. m"balloonpath"
  2548.     vsc = 
  2549. m"cloudpath"
  2550. come 
  2551. a list 
  2552. pairs 
  2553.     -- one 
  2554. each vertex. For 
  2555. iteration 
  2556. loop, 
  2557.     -- we 
  2558.  grab 
  2559. y positions 
  2560. F, subtract half
  2561. positioning relative 
  2562. (vsc) 
  2563. xposb
  2564. yposb
  2565. xposc
  2566. yposc
  2567. highlightColor 
  2568. value
  2569. shadowColor 
  2570. faceColor 
  2571. sized
  2572.     spupp = syspageunitsperpixel
  2573.     b = 
  2574.     syssuspendmessages = 
  2575. highlightColor 
  2576. value
  2577. shadowColor 
  2578. faceColor 
  2579. sized
  2580.     spupp = syspageunitsperpixel
  2581.     b = 
  2582.     syssuspendmessages = 
  2583. notifyBefore 
  2584.     velocityConstant = 6
  2585.     -- info 
  2586. a list 
  2587. needed information 
  2588. %follows:
  2589. *= myInfo 
  2590.     xVector= 
  2591.     elapsedTime= 
  2592.     currentDirection= 
  2593.     bnds = 
  2594.     frameBnds = 
  2595. screen 
  2596.     yVector = 
  2597.     newPosition = 
  2598.     -- now that we've moved, let's 
  2599. whether we have 
  2600. change directions
  2601. ) + 30 >= 
  2602. omaxBounce
  2603.  <= 0
  2604. ) >= 
  2605. -1 * 
  2606. buttonClick
  2607. PaintObject 
  2608. Page 
  2609. 4785,2184
  2610. Group 
  2611. 6203,1728
  2612. 4975,2146
  2613. 6090,1746
  2614. 5200,2146
  2615. 5956,1746
  2616. 5425,2178
  2617. 5822,1731
  2618. 5698,2229
  2619. 5661,1708
  2620. 5888,2267
  2621. 5548,1691
  2622. 6054,2267
  2623. 5448,1691
  2624. 6256,2273
  2625. 5330,1688
  2626. 6410,2248
  2627. 5238,1699
  2628. 6552,
  2629. 5153,1711
  2630. 6647,2184
  2631. 5097,1728
  2632. 6849,2133
  2633. 4977,1752
  2634. 7027,2108
  2635. 4871,1763
  2636. 7193,2108
  2637. 4773,1763
  2638. 7335,2121
  2639. 4688,1757
  2640. highlightColor 
  2641. value
  2642. shadowColor 
  2643. faceColor 
  2644. sized
  2645.     spupp = syspageunitsperpixel
  2646.     b = 
  2647.     syssuspendmessages = 
  2648. dial 
  2649. angle
  2650.     ctr = 
  2651. coords = 
  2652. radius = ((
  2653. ) - (
  2654. ())/2
  2655. dialAngle = (
  2656. _/360) * (2 * PI) - (PI / 2)
  2657. U"hand" 
  2658. + (.8 * 
  2659. f)), \
  2660. (.8 * 
  2661. )/2,\
  2662.     pagelist = pageList()
  2663. H360 
  2664. itemoffset(
  2665. T) + 1
  2666. "tv switch"
  2667. ("tv" && 
  2668. notifybefore 
  2669. "1,2,5,3"
  2670. positionChildViewer childViewer, bnds
  2671.     newbnds= pageUnitsToClient(
  2672. notifyAfter 
  2673. "credit" 
  2674. nameList()
  2675.     vref = 
  2676. "extra"
  2677. pagescroll 
  2678. currentpage 
  2679. "train"
  2680. r vRef,
  2681. initAnimation 
  2682. isOpen 
  2683. notifyBefore 
  2684. animate 
  2685.         nl = 
  2686. itemoffset(
  2687.         newName = 
  2688. (nl)+1) 
  2689.         close 
  2690. namelist
  2691. "Janet Strong,Melody Christensen,Shuang Li,Joseph Brick"
  2692. -- Drag 
  2693. drop outline arrangement
  2694. -- Joseph Brick, November 93
  2695. -- This 
  2696. main dragAndDrop code:
  2697. buttonclick 
  2698. B"editTopic"
  2699. ZstartLine,endLine,lineHeight,mybounds,xloc,mytext
  2700.     -- Find 
  2701. Bclicked on. 
  2702. will be 
  2703. starting 
  2704.     -- Break 
  2705. user 
  2706. G edge 
  2707. startline < 0
  2708. Uwe want 
  2709. n. we 
  2710. value
  2711.     -- later 
  2712. handler, 
  2713. we've 
  2714.  a heading:
  2715.     endline = 
  2716.     -- lineheight 
  2717. pageUnits 
  2718. (see 
  2719. V below):
  2720.     -- Cache commonly used values 
  2721.     xpix = 
  2722. sysPageUnitsPerPixel
  2723.     ypix = 
  2724.     myBounds = 
  2725.     myText = 
  2726.     marker = 
  2727.     totalLineCount = 
  2728.  we know 
  2729. be between 
  2730. sides 
  2731.     -- The following section selects 
  2732. B(s):
  2733.     -- lineList 
  2734. a list corresponding 
  2735. selectedTextLines 
  2736.     -- we wish 
  2737. 9-- (We've 
  2738.         count = 
  2739.         headingOrTopic = "
  2740.         -- Walk down 
  2741. Zwe hit another 
  2742.         -- incrementing 
  2743. needed:
  2744. oselectedTextlines 
  2745. moves 
  2746. arrow up 
  2747.     -- targetLine 
  2748. insertion point 
  2749. loop executes 
  2750. mousebutton 
  2751. released:
  2752.         mouseLoc = 
  2753.             -- 
  2754. above 
  2755. -- calculate 
  2756. Ucurrently 
  2757.             -- 
  2758. there's 
  2759. beyond 
  2760.             -- 
  2761. somewhere 
  2762.             pnt = 
  2763.             -- 
  2764. -- vertLoc 
  2765. -- lineYloc returns 
  2766. `location 
  2767. a given 
  2768.             -- 
  2769.             -- 
  2770. inside 
  2771. U(s):
  2772. toward 
  2773. U(s) 
  2774. 1 place 
  2775.         -- 
  2776. that we 
  2777.         -- numLines 
  2778.      + 1
  2779.         -- 
  2780. targetline > 
  2781.         -- we 
  2782. asure 
  2783.     moved 
  2784.         -- 
  2785.         -- 
  2786. original 
  2787.         -- 
  2788. "," & 
  2789. scrollToSelectedTextLine
  2790.     stl = 
  2791.     b = 
  2792.     s = 
  2793. y> s + 
  2794. - numlines,0)
  2795.  font:
  2796. a hidden 
  2797.     b = 
  2798. "sizeSample" 
  2799. units 
  2800. lineNum,b,
  2801. / - 1 - 
  2802. -- adjusts 
  2803. . Called 
  2804. adjustsize n
  2805.     b = 
  2806.  * n + 3*
  2807.     v = 
  2808. v - 5*
  2809. -- initializes the dialog box 
  2810. structure 
  2811. outline form 
  2812. chapters 
  2813. Ecurrent 
  2814. (curPageNum) 
  2815. highlighted.
  2816. initPage 
  2817.     chapterCount = 0
  2818.     topicCount = 0
  2819.         curBackground = 
  2820.             -- 
  2821.  heading.
  2822.             -- (
  2823.  headings are on a separate 
  2824. /"Chapter Headings"
  2825. label 
  2826. chapterName = 
  2827. -- give 
  2828. default 
  2829. -- Localization issue
  2830. " && 
  2831. U; we'll need 
  2832. comes 
  2833. update 
  2834. & spacer() & 
  2835. /"Topics"
  2836. pageName = 
  2837. R" && 
  2838. U; we'll 
  2839. trailing 
  2840.     outlineField = 
  2841. selectedTextlines 
  2842. -1,1)
  2843. scrollToSelectedTextline 
  2844.     -- store 
  2845. Mcounts
  2846. -- gets 
  2847. strings 
  2848. following two types:
  2849. p><tabs><
  2850. extractName strng
  2851.     tabOffset = 
  2852. extractID 
  2853.     lastTabLoc = 
  2854. -- updates 
  2855. 8based on 
  2856. Qmade 
  2857. updateBook
  2858. ZcurChapterID,curChapterTitle,pageList,chapterList
  2859.     -- walk through each 
  2860.         curTextLine = 
  2861.         -- 
  2862.         curTitle = 
  2863.         -- 
  2864.         curID = 
  2865.         -- 
  2866. isn't a 
  2867.         isChapterPage = 
  2868. "New"
  2869.             -- 
  2870. means we have 
  2871. addNewPage(
  2872.             -- 
  2873. PREVIOUS 
  2874.             -- list 
  2875. 's that belong 
  2876.             -- The 
  2877. now stored 
  2878. myPages 
  2879. [out 
  2880.             -- reset 
  2881.             -- 
  2882.  will be used 
  2883. table 
  2884. contents.
  2885.             --
  2886. pageText(
  2887. skipNavigation 
  2888.         -- 
  2889. needs 
  2890. know which 
  2891. belongs 
  2892. myChapterID 
  2893.         -- reorders 
  2894. numbers. 
  2895. follows 
  2896.     -- Update 
  2897. "tableOfContents" 
  2898. -- adds a 
  2899. 8. Called 
  2900. Hhandler above.
  2901.         syssuspendmessages = 
  2902.         backPage = 
  2903. visited 
  2904. -- returns a 
  2905. . This serves a 
  2906.  between 
  2907. listbox. 
  2908. clipped.
  2909.     -- flag 
  2910. %having been visited
  2911. up toolbar
  2912.     toolbarRef = 
  2913. enabled 
  2914.     -- only allow 
  2915. same chapter
  2916. "heading" 
  2917. myChapter 
  2918. -- initializes the label 
  2919. a user property 
  2920. each content 
  2921. initPage
  2922. "topicLabel" 
  2923. pressed, 
  2924. contents 
  2925. . myChapterId 
  2926. a userProperty containing 
  2927. . It 
  2928. 8overview dialog box.
  2929.     backpage = 
  2930. (myChapterID 
  2931. updateCheckMarks 
  2932. added, 
  2933. ("Enter 
  2934. f"Untitled"
  2935.             topicName = 
  2936.             chapterID = 
  2937. addTopic 
  2938. -- adds 
  2939. myPages 
  2940.     pageList = 
  2941. beyond 
  2942. ","& 
  2943. table 
  2944.     -- force 
  2945.     nextPage = 
  2946.         -- 
  2947.     previousPage = 
  2948.     chapterPage = 
  2949.         -- 
  2950. chapterHeading, 
  2951.  checkmarks
  2952.         -- 
  2953. navigation
  2954. deleted.
  2955.     -- test 
  2956. clearing 
  2957. "Warning: This operation cannot be reversed 
  2958. ]Undo." 
  2959. f"OK" 
  2960. "Cancel"
  2961.             cid = 
  2962. cpage = 
  2963. mp = 
  2964. itemOffset(
  2965. >,mp)>0
  2966. >,mp) 
  2967. -- maintain navigational structure 
  2968. f"OK" 
  2969. mp = 
  2970. >,mp)>0
  2971. >,mp) 
  2972. -- moves the golf ball 
  2973. hole, no matter where 
  2974. starts 
  2975. animate
  2976. Zsteps,ballRef,ballLoc,xmove,ymove
  2977. g. Note: 
  2978. zhigher 
  2979. more slowly 
  2980. will 
  2981. g = 20
  2982.     -- optimization: store reference 
  2983. Gbe refering 
  2984. over 
  2985.     ballref = 
  2986. two positions 
  2987. figure out how far
  2988.     -- we have 
  2989. nthem horizontally 
  2990. vertically on each 
  2991.     -- We 
  2992. Hfinding 
  2993. difference 
  2994.     -- distances 
  2995. divide 
  2996.     holeLoc = 
  2997.     -- now that we know 
  2998. loop:
  2999. somewhere 
  3000. . This 
  3001. randomBallLocation
  3002. location on 
  3003. reen.
  3004.     greenRef = 
  3005.     gbounds = 
  3006.     gsize = 
  3007.     bSize = 
  3008.     xmax = 
  3009.     ymax = 
  3010. n)),\
  3011. -- This handler accelerates 
  3012. its current 
  3013. a terminating y 
  3014. , simulating earth's gravity.
  3015. -- Since the animation 
  3016. based on 
  3017. will fall 
  3018. 'same 
  3019. -- on 
  3020. processor.
  3021. Also, since you provide 
  3022. {'s relative 
  3023. falls should look natural.
  3024. -- Parameters:
  3025. -- ob: 
  3026. -- heightInMeters: how tall 
  3027. represented 
  3028. SUPPOSED 
  3029. example, 
  3030. {represents a trash can, 
  3031. F"1" would work.)
  3032. -- y1: 
  3033. destination y coordinate, where 
  3034. want 
  3035. stop.
  3036. -- v0: 
  3037. starting 
  3038. `velocity (optional) 
  3039.  per 
  3040. -- (note: 
  3041. ToolBook 
  3042. 4, down 
  3043. positive, up 
  3044. negative)
  3045. ,y1,v0
  3046.     -- link timeGetTime(): 
  3047. returns 
  3048. milliseconds
  3049. Xmmsystem
  3050. xsupplied
  3051.         v0 = 0
  3052.     obBounds = 
  3053. units
  3054.     heightInTwips = 
  3055.     -- find out 
  3056. many 
  3057. < there are 
  3058.     twipsPerMeter = 
  3059. constant 
  3060. acceleration due 
  3061.     -- (
  3062.  = 9.8
  3063.     -- store 
  3064.     y0 = 
  3065.     t0 = timegettime()
  3066. loop moves 
  3067. reaches y1
  3068.         -- 
  3069. elapsed 
  3070. started, 
  3071.         t = (
  3072. -t0)/1000
  3073.         -- 
  3074. speed 
  3075.         v = (v0 + 
  3076.         -- 
  3077. formula 
  3078.         -- on 
  3079. v0, y0, 
  3080. Note 
  3081. conversion.
  3082.         y = y0 + (v0*t+.5*
  3083. *(t^2))*
  3084.         -- 
  3085. y, making sure we haven't gone 
  3086. v >= 0
  3087.             y = 
  3088. j(y,y1-
  3089. Zy + 
  3090. >= y1 
  3091. v >=0
  3092. -- shows thought bubble, safe. Drops 
  3093.     , bounces 
  3094. animate
  3095.     safeHeight = 2 -- 
  3096. "real life" (
  3097.     y0 = 
  3098. U"ground"
  3099. ,y0,-2
  3100. ,y0,-.5
  3101.     -- initialize 
  3102. initAnimation
  3103. wstate
  3104. initanimation
  3105. origloc 
  3106. -- moves 
  3107. {moveObj along pathObj. 
  3108. -- steps 
  3109. movements per segment 
  3110. moveObjectAlongPath 
  3111. "You can only 
  3112. lines 
  3113. angledLines."
  3114.     vert = 
  3115. startX
  3116. startY
  3117.     obSize = 
  3118.         -- here we will 
  3119. figure out how far
  3120.         -- we have 
  3121. nthem horizontally 
  3122. vertically on each 
  3123.         -- We 
  3124. Hfinding 
  3125. difference 
  3126.         -- distances 
  3127. divide 
  3128.         xmove = (
  3129.         ymove = (
  3130.         -- now that we know 
  3131.         -- 
  3132. loop:
  3133. -- This 
  3134. {serves 
  3135. %the table 
  3136. contents 
  3137. 8. It 
  3138. updated
  3139. 'Book Overview dialog box
  3140. outLine 
  3141. pageList
  3142. limited 
  3143.     maxTopics = 8
  3144.     listCount = textlineCount(
  3145.         t = 
  3146.         -- find 
  3147. that 
  3148. has been visited
  3149.         curG = 
  3150. ("g"&i) 
  3151.         o = 
  3152. curField
  3153.         -- 
  3154. extractName(t)
  3155.         -- store 
  3156. links 
  3157. pageID 
  3158. extractID(t)
  3159. remaining tabs
  3160. ("g"&i) 
  3161.     -- turn on 
  3162. selected 
  3163.     goPage = 
  3164. initPage 
  3165. -- highlights 
  3166.  "buttons" (they're really fields)
  3167. value
  3168. lightGray
  3169. darkBlue()
  3170. -- updates 
  3171. checkmarks. Only checks 
  3172. chapter have 
  3173. updateChecks
  3174.     numChapters = 8
  3175.         -- 
  3176. representing a "
  3177.         -- each 
  3178. made up 
  3179. a checkbutton.
  3180. ("g"&i) 
  3181.             o = 
  3182.             -- 
  3183. Yreferences 
  3184. checkref
  3185.             -- 
  3186. stored 
  3187.             -- a 
  3188. userProperty myPages 
  3189.             subPages = mypages 
  3190.             -- walk through 
  3191.             -- 
  3192. curID
  3193. checkRef 
  3194. highlightColor 
  3195. value
  3196. shadowColor 
  3197. faceColor 
  3198. sized
  3199.     spupp = syspageunitsperpixel
  3200.     b = 
  3201.     syssuspendmessages = 
  3202. up toolbar
  3203.     pref = 
  3204. enabled 
  3205. "heading" 
  3206. label 
  3207. -- updates 
  3208. . sent 
  3209. 4the 
  3210. entered 
  3211. that navigates 
  3212. initPage
  3213. "chapterLabel" 
  3214.     pageRef = 
  3215.     myPages = 
  3216. topicList 
  3217. updateCheckMarks
  3218. updateChecks 
  3219. clearing 
  3220. . tells user how 
  3221. readjust 
  3222. "After deleting 
  3223. , choose Book Overview 
  3224. Outline 
  3225. press OK." 
  3226. f"OK" 
  3227. "Cancel"
  3228. -- same 
  3229. [handler
  3230. cutting 
  3231. Content 
  3232. f"OK" 
  3233. xallowed on 
  3234. -- This 
  3235. {lives on the 
  3236. "ChapterHeadings" 
  3237. serves
  3238. $table 
  3239. contents 
  3240. every chapter. Each 
  3241.  heading
  3242. -- has one 
  3243. a userProperty (myPages) containing a 
  3244. -- list 
  3245. idnumbers 
  3246. BookOverview dialog box 
  3247. passed 
  3248. handler via
  3249. pageList parameter.
  3250. topicList 
  3251. limited 
  3252.     maxTopics = 10
  3253.     listCount = 
  3254. curPageID
  3255.         -- find out 
  3256. that 
  3257. been visited
  3258.         v = 
  3259.         curG = 
  3260. ("g"&i) 
  3261.         o = 
  3262. curField
  3263. curCheck
  3264.         -- update 
  3265. each 
  3266. Mbased on 
  3267. label (
  3268.         -- 
  3269. checkmark, 
  3270. appropriate
  3271. p <> v
  3272.         -- store 
  3273. {navigation
  3274. pageID 
  3275.         -- 
  3276. hidden
  3277. remaining tabs
  3278. ("g"&i) 
  3279. -- updates 
  3280. checkmarks. 
  3281. called instead 
  3282. coming 
  3283. since only 
  3284. need 
  3285. be updated
  3286. updateChecks 
  3287.         -- 
  3288. representing a "
  3289.         -- 
  3290. made up 
  3291. a checkbutton.
  3292.         curTopic = 
  3293. ("g"&i) 
  3294.             o = 
  3295. fieldRef
  3296. checkRef
  3297.             curPageId = 
  3298. curpageID
  3299.     -- turn on 
  3300. selected 
  3301.     goPage = 
  3302. (pageid 
  3303. initPage 
  3304. -- highlights 
  3305. M"buttons" (they're really fields)
  3306. value
  3307. lightGray
  3308. darkBlue()
  3309. -- sets sweep hand 
  3310. angle/360. At 0, the 
  3311. points up.
  3312. -- rotation 
  3313. clockwise
  3314.     fullRev = 360 -- constant 
  3315. degrees 
  3316. & revolution.
  3317. current 
  3318. stored property
  3319. myAngle 
  3320.     -- find 
  3321.     coords = 
  3322.     ctr = (
  3323. ")/2,\
  3324. Tradius 
  3325.     = ((
  3326. _) - (
  3327. k))/2
  3328. radians. (2*PI 
  3329.     -- Note: PI/2 
  3330. subtracted so 0 
  3331. Lrather than 
  3332.     minutesAngle = (
  3333. ) * (2 * PI) - (PI / 2)
  3334. ctr,\
  3335. {)), \
  3336. -- moves sweephand one 
  3337. around 
  3338. should take 1 
  3339. complete 
  3340. notifybefore 
  3341.     steps = 10 -- 
  3342.     millsecs = 1000 -- 
  3343. milliseconds 
  3344.     maxDisplay = 9 -- highest 
  3345. zdisplayed
  3346.     curTime = timeGetTime()
  3347.     newAngle = (
  3348. kmillSecs)/
  3349. we need 
  3350. change 
  3351.         fref = 
  3352. "counter" 
  3353.         t = 
  3354.             t = 
  3355.     -- update 
  3356. -- links 
  3357. initializes widget
  3358. Xmmsystem
  3359. entering a 
  3360. pasted 
  3361. notifyAfter 
  3362. highlightColor 
  3363. value
  3364. shadowColor 
  3365. faceColor 
  3366. sized
  3367.     spupp = syspageunitsperpixel
  3368.     b = 
  3369.     syssuspendmessages = 
  3370. [    -- 
  3371.  1993,1994. Asymetrix Corporation. All Rights Reserved.
  3372. /gives you permission 
  3373. e, revise, 
  3374. reuse the
  3375. -- individual 
  3376. scripts 
  3377. your own
  3378. -- applications.
  3379. You may 
  3380. H entire 
  3381. -- substantial part 
  3382. redistribution 
  3383. ` product.
  3384. retains 
  3385.  copyright on 
  3386.  original elements 
  3387.  . Include 
  3388.  notice "Portions 
  3389.  1993, 1994. 
  3390. they contain 
  3391. copied 
  3392. -- tableOfContents message sent 
  3393. Htoolbar 
  3394. pressed
  3395.  Standard ToolBook messages 
  3396.  menus, initialize Back handling
  3397. enterApplication
  3398. 4s_oldsyshistoryrecord
  3399.     -- used 
  3400. custom 
  3401. 4s_backMessageSent
  3402.     -- turn off 
  3403. enabled 
  3404. c"Outline" alias content 
  3405. Overview" 
  3406. #bookOverview 
  3407. checkmarks
  3408.     bk = 
  3409. visited 
  3410. "tableofcontents" 
  3411. leaveApplication
  3412. c"outline" 
  3413.     -- only puts 
  3414. navigation 
  3415. x* initiated 
  3416. HBACK
  3417. targetWindow 
  3418.             b = 
  3419. behaves like winhelp's 
  3420.  ) > 0
  3421.         b = 
  3422. the way 
  3423. xleaveapplication
  3424.  Utility handlers 
  3425. -- Used 
  3426. list box 
  3427. a dialog 
  3428. store extra information that gets clipped 
  3429. side 
  3430. extractName t
  3431.     tabOffset = 
  3432. beyond a 
  3433. extractID t
  3434.     lastTabLoc = 
  3435. U(t) 
  3436. -- returns 
  3437. numerical location 
  3438. itemOffset itm,lst
  3439. color
  3440. middleGray
  3441. 240,63.5,2.1875
  3442. dark 
  3443. darkBlue
  3444. 240,25.125,100
  3445.  Navigation 
  3446. -- brings up about 
  3447. %modal
  3448.     pref = 
  3449. updatechecks 
  3450. 8overview 
  3451. chosen 
  3452. initPage 
  3453. -- on 
  3454. , makes ball bounce around within 
  3455. "ballBounds"
  3456. notifyBefore 
  3457.     velocityConstant = 15
  3458.     -- myInfo 
  3459. a userProperty storing information needed 
  3460. figure out 
  3461.     -- where 
  3462. nthe 
  3463. t. It 
  3464. stored 
  3465. a list because
  3466.     -- accessing 1 
  3467. faster than 
  3468.     -- The 
  3469. holds 
  3470. Wfollowing 
  3471.     -- <
  3472. pageUnits moved 
  3473. iterations 
  3474. apex>,
  3475.     -- <current direction: 1 
  3476. up, -1 
  3477. down>
  3478.     xVector= 
  3479.     elapsedTime= 
  3480.     currentDirection= 
  3481. =I have 
  3482. inside
  3483.     bnds = 
  3484.     frameBnds = 
  3485.     -- Each 
  3486. used a unit 
  3487. Ipassed. At the
  3488. 0; 3 
  3489. later, 
  3490.     -- ElapsedTime 
  3491. multiplied 
  3492. acceleration constant 
  3493. calculate 
  3494. amount 
  3495. needs 
  3496. nover 
  3497. instance).
  3498.     -- When 
  3499. going 
  3500. , we 
  3501. up, we 
  3502.     yVector = 
  3503.     newPosition = 
  3504.     -- now that we've 
  3505. , let's 
  3506. whether we 
  3507. change 
  3508. `directions
  3509.         -- 
  3510. we've hit 
  3511. ) + 30 >= 
  3512. omaxBounce
  3513.         -- 
  3514. we're 
  3515.  <= 0
  3516.             -- update 
  3517. we've 
  3518. either 
  3519.         -- 
  3520.         -- 
  3521. ) >= 
  3522. -1 * 
  3523. highlightColor 
  3524. value
  3525. shadowColor 
  3526. faceColor 
  3527. sized
  3528.     spupp = syspageunitsperpixel
  3529.     b = 
  3530.     syssuspendmessages = 
  3531. -- animates globe, consisting 
  3532. 16 paintobjects named "1" 
  3533. notifybefore 
  3534.     numFrames = 16 -- 
  3535.     -- info 
  3536. a userProp that has three values (1 userProperty 
  3537. quicker 
  3538. read than 3). The 
  3539. Yare:
  3540.     -- <
  3541. occurred>,<current frame displayed>,
  3542.     -- <
  3543. delay between frames>
  3544. Zvars
  3545. lastTime
  3546. lastFrame
  3547.     newTime = timeGetTime()
  3548.     vref = 
  3549. period 
  3550. passed. If so, 
  3551. u >= 
  3552.         newFrame = 
  3553.         -- update 
  3554. newframe 
  3555. increase 
  3556. decrease the speed 
  3557. animation.
  3558. milliseconds.
  3559. -- initialize 
  3560. widget
  3561. Xmmsystem
  3562. entering a 
  3563. pasted 
  3564. notifyAfter 
  3565. -- the 
  3566. {loc, isShift
  3567. ZoldX,oldy,newX,newY
  3568.     SM_SWAPBUTTON = 23
  3569.     b = 
  3570.     xGroup = 
  3571. "xLine"
  3572.     yGroup = 
  3573. "yLine"
  3574.     xpix = 
  3575. sysPageUnitsPerPixel
  3576.     ypix = 
  3577.     dx = 
  3578.     dy = 
  3579.     cb = 
  3580. "client"
  3581.     xfield = 
  3582.     yfield = 
  3583.     descrField = 
  3584.     thisWin = 
  3585. Window
  3586. user has swapped mouse buttons, since 
  3587. returns
  3588.     -- hardware key down.
  3589. getsystemmetrics(
  3590.         leftMouseButton = 
  3591. loop occurs 
  3592. whole 
  3593. drags
  3594. (<> loc
  3595.             -- 
  3596. asure 
  3597. within 
  3598.             newP = 
  3599. cb + 330,
  3600. X-dx),
  3601. cb - (
  3602. cb+330,
  3603.  - dy),
  3604. cb - (
  3605.             b = 
  3606.             y = 
  3607. b + (
  3608.             x = 
  3609. b + (
  3610.             -- endpoint 
  3611. handler 
  3612. dimension lines)
  3613.             -- that sizes them.
  3614. m"cloudpath"
  3615. come 
  3616. a list 
  3617. pairs 
  3618.     -- one 
  3619. each vertex. For 
  3620. iteration 
  3621. loop, 
  3622.     -- we 
  3623.  grab 
  3624. y positions 
  3625. F, subtract half
  3626. xposc
  3627. select
  3628. end buttonClick
  3629. cloud
  3630. to handle buttonClick
  3631. balloon
  3632. yposb
  3633. yposc
  3634. balloonpath
  3635. cloudpath
  3636. xposb
  3637. move selection to
  3638. animate
  3639. .animate
  3640. buttonup
  3641. highlight
  3642. highlightColor
  3643. shadow
  3644. shadowColor
  3645. faceColor
  3646. highlight
  3647. highlightColor
  3648. shadow
  3649. shadowColor
  3650. faceColor
  3651. ,%H.%
  3652. ,%H.%
  3653. spupp
  3654. highlight
  3655. shadow
  3656. sized
  3657. highlight
  3658. highlightColor
  3659. shadow
  3660. shadowColor
  3661. faceColor
  3662. highlight
  3663. highlightColor
  3664. shadow
  3665. shadowColor
  3666. faceColor
  3667. ,%H.%
  3668. ,%H.%
  3669. spupp
  3670. highlight
  3671. shadow
  3672. sized
  3673. maxBounce
  3674. myInfo
  3675. myInfo
  3676. newPosition
  3677. screen
  3678. frameBnds
  3679. buttonClick
  3680. highlight
  3681. highlightColor
  3682. shadow
  3683. shadowColor
  3684. faceColor
  3685. highlight
  3686. highlightColor
  3687. shadow
  3688. shadowColor
  3689. faceColor
  3690. ,%H.%
  3691. ,%H.%
  3692. spupp
  3693. highlight
  3694. shadow
  3695. sized
  3696. angle
  3697. coords
  3698. coords
  3699. angle
  3700. 1,    #?
  3701. pagelist
  3702. itemoffset
  3703. tv switch
  3704. gpageList
  3705. buttonup
  3706. enterbackground
  3707. 1,2,5,3
  3708. pageList
  3709. newbnds
  3710. positionChildViewer
  3711. "knameList
  3712. credit
  3713. WjpositionChildViewer
  3714. extra
  3715. train
  3716. <KinitAnimation
  3717. enterpage
  3718. "knameList
  3719. credit
  3720. itemoffset
  3721. .animate
  3722. train
  3723. newName
  3724. extra
  3725. train
  3726. leavepage
  3727. Janet Strong,Melody Christensen,Shuang Li,Joseph Brick
  3728. namelist
  3729. editTopic
  3730. buttondoubleclick
  3731. V,    #>
  3732. mouseLoc
  3733. marker
  3734. count
  3735. headingOrTopic
  3736. lineHeight
  3737. targetLine
  3738. lineList
  3739. tlines
  3740. topic
  3741. llineYloc
  3742. heading
  3743. tline
  3744. IvertLoc
  3745. buttondown
  3746. lineHeight
  3747. scrollToSelectedTextLine
  3748. lineHeight
  3749. sizeSample
  3750. lineHeight
  3751. lineYloc
  3752. marker
  3753. lineHeight
  3754. adjustsize
  3755. w,    #>
  3756. .&,    #>
  3757. w,    #>
  3758. .&,    #>
  3759. ,%H.%
  3760. pageName
  3761. curBackground
  3762. outlineField
  3763. topicCount
  3764. chapterCount
  3765. topicCount
  3766. spacer
  3767. outline
  3768. Topics
  3769. LPscrollToSelectedTextline
  3770. Topic
  3771. chapterName
  3772. curPage
  3773. Chapter
  3774. Chapter Headings
  3775. 0%chapterCount
  3776. label
  3777. initPage
  3778. extractName
  3779. extractID
  3780. ,%H.%
  3781. PBmyPages
  3782. extractName
  3783. extractID
  3784. isChapterPage
  3785. myChapterID
  3786. outline
  3787. addNewPage
  3788. curID
  3789. tableOfContents
  3790. curPage
  3791. Ioutline
  3792. curTextLine
  3793. curTitle
  3794. label
  3795. updateBook
  3796. backPage
  3797. false
  3798. Cvisited
  3799. Topics
  3800. curID
  3801. Chapter Headings
  3802. addNewPage
  3803. spacer
  3804. myChapter
  3805. Cvisited
  3806. topics
  3807. previous
  3808. toolbar
  3809. heading
  3810. toolbarRef
  3811. enterpage
  3812. topicLabel
  3813. label
  3814. initPage
  3815. backpage
  3816. myChapterID
  3817. updateCheckMarks
  3818. topics
  3819. cancel
  3820. topicName
  3821. Enter name of this topic.
  3822. author
  3823. YaddTopic
  3824. chapterID
  3825. myChapterID
  3826. Untitled
  3827. newPage
  3828. .&,    #>
  3829. PBmyPages
  3830. pageList
  3831. myChapterId
  3832. topicLabel
  3833. label
  3834. ainitPage
  3835. OBmyPages
  3836. addTopic
  3837. nextPage
  3838. author
  3839. ainitPage
  3840. author
  3841. chapterPage
  3842. previousPage
  3843. ainitPage
  3844. myChapterID
  3845. updateCheckMarks
  3846. previous
  3847. Cancel
  3848. PBmyPages
  3849. itemOffset
  3850. author
  3851. ainitPage
  3852. cpage
  3853. Warning: This operation cannot be reversed using Undo.
  3854. myChapterID
  3855. OBmyPages
  3856. clear
  3857. Cancel
  3858. PBmyPages
  3859. itemOffset
  3860. author
  3861. ainitPage
  3862. cpage
  3863. Warning: This operation cannot be reversed using Undo.
  3864. myChapterID
  3865. OBmyPages
  3866. holeLoc
  3867. randomBallLocation
  3868. animate
  3869. green
  3870. ballRef
  3871. gbounds
  3872. gsize
  3873. bSize
  3874. greenRef
  3875. randomBallLocation
  3876. obBounds
  3877. timeGetTime
  3878. timegettime
  3879. timeGetTime
  3880. mmsystem
  3881. accelerate
  3882. ,%H.%
  3883. safeHeight
  3884. ground
  3885. thought
  3886. accelerate
  3887. <KinitAnimation
  3888. animate
  3889. ,%H.%
  3890. thought
  3891. b;origloc
  3892. initanimation
  3893. startY
  3894. You can only move objects along lines or angledLines.
  3895. startX
  3896. line,angledLine
  3897. obSize
  3898. moveObjectAlongPath
  3899. extractName
  3900. extractID
  3901. pageID
  3902. curField
  3903. outLine
  3904. false
  3905. goPage
  3906. Zselected
  3907. pageID
  3908. ainitPage
  3909. buttondown
  3910. [darkBlue
  3911. selected
  3912. checkref
  3913. false
  3914. Cvisited
  3915. subPages
  3916. curID
  3917. pageID
  3918. pageID
  3919. OBmypages
  3920. value
  3921. updateChecks
  3922. highlight
  3923. highlightColor
  3924. shadow
  3925. shadowColor
  3926. faceColor
  3927. highlight
  3928. highlightColor
  3929. shadow
  3930. shadowColor
  3931. faceColor
  3932. ,%H.%
  3933. ,%H.%
  3934. spupp
  3935. highlight
  3936. shadow
  3937. sized
  3938. previous
  3939. topics
  3940. toolbar
  3941. heading
  3942. label
  3943. enterpage
  3944. myPages
  3945. topics
  3946. topicList
  3947. pageRef
  3948. chapterLabel
  3949. label
  3950. OBmyPages
  3951. initPage
  3952. topics
  3953. updateChecks
  3954. OBmyPages
  3955. updateCheckMarks
  3956. Cancel
  3957. After deleting this page, choose Book Overview from the Outline menu, and press OK.
  3958. author
  3959. clear
  3960. Cancel
  3961. author
  3962. After cutting this page, choose Book Overview from the Content menu, and press OK.
  3963. ainitPage
  3964. author
  3965. previous
  3966. curCheck
  3967. Cvisited
  3968. pageID
  3969. curField
  3970. curPageID
  3971. label
  3972. topicList
  3973. checkRef
  3974. fieldRef
  3975. Cvisited
  3976. curPageId
  3977. pageID
  3978. curTopic
  3979. updateChecks
  3980. false
  3981. goPage
  3982. Zselected
  3983. pageid
  3984. ainitPage
  3985. buttondown
  3986. [darkBlue
  3987. selected
  3988. {:myAngle
  3989. coords
  3990. minute
  3991. sweep
  3992. .&,    "
  3993. sweep
  3994. maxDisplay
  3995. timeGetTime
  3996. curTime
  3997. z:myAngle
  3998. counter
  3999. timeGetTime
  4000. sweep
  4001. timeGetTime
  4002. counter
  4003. mmsystem
  4004. enterpage
  4005. highlight
  4006. highlightColor
  4007. shadow
  4008. shadowColor
  4009. faceColor
  4010. highlight
  4011. highlightColor
  4012. shadow
  4013. shadowColor
  4014. faceColor
  4015. ,%H.%
  4016. ,%H.%
  4017. spupp
  4018. highlight
  4019. shadow
  4020. sized
  4021. ,%H.%
  4022. bookOverview
  4023. false
  4024. author
  4025. Cvisited
  4026. Outline
  4027. topics
  4028. tableofcontents
  4029. toolbar
  4030. content
  4031. Content
  4032. Book Overview
  4033. s_backMessageSent
  4034. s_oldsyshistoryrecord
  4035. enterApplication
  4036. outline
  4037. leaveApplication
  4038. false
  4039. toolbar
  4040. s_backMessageSent
  4041. leavepage
  4042. .&,    "
  4043. toolbar
  4044. s_backMessageSent
  4045. You are all the way back.
  4046. xleaveapplication
  4047. Content
  4048. xleaveapplication
  4049. .&,    "
  4050. extractName
  4051. extractID
  4052. ,%H.%
  4053. itemOffset
  4054. O@middleGray
  4055.  9@darkBlue
  4056. about
  4057. about
  4058. tableOfContents
  4059. tableofcontents
  4060. updatechecks
  4061. tableOfContents
  4062. content
  4063. ainitPage
  4064. bookOverview
  4065. reader
  4066. .&,    7
  4067. maxBounce
  4068. myInfo
  4069. ballBounds
  4070. myInfo
  4071. newPosition
  4072. frameBnds
  4073. highlight
  4074. highlightColor
  4075. shadow
  4076. shadowColor
  4077. faceColor
  4078. highlight
  4079. highlightColor
  4080. shadow
  4081. shadowColor
  4082. faceColor
  4083. ,%H.%
  4084. ,%H.%
  4085. spupp
  4086. highlight
  4087. shadow
  4088. sized
  4089. lastTime
  4090. newTime
  4091. timeGetTime
  4092. lastFrame
  4093. newFrame
  4094. delay
  4095. timeGetTime
  4096. timeGetTime
  4097. mmsystem
  4098. enterpage
  4099. SM_SWAPBUTTON
  4100. descr
  4101. client
  4102. xLine
  4103. yLine
  4104. 5nendpoint
  4105. yGroup
  4106. getsystemmetrics
  4107. yfield
  4108. thisWin
  4109. getsystemmetrics
  4110. xGroup
  4111. xfield
  4112. descrField
  4113. buttonDown
  4114. Chapter Headings
  4115. Topics
  4116. out,true
  4117. ThreeDeeRect
  4118. bottomLine
  4119. topLine
  4120. out,true
  4121. ThreeDeeRect
  4122. bottomLine
  4123. topLine
  4124. in,true
  4125. ThreeDeeRect
  4126. bottomLine
  4127. topLine
  4128. raisedField
  4129. tbk_wid_name
  4130. faceColor
  4131. highlightColor
  4132. shadowColor
  4133. tbk_wid_props
  4134. color,hls
  4135. color,hls
  4136. color,hls
  4137. tbk_wid_values
  4138. highlight
  4139. Move to commandtynerttonss
  4140. shadow
  4141. Move to commandtynerttonss
  4142. Move to commandtynerttonss
  4143. topicLabel
  4144. strChecked
  4145. strChecked
  4146. strChecked
  4147. strChecked
  4148. strChecked
  4149. strChecked
  4150. strChecked
  4151. strChecked
  4152. strChecked
  4153. strChecked
  4154. strChecked
  4155. strChecked
  4156. strChecked
  4157. strChecked
  4158. strChecked
  4159. strChecked
  4160. strChecked
  4161. strChecked
  4162. strChecked
  4163. strChecked
  4164. strChecked
  4165. strChecked
  4166. strChecked
  4167. strChecked
  4168. strChecked
  4169. strChecked
  4170. getsystemmetrics
  4171. xGroup
  4172. xfield
  4173. descrField
  4174. buttonDown
  4175. Chapter Headings
  4176. Topics
  4177. NN,qNN
  4178. ;qqvO
  4179. 8'4 r
  4180. D880808;8
  4181. @@xxR
  4182. D0D88
  4183. 8m8Dc
  4184. YYBITEDIT EXE 
  4185. PALEDIT EXE 
  4186. WINCOMT DLL 
  4187. WRKBNCHTDLL 
  4188. MEDIMPT MMH 
  4189. MEDBITSTMMH 
  4190. TB30PDX DLL 
  4191. DIB     DRV 
  4192. DLG     HLP 
  4193. MENUEDITHLP 
  4194. ICONEDITHLP 
  4195. TB30    HLP 
  4196. BITEDIT HLP 
  4197. 3DD;3
  4198. 4458q
  4199. xt414
  4200. wWsOO
  4201. 86110
  4202. 7ssp4
  4203. x?OHuOVS`1
  4204. _E7787
  4205. pMaeo
  4206. dd788
  4207. W6OO8
  4208. 7885OOW
  4209. xsOOCh
  4210. VVS_p
  4211. oOO?x
  4212. OOcco
  4213. v6Wv7
  4214. sVV6x
  4215. s/OOg
  4216. 86V8    
  4217. 6VVQc
  4218. oOO?ss
  4219. OOV?Fs
  4220. 1!!/p
  4221. 6VVOp
  4222. 131316=1
  4223. 14;;?
  4224. 1@@I;
  4225. 6@@9@
  4226. =    10w
  4227. 11;11
  4228. wq3Q91
  4229. wws    ;
  4230. `5;30
  4231. `;053
  4232. 1AV;1
  4233. V\VLVLV\
  4234. F\F\VLV\VE
  4235. eieieieie
  4236. ieieieieie
  4237. ieieieieie
  4238. ieieieieie
  4239. ieieie`
  4240. `ieieieie
  4241. ieieieieie
  4242. ieieieieie
  4243. ieieieieie
  4244. ieiei`0
  4245. PP!@    
  4246. AVxP`
  4247. pwG?p
  4248. VTTVTVTP
  4249. 991911
  4250. `ieieieie
  4251. ieieieieie
  4252. ieieieieie
  4253. iee    5
  4254. eieieieie
  4255. ieieieieie
  4256. ieieieie
  4257. `0o`0o`
  4258. 07wpw
  4259. wpwwx
  4260. xwwxxwwxx
  4261. wwxxwwxxww
  4262. xxwwxxwwxx
  4263. wwxxwwxxwp
  4264. xwwxxwwxx
  4265. wwxxwwxxww
  4266. xxwwxxwwxx
  4267. wwxxwwxxwp
  4268.