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

  1. 9507252120236183171205460938
  2. ASYM_TpID
  3. ASYM_BeenHere
  4. Using notify
  5. 9510261857513403505013568271
  6. ASYM_TpID
  7. ASYM_BeenHere
  8. <BookPath>
  9. :HDMEDIAPATH
  10. System
  11. info_LastSavedBy
  12. 10/26/95 7:20:48 PM
  13. info_LastSaved
  14. Erik Reitan
  15. Arial
  16. Erik Reitan
  17. Arial
  18. Arial
  19. 10/26/95 7:26:31 PM
  20. 10/26/95 7:26:40 PM
  21. Arial
  22. Erik Reitan
  23. Erik Reitan
  24. waveAudio
  25. Wave Audio driver not found!
  26. enterBook
  27. "waveAudio" 
  28. sysSupportedMedia
  29. "Wave 
  30. % driver 
  31. xfound!"
  32. 3DVideo
  33. Page "Using notify"
  34. Page id 0 of Book "D:\TEMP11\CHAP24\24MTB03.TBK"
  35. Page id 0 of Book "D:\TEMP11\CHAP24\24MTB03.TBK"
  36. Page id 0 of Book "D:\TEMP11\CHAP24\24MTB03.TBK"
  37. Page id 2
  38. Page id 0 of Book "D:\TEMP11\CHAP24\24MTB03.TBK"
  39. Page id 0 of Book "D:\TEMP11\CHAP24\24MTB03.TBK"
  40. Page id 0 of Book "D:\TEMP11\CHAP24\24MTB03.TBK"
  41. Page id 0 of Book "D:\TEMP11\CHAP24\24MTB03.TBK"
  42. Page id 0 of Book "D:\TEMP11\CHAP24\24MTB03.TBK"
  43. Page id 0 of Book "D:\TEMP11\CHAP24\24MTB03.TBK"
  44. Page id 0 of Book "D:\TEMP11\CHAP24\24MTB03.TBK"
  45. Page id 0 of Book "D:\TEMP11\CHAP24\24MTB03.TBK"
  46. Page id 3
  47. 9507251716271924423826373122
  48. ASYM_TpID
  49. Backdrop
  50. _ASYMA_LockMove
  51. Multimedia ToolBook
  52. Creating Custom Menussions
  53. Playing a wave file and allowing other actionss
  54. enterpage
  55. ASYM_Reset
  56. Using notify
  57. The script in the button to the right can be used to automatically name any newly created object.  Place this script into the script of your book or include it within a system book that you use for authoring. To activate this script, start by creating an object. When you create an object and this script is available, it will add a menu named Auto Name to your Object menu in author mode. When you select the Auto Name menu item, the menu item becomes checked. While this menu item is checked, you will be prompted to name each newly created object, such as buttons, rectangles, stages, and so on. When you uncheck the Auto Name menu item, you no longer will be prompted for a name.
  58. example
  59. autoMenu
  60. Auto Name
  61. autoName
  62. Name of new
  63. Object
  64. Auto Name
  65. Object
  66. autoName
  67. 4autoMenu
  68. "Auto Name" alias "autoName" \
  69. c"Object" 
  70. menuItemChecked("
  71. 1) = 
  72. q" && 
  73. l) = 
  74. Add auto name menu
  75. Controlling Authoring Capabilities with MenussItem Checkmarkss
  76. CDBSE&File
  77. &Open...    Ctrl+O
  78. &Save    Ctrl+S
  79. Save &As...
  80. saveas
  81. &Import...
  82. import
  83. &Export...
  84. export
  85. Print Set&up...
  86. printsetup
  87. &Print Pages...    Ctrl+P
  88. printpages
  89. Prin&t Report...
  90. printreport
  91. Send &Mail...
  92. sendmail
  93. &Run...
  94. E&xit    Alt+F4
  95. &Edit
  96. &Undo    Ctrl+Z
  97. Cu&t    Ctrl+X
  98. &Copy    Ctrl+C
  99. &Paste    Ctrl+V
  100. paste
  101. C&lear    Del
  102. clear
  103. Select &All    Shift+F9
  104. selectall
  105. Select Pa&ge    Shift+F12
  106. selectpage
  107. &Size to Page    F11
  108. sizetopage
  109. F&ind...    F5
  110. Re&place...
  111. replace
  112. Aut&hor    F3
  113. author
  114. &Text
  115. &Character...    F6
  116. character
  117. &Paragraph...    F7
  118. paragraph
  119. &Regular    Ctrl+Space
  120. regular
  121. &Bold    Ctrl+B
  122. &Italic    Ctrl+I
  123. italic
  124. &Underline    Ctrl+U
  125. underline
  126. Stri&keout    Ctrl+K
  127. strikeout
  128. Superscrip&t/Subscript
  129. superscriptSubscript
  130. &Normal Script
  131. normalscript
  132. Su&bscript    Ctrl+L
  133. subscript
  134. Su&perscript    Ctrl+Shift+L
  135. superscript
  136. &Show Hotwords    F9
  137. showhotwords
  138. &Page
  139. &Next    Alt+Right
  140. &Previous    Alt+Left
  141. previous
  142. &First    Alt+Up
  143. first
  144. &Last    Alt+Down
  145. &Back    Shift+F2
  146. &History...    Ctrl+F2
  147. history
  148. N&ew Page    Ctrl+N
  149. newpage
  150. &Help
  151. &Contents    F1
  152. contents
  153. Status &Bar    F12
  154. statusbar
  155. CDBSAM&File
  156. &Open...    Ctrl+O
  157. &Save    Ctrl+S
  158. Save &As...
  159. saveas
  160. &Import...
  161. import
  162. &Export...
  163. export
  164. Print Set&up...
  165. printsetup
  166. &Print Pages...    Ctrl+P
  167. printpages
  168. Prin&t Report...
  169. printreport
  170. Send &Mail...
  171. sendmail
  172. &Run...
  173. E&xit    Alt+F4
  174. &Edit
  175. &Undo    Ctrl+Z
  176. Cu&t    Ctrl+X
  177. &Copy    Ctrl+C
  178. &Paste    Ctrl+V
  179. paste
  180. C&lear    Del
  181. clear
  182. Select &All    Shift+F9
  183. selectall
  184. Select Pa&ge    Shift+F12
  185. selectpage
  186. &Size to Page    F11
  187. sizetopage
  188. F&ind...    F5
  189. Re&place...
  190. replace
  191. Aut&hor    F3
  192. author
  193. &Media
  194. Media
  195. Media Test Menu
  196. notifybefore 
  197. "0,0"
  198. "0,0" 
  199. moved
  200.     ssm = sysSuspendMessages
  201. notifyBefore ASYM_Reset
  202. {loc;
  203. buttonClick 
  204. rightButtonClick 
  205. enterpage
  206. moved
  207. ASYM_Reset
  208. buttonDown
  209. buttonUp
  210. buttonClick
  211. buttonDoubleClick
  212. rightButtonDown
  213. rightButtonUp
  214. rightButtonClick
  215. rightButtonClick
  216. rightButtonDoubleClick
  217. new-4
  218. Music
  219. 24mtb01.wav
  220. e\bonanza
  221.  %+ %,  
  222. %%4+%%%%,%,,4,,,,%,%,,% 
  223. %,+ +
  224.  %%%%%%+%44+%%,,,8,,,%,%+
  225. %4+ +
  226.  %%  ++%
  227. %+%%+%%% +%%%%%%%, %
  228.  %%%%% 
  229. + %%+ %  4%+% 
  230.  4 % 
  231. %% %%
  232.  %%%+%+% %%%%4%% % 
  233. % %   %+% %+ ++
  234.     +%
  235. % %%%
  236. ###!#
  237. *;*&)
  238. &9))(
  239. '&*55
  240. ()5*(
  241. )9*)*
  242. '5&('
  243. &)).('
  244. H2)&)
  245. ))($$
  246. $(*$$(
  247. &*?D$
  248. ($95)&)(
  249. '($;'
  250. '()*K25
  251. '(****)
  252. $.**)
  253. $$*&(
  254. $(5('('
  255. $&9)(
  256. ')*;)
  257. $$$))
  258. $$**$
  259. $)*$)
  260. )*5$.)
  261. )*9;*).(
  262. $***)**$'
  263. $$*$$
  264. .)5*$
  265. ).()*))'
  266. )*))$
  267. (5?.(
  268. #!##!
  269. %    
  270. $)))$'
  271.      +%
  272.  %%,%
  273.  +,, 
  274. #""!"
  275. %%%% !
  276.  %%%%
  277. %%%%%
  278. ++ +% 
  279. ((.$(
  280. $$.).$
  281. '($$$
  282. %% %+8
  283. %%  %
  284. +%%%+4%% 
  285. $.$))$($$.)$)).($)).$$)(($)$(
  286. ).$$(
  287. ).$$$((
  288. %  % 
  289.  %    
  290. %! % 
  291.  %%  %%% 
  292.  ,,,%
  293.  4%4 4
  294.        
  295. % %%%
  296. % +   
  297.   + %
  298.  %+%  %%C +%, 
  299. 4%%+%
  300. %%+%%
  301. ++,%,
  302. ,%%%%
  303.     %%4,
  304.  %%%,,
  305. ,%,+ 
  306. %%%+% 
  307.   +%%%,,%,+%%
  308.  %%%%%
  309.  %,,4,%,4%8,8,%,+%  + %%+4%%
  310.     %,,%%%%%,,%, %%%+%, % 
  311.  %+  
  312. 488,%% ,,,% 4%%, %8%
  313. %,,>C,8+,,, %+%,8,, 
  314. % ,>,C>,%+,%
  315. %, ,%%  %%%%
  316. %,,%,CC>%%,% +8%%%++
  317. +%,%4,88%, 
  318.  +% %,%
  319. %%,,%%8,,%
  320. %%>,+488,,
  321. % +% 
  322. ,>,,% +,4,%%%,4
  323. ,,,,,,44%%, ,, %
  324. ,%4,%4 ++
  325. +%%48%%,%%%
  326. %%%%%%,,,8%
  327. %%4%%C%,4,, 
  328. %%%,% 
  329.  %,%4
  330. 84%, 4%%
  331. %8 %,  
  332.  ,8%,
  333. %%%  
  334. 4 %+%
  335.  % %%%%
  336. (').'
  337. ()$$(
  338. B/7/2
  339. .712/
  340. $.0502
  341. ./1//
  342. $.0502
  343. $0203
  344. $$*=0/
  345. $$$5=/7
  346. $&$$10//
  347. $)&$&07/
  348. $.&&&)12/0
  349. $&&&$)0</
  350. &)&.&&&2/0
  351. &)&)&$&1102J
  352. &--&&$$)1/03
  353. &&&).$&11/2
  354. B&--&&$$)1/03    
  355. &&-&&$$)$/00
  356. &*&*&&&&&$36/=
  357. &&&*$&)&$130/
  358. B**&&&&*&&.1600
  359. **-&-.*&&$&6000
  360. -*&&&&&-&&&&167/
  361. **-&-.&&&$&1000
  362. -*&&&&&-&&&&167/
  363. &&&&&.--&&&1777
  364. &&&&&&&-**&&&607
  365. &&&&&&&&-*&&&2607(
  366. -&-&&&&&&-*&-&106/
  367. -&&&-&-&&-*&&&-066
  368. &---&&*&)&)&--&)1600
  369. E&-&-&&*&)*)*&-))700$
  370. &&&&&**&&*$&&&&&&066
  371. &&&&&-****-&*&&&&176/
  372. *.&$$$*-&-*$.&&&&&2663
  373. '.*$$((
  374. &&&&&-***&-$*&&&&176/
  375. *.&$$$*-&-*$.&&&&&2663
  376. *)&&$$&-*-*&.&&&&&$667
  377. 5&$&$$$&&&**)&&&&.$<0000
  378. .$)((
  379. 5$$&)$.&-.*))&&&).&1030
  380. *&$&)-&&-)---&&..$$*2366
  381. *&@&&&&&-&.-&&&..$
  382. &&3/67
  383. &-&)&$*-)&)&)&&)$$$$*526A6
  384. $&&-&&&.-&-&..$$&&2/67
  385. &-&)&$*-)&)&)&&)$$$$*526A6
  386. -&$&&&-&&.&)&&&$$$$**2/77F
  387. *&&&&$$$.&$)$$$&)$
  388. *<I0AF
  389. 5&&&&$$$$.$.)$$$&)
  390. &*<10AF*
  391. B<*-&.$$$:$
  392. -*<36A
  393. **-&..$$@$
  394. $&<2666
  395. .<-&&.&&$$
  396. &<2367
  397. *<-&-&&$$
  398. :$$$:$-<=36(
  399. --**.-&&&$&$
  400. &2/07
  401. &-&*-&&&&&$$@
  402. $-/=70
  403. $-&&&&&&&&.&$$
  404. )22/3
  405. &-&*-&-&&&$&
  406. $-2=00
  407. $-&&&&&&&&.&$$
  408. )22/3
  409. --&-&&&&&$&.$
  410. $1223
  411. &-&&--&&&&&$:$$$
  412. *-*&-&&-&&&$
  413. $//2/
  414. ---*-&)---$$$$$
  415. $3//$
  416. .-*--&)&--&$$
  417. $$$10//
  418. &***&&.*&&$$)$$$100/
  419. .-*-*&&&--&$$:$$
  420. &***&&.*&&$$)$$$100/
  421. ***&-..-&$$$$$.133/
  422. .*--&&-).&
  423. $$$133/
  424. M*---&&-)$&$$$$10//
  425. *&*--&&.$:$$
  426.     M***---&.&
  427. $$J1//2
  428. .&&<*&$$$$$$133/
  429.     &&&<-&$$$$$$/33
  430. &&-*&$$
  431. $1//3N
  432. $&)*-)$$
  433. &//33!
  434. $$&)&.$$
  435. $0/=/
  436. $&)--)$$
  437. :&1//3
  438. $$&)&.$$
  439. $0/=/
  440. $$)&&$.@
  441. &&&&&$.&100/
  442. E-&&-&$.$300/    
  443. &&*.$)&000'    
  444. &&&-$$&2303
  445. &&&)$&2000
  446. &&&-.$)2303$    
  447. &&&)$&2000
  448. &&&$.2030
  449. .$&)2/03
  450. $$&&2/03
  451. :.&//0
  452. &1//0
  453. $-/2/
  454. $$///
  455. ;55K*
  456. $E2//
  457. )9*?5
  458. ')$($
  459. ($($$'
  460. (*.$$
  461. ($$$($
  462. Using notify
  463. The script in the field to the right can be used to automatically name any newly created object.  Place this script into the script of your book or include it within a system book that you use for authoring. To activate this script, start by creating an object. When you create an object and this script is available, it will add a menu named Auto Name to your Object menu in author mode. When you select the Auto Name menu item, the menu item becomes checked. While this menu item is checked, you will be prompted to name each newly created object, such as buttons, rectangles, stages, and so on. When you uncheck the Auto Name menu item, you no longer will be prompted for a name..
  464. to handle make
  465.      forward
  466.      system autoMenu
  467.      if autoMenu <> true
  468.           add menuItem "Auto Name" alias "autoName" \
  469.           to menu "Object" position 1 at author
  470.           autoMenu = true
  471.      end
  472.      if menuItemChecked("Auto Name" in menu "Object") = true
  473.           ask "Name of new" && object of selection
  474.           name of selection = it
  475.      end 
  476. to handle autoName
  477.      if menuItemChecked("Auto Name" in menu "Object") = true
  478.           uncheck menuItem "Auto Name" in menu "Object"
  479.      else
  480.           check menuItem "Auto Name" in menu "Object"
  481.      end
  482. ASYM_BeenHere
  483. l) = 
  484. d auto name menu
  485. Controlling Authoring Capabilities with MenussItem Checkmarkss
  486. <BookPath>
  487. :HDMEDIAPATH
  488. System
  489. info_LastSavedBy
  490. 10/26/95 7:20:48 PM
  491. info_LastSaved
  492. Erik Reitan
  493. Arial
  494. Erik Reitan
  495. Arial
  496. Arial
  497. 10/26/95 7:26:31 PM
  498. Erik Reitan
  499. Arial
  500. Erik Reitan
  501. 10/26/95 7:32:42 PM
  502. 10/26/95 7:33:20 PM
  503. waveAudio
  504. Wave Audio driver not found!
  505. enterBook
  506. "waveAudio" 
  507. sysSupportedMedia
  508. "Wave 
  509. % driver 
  510. xfound!"
  511. Arial
  512. waveAudio
  513. Wave Audio driver not found!
  514. enterBook
  515. autoMenu
  516. Auto Name
  517. autoName
  518. Name of new
  519. Object
  520. Auto Name
  521. Object
  522. autoName
  523. "waveAudio" 
  524. sysSupportedMedia
  525. "Wave 
  526. % driver 
  527. xfound!"
  528. 4autoMenu
  529. "Auto Name" alias "autoName" \
  530. c"Object" 
  531. menuItemChecked("
  532. 1) = 
  533. q" && 
  534. l) = 
  535.