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

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