home *** CD-ROM | disk | FTP | other *** search
/ Using Asymetrix Multimedi…ool Book Special Edition / SE_UAMT.iso / examples / 07ex01.tbk (.txt) < prev    next >
Encoding:
Asymetrix ToolBook File  |  1995-10-27  |  65.8 KB  |  610 lines

  1. mmPlayer
  2. mmwidget_stage
  3. myStage
  4. mmWidget
  5. custom,newClip()
  6. boolean
  7. boolean
  8. boolean
  9. boolean
  10. boolean
  11. list,stretchMedia,stretchStage,clipMedia,centerMedia
  12. tbk_wid_values
  13. clipRef
  14. preLoadMedia
  15. autoPlayMedia
  16. autoCloseMedia
  17. autoShowMedia
  18. SliderUpdate
  19. MediaSizing
  20. tbk_wid_props
  21. centerMedia
  22. mediaSizing
  23. preLoadMedia
  24. AutoPlayMedia
  25. autoCloseMedia
  26. autoShowMedia
  27. Multimedia Widget
  28. tbk_wid_name
  29. clip "elephant"
  30. clipRef
  31. sliderUpdate
  32. mmwidget_controls
  33. 2580,2460,5205,2835
  34. llplayClip
  35. buttonClick
  36. buttonClick
  37. playClip
  38. 2580,2460,2955,2835
  39. aspect
  40. pause
  41. pauseClip
  42. buttonClick
  43. buttonClick
  44. pauseClip
  45. 2955,2460,3330,2835
  46. aspect
  47. DystopClip
  48. buttonClick
  49. buttonClick
  50. stopClip
  51. 3330,2460,3705,2835
  52. aspect
  53. step forward
  54. pstepClip
  55. buttonClick
  56. mmYieldApp
  57. pstepClip
  58. buttonStillDown
  59. buttonClick
  60. stepClip
  61.     --HACK: should use mmYield
  62. mmYieldApp()
  63. aspect
  64. 3705,2460,4080,2835
  65. fast forward
  66. seekClipFromEnd
  67. buttonClick
  68. buttonClick
  69. seekClipFromEnd 0
  70. aspect
  71. 4080,2460,4455,2835
  72. step backward
  73. stepClipBack
  74. buttonClick
  75. mmYieldApp
  76. stepClipBack
  77. buttonStillDown
  78. buttonClick
  79. stepClipBack
  80.     --HACK: should use mmYield
  81. mmYieldApp()
  82. aspect
  83. 4455,2460,4830,2835
  84. rewind
  85. _seekClip
  86. start
  87. buttonClick
  88. buttonClick
  89. seekClip 
  90. aspect
  91. 4830,2460,5205,2835
  92. mmwidget_stage
  93. leavePage
  94. enterPage
  95. showThis
  96. Select Image...
  97. *ClassTbl*
  98. *ClassEntry*
  99. *PTABLE*
  100. *WINDOWSEG*
  101. *ICONRESTAB*
  102. *ICONRESSEG*
  103. *ICONRES*
  104. Background
  105. *OBJTABLE*
  106. *IDTABLE*
  107. *NAMETAB*
  108. Rectangle
  109. Ellipse
  110. RoundedRectangle
  111. Polygon
  112. IrregularPolygon
  113. AngledLine
  114. Curve
  115. PaintObject
  116. Picture
  117. Hotword
  118. *RHOTWORD*
  119. Group
  120. Stage
  121. Button
  122. Viewer
  123. ComboBox
  124. Field
  125. RecordField
  126. *TbxBase*
  127. showThis
  128. Select Image...
  129. *ClassTbl*
  130. TB30    CDX 
  131. <BookPath>
  132. :HDMEDIAPATH
  133. MS Sans Serif
  134. Arial
  135. System
  136. utton
  137. buttonClick
  138. buttonClick
  139. next page
  140. blinds normal
  141. spiral out normal
  142. showPicture
  143. utton
  144. show picture
  145. picture1
  146. showPicture
  147. buttonUp
  148.     mmPlay clip "picture1" 
  149. stage "showPicture"
  150. CDBSE&File
  151. &Open...    Ctrl+O
  152. &Save    Ctrl+S
  153. Save &As...
  154. saveas
  155. &Import...
  156. import
  157. &Export...
  158. export
  159. Print Set&up...
  160. printsetup
  161. &Print Pages...    Ctrl+P
  162. printpages
  163. Prin&t Report...
  164. printreport
  165. Send &Mail...
  166. sendmail
  167. &Run...
  168. E&xit    Alt+F4
  169. &Edit
  170. &Undo    Ctrl+Z
  171. Cu&t    Ctrl+X
  172. &Copy    Ctrl+C
  173. &Paste    Ctrl+V
  174. paste
  175. C&lear    Del
  176. clear
  177. Select &All    Shift+F9
  178. selectall
  179. Select Pa&ge    Shift+F12
  180. selectpage
  181. &Size to Page    F11
  182. sizetopage
  183. F&ind...    F5
  184. Re&place...
  185. replace
  186. Aut&hor    F3
  187. author
  188. &Text
  189. &Character...    F6
  190. character
  191. &Paragraph...    F7
  192. paragraph
  193. &Regular    Ctrl+Space
  194. regular
  195. &Bold    Ctrl+B
  196. &Italic    Ctrl+I
  197. italic
  198. &Underline    Ctrl+U
  199. underline
  200. Stri&keout    Ctrl+K
  201. strikeout
  202. Superscrip&t/Subscript
  203. superscriptSubscript
  204. &Normal Script
  205. normalscript
  206. Su&bscript    Ctrl+L
  207. subscript
  208. Su&perscript    Ctrl+Shift+L
  209. superscript
  210. &Show Hotwords    F9
  211. showhotwords
  212. &Page
  213. &Next    Alt+Right
  214. &Previous    Alt+Left
  215. previous
  216. &First    Alt+Up
  217. first
  218. &Last    Alt+Down
  219. &Back    Shift+F2
  220. &History...    Ctrl+F2
  221. history
  222. N&ew Page    Ctrl+N
  223. newpage
  224. &Help
  225. &Contents    F1
  226. contents
  227. Status &Bar    F12
  228. statusbar
  229. phone
  230. elephant
  231. picture1
  232. playThis
  233. playThis
  234. c:\windows\ringout.wav
  235. d:\mtb_book\ch07\elephant.avi
  236. d:\mtb_book\ch07\clay4.bmp
  237. R:\MTB_BOOK\CH07\CLAY.BMP
  238. aType:Unknown
  239. MediaType:Wav
  240. mmc_pause
  241. mmc_pause_d
  242. mmc_stop
  243. mmc_stop_d
  244. mmc_play
  245. mmc_play_d
  246. mmc_ff
  247. mmc_ff_d
  248. mmc_step_f
  249. mmc_stepf_d
  250. mmc_rw
  251. mmc_rw_d
  252. mmc_stepb
  253. mmc_stepb_d
  254. wwwwwwwwwwwwwwwww
  255. wwwwwwwwwwwwwwwww
  256. wwwwwwwwwwwwwwwww
  257. wwwwwwwwwwwwwwwww
  258. wwwwwwwwwwwwwwwww
  259. wwwwwwwwwwwwwwwww
  260. wwwwwwwwwwwwwwwww
  261. wwwwwwwwwwwwwwwww
  262. wwwwwwwwwwwwwwwww
  263. wwwwwww
  264. wwwwww
  265. wwwww
  266. wwwww
  267. wwwwww
  268. wwwwwwwwwwwwwwwwwwwwww
  269. wwwwwwwwwwwwwwwww
  270. wwwwwww
  271. wwwwww
  272. wwwww
  273. wwwww
  274. wwwwww
  275. wwwwwwwwwwwwwwwwwwwwww
  276. wwwwwwwwwwwwwwwwwwwwwwwww
  277. wwwwwwwwwwwwwwwwwww
  278. wwwwwwwwwwwwwwwwwwwwwwwww
  279. wwwwwwwwwwwwwwwwwww
  280. wwwwwwwwwwwwwwwww
  281. wwwww
  282. wwwwwwwwwwwwwwwwwww
  283. wwwwwwwwwwwwwwwww
  284. wwwww
  285. wwwwwwwwwwwwwwwwwww
  286. wwwwwwwwwwwwwwwwwwwxwwxwwww
  287. wwwwxwwxwwwwwwwwwwwwwwwww
  288. wwwwwwwwwwwwwwwwwww
  289. wwwwwwwwwwwwwwwww
  290. wwwwwwwwwwwwwwwwwwwxx
  291. wwwwxp
  292. wwwwwwwwwwwwwwwww
  293. wwwwwwwwwwwwwwwwwww
  294. wwwwwwwwwwwwwwwww
  295. ^#6#6#
  296. showWidgetsProps
  297. ,3clipRef
  298. mmwidget_controls
  299. adjustControls
  300. moved
  301. mmwidget_controls
  302. adjustControls
  303. sized
  304. EushowClip
  305. preLoadMedia
  306. mmWidgetSysBook
  307. mmYieldApp
  308. (hopenClip
  309. HautoPlayMedia
  310. llplayClip
  311. kQautoShowMedia
  312. ,3clipRef
  313. setClipControls
  314. TB30WIN.DLL
  315. AUTHOR
  316. enterPage
  317. mmWidgetSysBook
  318. kautoCloseMedia
  319. closeClip
  320. ,3clipRef
  321. AUTHOR
  322. leavePage
  323. myClip
  324. _jcheckStageSize
  325. ,3clipRef
  326. setClipControls
  327. whatStage
  328. stageObj
  329. playClip
  330. .'+    +F
  331. .'+    +F
  332. myClip
  333. _jcheckStageSize
  334. ,3clipRef
  335. openClip
  336. ,3clipRef
  337. closeClip
  338. ,3clipRef
  339. pauseClip
  340. ,3clipRef
  341. stopClip
  342. myClip
  343. ,3clipRef
  344. whatStage
  345. stageObj
  346. showClip
  347. ,3clipRef
  348. Z>isReady
  349. seekClip
  350. ,3clipRef
  351. Z>isReady
  352. seekClipFromEnd
  353. myClip
  354. stepSize
  355. ,3clipRef
  356. m{stepDist
  357. Z>isReady
  358. stepClip
  359. myClip
  360. stepSize
  361. ,3clipRef
  362. m{stepDist
  363. Z>isReady
  364. stepClipBack
  365. setClipControls
  366. mmNotify
  367. mmYieldApp
  368. Unhandled:
  369. step forward
  370. pause
  371. clipStat
  372. seeking
  373. step backward
  374. rewind
  375. paused
  376. ,3clipRef
  377. stopped
  378. playing
  379. fast forward
  380. closed
  381. setClipControls
  382. stage
  383. whatStage
  384. FALSE
  385. playingpausedstopped
  386. isReady
  387. mmwidget_controls
  388. adjustControls
  389. stretchStage
  390. whatStage
  391. stageObj
  392. checkStageSize
  393. myClip
  394. setMySize
  395. newClip
  396. mediaSizing
  397. whatStage
  398. setMySize
  399. mediaSizing
  400. myStage
  401. mmwidget_controls
  402. adjustControls
  403. stretchStage
  404. ,3clipRef
  405. whatStage
  406. setMySize
  407. .'+    +F
  408. .'+    +F
  409. showThis
  410. fileList
  411. Bitmaps(*.bmp),*.bmp
  412. fName
  413. TB40DLG.DLL
  414. Tagged Images (*.tif),*.tif
  415. filterList
  416. getFileListDlg
  417. mgetFileListDlg
  418. Which image file to display?
  419. playThis
  420. User Canceled.
  421. buttonUp
  422. sized
  423. moved
  424. thumb
  425. button
  426. parentBounds
  427. sliderBounds
  428. hasSlider
  429. myObjs
  430. slider
  431. parentSize
  432. sliderline
  433. whatStage
  434. adjustcontrols
  435. notifyBefore 
  436. clipRef 
  437. <> NULL
  438. showWidgetsProps
  439. moved
  440. adjustControls 
  441. "mmwidget_controls" 
  442. sized
  443. ~<> AUTHOR 
  444. mmWidgetSysBook 
  445.         -- HACK: Should use mmYield 
  446.         linkDLL "TB30WIN.
  447. mmYieldApp()
  448. (preLoadMedia 
  449. = TRUE) 
  450. ) <> 
  451. openClip 
  452. (autoShowMedia 
  453. showClip 
  454. (autoPlayMedia 
  455. playClip 
  456. setClipControls 
  457. notifyAfter 
  458. (autoCloseMedia 
  459. ) <> 
  460. closeClip 
  461.     myClip = (
  462. mmPlayable 
  463.         stageObj = whatStage 
  464. checkStageSize
  465.         mmOpen 
  466. wait 
  467. ) <> 
  468.         mmClose 
  469. pauseClip
  470. ) <> 
  471.         mmPause 
  472. stopClip
  473. ) <> 
  474.         mmRewind 
  475.             mmShow 
  476. seekClip argPos
  477. isReady(
  478.         mmSeek 
  479. seekClipFromEnd 
  480. stepClip
  481. stepDist 
  482.             stepSize = 
  483. Q(mmLength 
  484. / 20)
  485. mmPosition 
  486.             mmStep 
  487. stepClipBack
  488. / 20)
  489. mmNotify argMedia, argCommand, argResult
  490.     oldLock = lockScreen 
  491. enabled 
  492. = FALSE
  493. backward" 
  494. B"rewind" 
  495.         clipStat = mmStatus 
  496. "stopped"
  497. "paused"
  498. "seeking"
  499. "playing"
  500. "closed"
  501. "Unhandled:" && 
  502. getObjectList(
  503.      whatClip
  504. "playingpausedstopped"
  505. stageSizing 
  506. stretchStage
  507. newClip
  508. chooseResource(
  509. setMySize 
  510. mediaSizing 
  511. value
  512. () = 
  513.     myStage = 
  514.         mediaSize 
  515. 1mmVisualSize 
  516. N160,100
  517. -- link the DLL needed 
  518. standard file access
  519. linkDLL "TB40DLG.
  520. STRING getFileListDlg(
  521. ,INT)
  522. -- create 
  523. mfilter 
  524. `types you are supporting
  525. filterList = "Bitmaps(*.bmp),*.
  526. ","Tagged Images (*.tif),*.
  527. dialog box 
  528. requesting 
  529. names
  530. fileList = 
  531. "Which image 
  532. display?", \
  533. user pressed "
  534. "User Canceled."
  535. cursor 
  536. a wait icon
  537. -- ignore error messages 
  538. clip has 
  539. xbeen added yet
  540. -- close 
  541. *(just 
  542. mmClose 
  543. E"playThis"
  544. resource 
  545. pthat they selected
  546. fName
  547. & more than one 
  548. . In 
  549. example, we
  550. -- will 
  551. chosen
  552. manager
  553. It = "
  554. -- now, 
  555. mmPlay 
  556. stage "showThis"
  557. -- give 
  558. their 
  559. sized
  560.     ssm = syssuspendmessages
  561. oldb 
  562. moved
  563. adjustcontrols
  564. e= TRUE
  565.     buttonSize = 25*
  566. syspageunitsperpixel
  567.     parentBounds = 
  568. whatStage()
  569.     parentSize = 
  570.     myObjs = 
  571.     numObjs = 
  572.     numberButtons = 0
  573.         obj = 
  574. hasSlider 
  575. "slider" 
  576.         sliderBounds = 
  577. 9+ 5 * 
  578. l- 5 * 
  579. "sliderline" 
  580. + 7 * 
  581. - 7 * 
  582. B"thumb" 
  583. e= FALSE
  584.  = ssm
  585. N160,100
  586. -- link the DLL needed 
  587. standard file access
  588. linkDLL "TB40DLG.
  589. STRING getFileListDlg(
  590. ,INT)
  591. -- create 
  592. mfilter 
  593. `types you are supporting
  594. filterList = "Bitmaps(*.bmp),*.
  595. ","Tagged Images (*.tif),*.
  596. dialog box 
  597. c:c:c:c:c:c:c:g:g;g[g[g[k[k[k[k{k{o{o{o{o{o{o{o{o{o{o{o{o{o{o{o{o{o{o
  598. JxJxJxJxFxFxFXFXFWFWBWBWBWBWBWBWBWBWBWBWBWBWBWBWBWBWBWBWBWBWBWBWFWFWFWFWFWFWFWFWFWFWFWFWFWFxJxJxJxJxJxJ
  599. NxJxJxJxFWFWFWFWB7B7B7>7>7>
  600. >7>7>7>7B7BWBWBWFWFWFwFxFxJxJxJxJ
  601. VPATCHER CDX 
  602. 256COLORBMP
  603. PKUNZIP EXE 
  604. DIRDIB  DRV 
  605. ECCO    ALM 
  606. WPSPELUSSUP 
  607. P}00031TMP 
  608. ECCO    FDB 
  609. ECCO    CFG 
  610.