home *** CD-ROM | disk | FTP | other *** search
/ Using Asymetrix Multimedi…ool Book Special Edition / SE_UAMT.iso / examples / 24mtb02.tbk (.txt) < prev    next >
Encoding:
Asymetrix ToolBook File  |  1995-07-25  |  140.2 KB  |  483 lines

  1. Repeating Media
  2. ASYM_BeenHere
  3. Not only does a notify handler allow the user to continue to interact with your application while a media file is playing, it also can be used to play a media file continuously.
  4. You can loop a media clip using a notify handler.  The notify handler would tell the media clip to play again.
  5. Repeating Media
  6. repeating media
  7. Music
  8. buttonClick
  9. successful
  10. Music
  11. mmNotify
  12. Music
  13. leavePage
  14. buttonClick
  15.     mmOpen clip "Music"
  16.     mmPlay 
  17.  notify 
  18. mmNotify clipName, commandName, result
  19. c"successful"
  20. notifyBefore 
  21.     mmClose 
  22. &Play and repeat a wave clip
  23. buttonClick
  24. buttonClick
  25. &Go to next page
  26. leavePage
  27. Repeating Media
  28. Using notify
  29. ASYM_BeenHere
  30. 9507252102095089368121454374
  31. ASYM_TpID
  32. <BookPath>
  33. :HDMEDIAPATH
  34. System
  35. info_LastSavedBy
  36. info_LastSaved
  37. Erik Reitan
  38. Arial
  39. Erik Reitan
  40. Arial
  41. Arial
  42. 7/25/95 8:52:07 PM
  43. Erik Reitan
  44. Arial
  45. 7/25/95 8:51:30 PM
  46. 7/25/95 8:51:33 PM
  47. 9507251716271924423826373122
  48. ASYM_TpID
  49. Backdrop
  50. _ASYMA_LockMove
  51. Multimedia ToolBook
  52. Frequently Asked Questions
  53. Playing a wave file and allowing other actionss
  54. enterpage
  55. ASYM_Reset
  56. :HDMEDIAPATH
  57. System
  58. info_LastSavedBy
  59. <BookPath>
  60. info_LastSaved
  61. Erik Reitan
  62. Arial
  63. Erik Reitan
  64. Arial
  65. Arial
  66. Erik Reitan
  67. 7/25/95 8:55:31 PM
  68. :CDMEDIAPATH
  69. Arial
  70. waveAudio
  71. Wave Audio driver not found!
  72. enterBook
  73. "waveAudio" 
  74. sysSupportedMedia
  75. "Wave 
  76. % driver 
  77. xfound!"
  78. 7/25/95 8:57:45 PM
  79. isplay dialog box
  80. CDBSE&File
  81. &Open...    Ctrl+O
  82. &Save    Ctrl+S
  83. Save &As...
  84. saveas
  85. &Import...
  86. import
  87. &Export...
  88. export
  89. Print Set&up...
  90. printsetup
  91. &Print Pages...    Ctrl+P
  92. printpages
  93. Prin&t Report...
  94. printreport
  95. Send &Mail...
  96. sendmail
  97. &Run...
  98. E&xit    Alt+F4
  99. &Edit
  100. &Undo    Ctrl+Z
  101. Cu&t    Ctrl+X
  102. &Copy    Ctrl+C
  103. &Paste    Ctrl+V
  104. paste
  105. C&lear    Del
  106. clear
  107. Select &All    Shift+F9
  108. selectall
  109. Select Pa&ge    Shift+F12
  110. selectpage
  111. &Size to Page    F11
  112. sizetopage
  113. F&ind...    F5
  114. Re&place...
  115. replace
  116. Aut&hor    F3
  117. author
  118. &Text
  119. &Character...    F6
  120. character
  121. &Paragraph...    F7
  122. paragraph
  123. &Regular    Ctrl+Space
  124. regular
  125. &Bold    Ctrl+B
  126. &Italic    Ctrl+I
  127. italic
  128. &Underline    Ctrl+U
  129. underline
  130. Stri&keout    Ctrl+K
  131. strikeout
  132. Superscrip&t/Subscript
  133. superscriptSubscript
  134. &Normal Script
  135. normalscript
  136. Su&bscript    Ctrl+L
  137. subscript
  138. Su&perscript    Ctrl+Shift+L
  139. superscript
  140. &Show Hotwords    F9
  141. showhotwords
  142. &Page
  143. &Next    Alt+Right
  144. &Previous    Alt+Left
  145. previous
  146. &First    Alt+Up
  147. first
  148. &Last    Alt+Down
  149. &Back    Shift+F2
  150. &History...    Ctrl+F2
  151. history
  152. N&ew Page    Ctrl+N
  153. newpage
  154. &Help
  155. &Contents    F1
  156. contents
  157. Status &Bar    F12
  158. statusbar
  159. notifybefore 
  160. "0,0"
  161. "0,0" 
  162. moved
  163.     ssm = sysSuspendMessages
  164. notifyBefore ASYM_Reset
  165. {loc;
  166. buttonClick 
  167. rightButtonClick 
  168. enterpage
  169. moved
  170. ASYM_Reset
  171. buttonDown
  172. buttonUp
  173. buttonClick
  174. buttonDoubleClick
  175. rightButtonDown
  176. rightButtonUp
  177. rightButtonClick
  178. rightButtonClick
  179. rightButtonDoubleClick
  180. new-4
  181. Music
  182. 24mtb01.wav
  183. e\bonanza
  184.  %+ %,  
  185. %%4+%%%%,%,,4,,,,%,%,,% 
  186. %,+ +
  187.  %%%%%%+%44+%%,,,8,,,%,%+
  188. %4+ +
  189.  %%  ++%
  190. %+%%+%%% +%%%%%%%, %
  191.  %%%%% 
  192. + %%+ %  4%+% 
  193.  4 % 
  194. %% %%
  195.  %%%+%+% %%%%4%% % 
  196. % %   %+% %+ ++
  197.     +%
  198. % %%%
  199. ###!#
  200. *;*&)
  201. &9))(
  202. '&*55
  203. ()5*(
  204. )9*)*
  205. '5&('
  206. &)).('
  207. H2)&)
  208. ))($$
  209. $(*$$(
  210. &*?D$
  211. ($95)&)(
  212. '($;'
  213. '()*K25
  214. '(****)
  215. $.**)
  216. $$*&(
  217. $(5('('
  218. $&9)(
  219. ')*;)
  220. $$$))
  221. $$**$
  222. $)*$)
  223. )*5$.)
  224. )*9;*).(
  225. $***)**$'
  226. $$*$$
  227. .)5*$
  228. ).()*))'
  229. )*))$
  230. (5?.(
  231. #!##!
  232. %    
  233. $)))$'
  234.      +%
  235.  %%,%
  236.  +,, 
  237. #""!"
  238. %%%% !
  239.  %%%%
  240. %%%%%
  241. ++ +% 
  242. ((.$(
  243. $$.).$
  244. '($$$
  245. %% %+8
  246. %%  %
  247. +%%%+4%% 
  248. $.$))$($$.)$)).($)).$$)(($)$(
  249. ).$$(
  250. ).$$$((
  251. %  % 
  252.  %    
  253. %! % 
  254.  %%  %%% 
  255.  ,,,%
  256.  4%4 4
  257.        
  258. % %%%
  259. % +   
  260.   + %
  261.  %+%  %%C +%, 
  262. 4%%+%
  263. %%+%%
  264. ++,%,
  265. ,%%%%
  266.     %%4,
  267.  %%%,,
  268. ,%,+ 
  269. %%%+% 
  270.   +%%%,,%,+%%
  271.  %%%%%
  272.  %,,4,%,4%8,8,%,+%  + %%+4%%
  273.     %,,%%%%%,,%, %%%+%, % 
  274.  %+  
  275. 488,%% ,,,% 4%%, %8%
  276. %,,>C,8+,,, %+%,8,, 
  277. % ,>,C>,%+,%
  278. %, ,%%  %%%%
  279. %,,%,CC>%%,% +8%%%++
  280. +%,%4,88%, 
  281.  +% %,%
  282. %%,,%%8,,%
  283. %%>,+488,,
  284. % +% 
  285. ,>,,% +,4,%%%,4
  286. ,,,,,,44%%, ,, %
  287. ,%4,%4 ++
  288. +%%48%%,%%%
  289. %%%%%%,,,8%
  290. %%4%%C%,4,, 
  291. %%%,% 
  292.  %,%4
  293. 84%, 4%%
  294. %8 %,  
  295.  ,8%,
  296. %%%  
  297. 4 %+%
  298.  % %%%%
  299. (').'
  300. ()$$(
  301. B/7/2
  302. .712/
  303. $.0502
  304. ./1//
  305. $.0502
  306. $0203
  307. $$*=0/
  308. $$$5=/7
  309. $&$$10//
  310. $)&$&07/
  311. $.&&&)12/0
  312. $&&&$)0</
  313. &)&.&&&2/0
  314. &)&)&$&1102J
  315. &--&&$$)1/03
  316. &&&).$&11/2
  317. B&--&&$$)1/03    
  318. &&-&&$$)$/00
  319. &*&*&&&&&$36/=
  320. &&&*$&)&$130/
  321. B**&&&&*&&.1600
  322. **-&-.*&&$&6000
  323. -*&&&&&-&&&&167/
  324. **-&-.&&&$&1000
  325. -*&&&&&-&&&&167/
  326. &&&&&.--&&&1777
  327. &&&&&&&-**&&&607
  328. &&&&&&&&-*&&&2607(
  329. -&-&&&&&&-*&-&106/
  330. -&&&-&-&&-*&&&-066
  331. &---&&*&)&)&--&)1600
  332. E&-&-&&*&)*)*&-))700$
  333. &&&&&**&&*$&&&&&&066
  334. &&&&&-****-&*&&&&176/
  335. *.&$$$*-&-*$.&&&&&2663
  336. '.*$$((
  337. &&&&&-***&-$*&&&&176/
  338. *.&$$$*-&-*$.&&&&&2663
  339. *)&&$$&-*-*&.&&&&&$667
  340. 5&$&$$$&&&**)&&&&.$<0000
  341. .$)((
  342. 5$$&)$.&-.*))&&&).&1030
  343. *&$&)-&&-)---&&..$$*2366
  344. *&@&&&&&-&.-&&&..$
  345. &&3/67
  346. &-&)&$*-)&)&)&&)$$$$*526A6
  347. $&&-&&&.-&-&..$$&&2/67
  348. &-&)&$*-)&)&)&&)$$$$*526A6
  349. -&$&&&-&&.&)&&&$$$$**2/77F
  350. *&&&&$$$.&$)$$$&)$
  351. *<I0AF
  352. 5&&&&$$$$.$.)$$$&)
  353. &*<10AF*
  354. B<*-&.$$$:$
  355. -*<36A
  356. **-&..$$@$
  357. $&<2666
  358. .<-&&.&&$$
  359. &<2367
  360. *<-&-&&$$
  361. :$$$:$-<=36(
  362. --**.-&&&$&$
  363. &2/07
  364. &-&*-&&&&&$$@
  365. $-/=70
  366. $-&&&&&&&&.&$$
  367. )22/3
  368. &-&*-&-&&&$&
  369. $-2=00
  370. $-&&&&&&&&.&$$
  371. )22/3
  372. --&-&&&&&$&.$
  373. $1223
  374. &-&&--&&&&&$:$$$
  375. *-*&-&&-&&&$
  376. $//2/
  377. ---*-&)---$$$$$
  378. $3//$
  379. .-*--&)&--&$$
  380. $$$10//
  381. &***&&.*&&$$)$$$100/
  382. .-*-*&&&--&$$:$$
  383. &***&&.*&&$$)$$$100/
  384. ***&-..-&$$$$$.133/
  385. .*--&&-).&
  386. $$$133/
  387. M*---&&-)$&$$$$10//
  388. *&*--&&.$:$$
  389.     M***---&.&
  390. $$J1//2
  391. .&&<*&$$$$$$133/
  392.     &&&<-&$$$$$$/33
  393. &&-*&$$
  394. $1//3N
  395. $&)*-)$$
  396. &//33!
  397. $$&)&.$$
  398. $0/=/
  399. $&)--)$$
  400. :&1//3
  401. $$&)&.$$
  402. $0/=/
  403. $$)&&$.@
  404. &&&&&$.&100/
  405. E-&&-&$.$300/    
  406. &&*.$)&000'    
  407. &&&-$$&2303
  408. &&&)$&2000
  409. &&&-.$)2303$    
  410. &&&)$&2000
  411. &&&$.2030
  412. .$&)2/03
  413. $$&&2/03
  414. :.&//0
  415. &1//0
  416. $-/2/
  417. $$///
  418. ;55K*
  419. $E2//
  420. )9*?5
  421. ')$($
  422. ($($$'
  423. (*.$$
  424. ($$$($
  425. Repeating Media
  426. Not only does a notify handler allow the user to continue to interact with your application while a media file is playing, it also can be used to play a media file continuously.
  427. You can loop a media clip using a notify handler.  The notify handler will tell the media clip to play again.
  428. Repeating Media
  429. repeating media
  430. Music
  431. buttonClick
  432. successful
  433. Music
  434. mmNotify
  435. Music
  436. leavePage
  437. buttonClick
  438.     mmOpen clip "Music"
  439.     mmPlay 
  440.  notify 
  441. mmNotify clipName, commandName, result
  442. c"successful"
  443. notifyBefore 
  444.     mmClose 
  445. &Play and repeat a wave clip
  446. buttonClick
  447. buttonClick
  448. &Go to next page
  449. leavePage
  450. YM_BeenHere
  451. wave audio
  452. sysMediaSupported
  453. Wave Audio driver not found!
  454. enterBook
  455. "wave audio" 
  456. sysMediaSupported
  457. "Wave Audio driver 
  458. xfound!"
  459. :HDMEDIAPATH
  460. System
  461. info_LastSavedBy
  462. <BookPath>
  463. info_LastSaved
  464. Erik Reitan
  465. Arial
  466. Erik Reitan
  467. Arial
  468. Arial
  469. Erik Reitan
  470. Erik Reitan
  471. :CDMEDIAPATH
  472. Arial
  473. waveAudio
  474. Wave Audio driver not found!
  475. enterBook
  476. "waveAudio" 
  477. sysSupportedMedia
  478. "Wave 
  479. % driver 
  480. xfound!"
  481. 7/25/95 8:57:45 PM
  482. 7/25/95 9:02:56 PM
  483.