home *** CD-ROM | disk | FTP | other *** search
/ Computer Inter@ctive 17 / Computer Interactive cdrom 17 - gen 99.iso / ZDNETIT / CONTENT / IMSWBPRO.ZIP / _setup.1 / scramtut.js < prev    next >
Encoding:
Text File  |  1998-11-01  |  6.9 KB  |  415 lines

  1. //<!-- 
  2. //***Virtual Mechanics IMS JavaScript. Project Title: scramtut
  3. mW = window.screen.width;
  4. mH = window.screen.height;
  5. //window.style.display = "none"; 
  6. mS = 1.0; 
  7. //mS = 0.64; 
  8. //if(mW > 0) mS = mW / 800;
  9.  
  10. totAtr = 5;
  11.  
  12. totEvt = 5;
  13. AEvent[1]=0;
  14. ATime[1]=0;
  15. AValue[1]=0;
  16. DEvent[1]=0;
  17. DTime[1]=0;
  18. DValue[1]=0;
  19. WAEvent[1]=30;
  20. WDEvent[1]=-1073741794;
  21. WASOp[1]=0;
  22. WAGOp[1]=0;
  23. OpForm[1]=0;
  24. WAForm[1]=0;
  25. WACatt[1]=0;
  26. WACgeo[1]=0;
  27. WACact[1]=0;
  28. WACsnd[1]=77;
  29. WACevt[1]=0;
  30. WACobj[1]=0;
  31. WALink[1]=" ";
  32. AEvent[2]=64;
  33. ATime[2]=0;
  34. AValue[2]=0;
  35. AKey[2]="m";
  36. IKey[2]=109;
  37. DEvent[2]=0;
  38. DTime[2]=0;
  39. DValue[2]=0;
  40. WAEvent[2]=-1068367860;
  41. WDEvent[2]=12;
  42. WASOp[2]=0;
  43. WAGOp[2]=0;
  44. OpForm[2]=0;
  45. WAForm[2]=0;
  46. WACatt[2]=0;
  47. WACgeo[2]=0;
  48. WACact[2]=4;
  49. WACsnd[2]=77;
  50. WACevt[2]=3;
  51. WACobj[2]=0;
  52. WALink[2]=" ";
  53. AEvent[3]=32768;
  54. ATime[3]=0;
  55. AValue[3]=0;
  56. DEvent[3]=0;
  57. DTime[3]=0;
  58. DValue[3]=0;
  59. WAEvent[3]=-1068367842;
  60. WDEvent[3]=-1073741812;
  61. WASOp[3]=0;
  62. WAGOp[3]=0;
  63. OpForm[3]=0;
  64. WAForm[3]=0;
  65. WACatt[3]=0;
  66. WACgeo[3]=0;
  67. WACact[3]=3;
  68. WACsnd[3]=77;
  69. WACevt[3]=2;
  70. WACobj[3]=0;
  71. WALink[3]=" ";
  72. AEvent[4]=128;
  73. ATime[4]=0;
  74. AValue[4]=0;
  75. AEnter[4]=3;
  76. DEvent[4]=1;
  77. DTime[4]=35;
  78. DValue[4]=0;
  79. WAEvent[4]=36;
  80. WDEvent[4]=1073741964;
  81. WAAObj[4]=7;
  82. WASOp[4]=0;
  83. WAGOp[4]=0;
  84. OpForm[4]=0;
  85. WAForm[4]=0;
  86. WACatt[4]=0;
  87. WACgeo[4]=0;
  88. WACact[4]=0;
  89. WACsnd[4]=77;
  90. WACevt[4]=0;
  91. WACobj[4]=0;
  92. WALink[4]=" ";
  93. WDDObj[4]=7;
  94. AEvent[5]=0;
  95. ATime[5]=0;
  96. AValue[5]=0;
  97. DEvent[5]=0;
  98. DTime[5]=0;
  99. DValue[5]=0;
  100. WAEvent[5]=30;
  101. WDEvent[5]=-1073741820;
  102. WASOp[5]=0;
  103. WAGOp[5]=0;
  104. OpForm[5]=0;
  105. WAForm[5]=0;
  106. WACatt[5]=0;
  107. WACgeo[5]=0;
  108. WACact[5]=0;
  109. WACsnd[5]=77;
  110. WACevt[5]=0;
  111. WACobj[5]=0;
  112. WALink[5]=" ";
  113.  
  114. totPath = 8;
  115. Gspt[1]=new Image();
  116. Gspt[1].src="../clipart/horiyell.gif";
  117. Gtyp[1] = 1;
  118. Glen[1] = mS*1168;
  119. Gszx[1]=mS*283;
  120. Gszy[1]=mS*9;
  121. Gorx[1]=mS*0;
  122. Gory[1]=mS*0;
  123. Gpxl[1] = new Array(); 
  124. Gpyl[1] = new Array(); 
  125. Gnpt[1] = 2;
  126. Gpxl[1][0]=mS*-283;
  127. Gpyl[1][0]=mS*-9;
  128. Gpxl[1][1]=mS*283;
  129. Gpyl[1][1]=mS*9;
  130. Gspt[2]=new Image();
  131. Gspt[2].src="../clipart/f14.gif";
  132. Gtyp[2] = 1;
  133. Glen[2] = mS*424;
  134. Gszx[2]=mS*80;
  135. Gszy[2]=mS*26;
  136. Gorx[2]=mS*0;
  137. Gory[2]=mS*0;
  138. Gpxl[2] = new Array(); 
  139. Gpyl[2] = new Array(); 
  140. Gnpt[2] = 2;
  141. Gpxl[2][0]=mS*-80;
  142. Gpyl[2][0]=mS*-26;
  143. Gpxl[2][1]=mS*80;
  144. Gpyl[2][1]=mS*26;
  145. Gspt[3]=new Image();
  146. Gspt[3].src="../clipart/missileh.gif";
  147. Gtyp[3] = 1;
  148. Glen[3] = mS*196;
  149. Gszx[3]=mS*40;
  150. Gszy[3]=mS*9;
  151. Gorx[3]=mS*0;
  152. Gory[3]=mS*0;
  153. Gpxl[3] = new Array(); 
  154. Gpyl[3] = new Array(); 
  155. Gnpt[3] = 2;
  156. Gpxl[3][0]=mS*-40;
  157. Gpyl[3][0]=mS*-9;
  158. Gpxl[3][1]=mS*40;
  159. Gpyl[3][1]=mS*9;
  160. Gtyp[4] = 1;
  161. Glen[4] = mS*3952;
  162. Gszx[4]=mS*219;
  163. Gszy[4]=mS*769;
  164. Gorx[4]=mS*0;
  165. Gory[4]=mS*0;
  166. Gpxl[4] = new Array(); 
  167. Gpyl[4] = new Array(); 
  168. Gnpt[4] = 2;
  169. Gpxl[4][0]=mS*-219;
  170. Gpyl[4][0]=mS*-769;
  171. Gpxl[4][1]=mS*219;
  172. Gpyl[4][1]=mS*769;
  173. Gspt[5]=new Image();
  174. Gspt[5].src="../clipart/ufo.gif";
  175. Gtyp[5] = 1;
  176. Glen[5] = mS*280;
  177. Gszx[5]=mS*40;
  178. Gszy[5]=mS*30;
  179. Gorx[5]=mS*0;
  180. Gory[5]=mS*0;
  181. Gpxl[5] = new Array(); 
  182. Gpyl[5] = new Array(); 
  183. Gnpt[5] = 2;
  184. Gpxl[5][0]=mS*-40;
  185. Gpyl[5][0]=mS*-30;
  186. Gpxl[5][1]=mS*40;
  187. Gpyl[5][1]=mS*30;
  188. Gtyp[6] = 2;
  189. Glen[6] = mS*360; 
  190. Gszx[6]=mS*50;
  191. Gszy[6]=mS*50;
  192. Gorx[6]=mS*0;
  193. Gory[6]=mS*0;
  194. Gpxl[6] = new Array(); 
  195. Gpyl[6] = new Array(); 
  196. Gnpt[6] = 2;
  197. Gpxl[6][0]=mS*-50; 
  198. Gpyl[6][0]=mS*-50; 
  199. Gpxl[6][1]=mS*100; 
  200. Gpyl[6][1]=mS*100; 
  201. Gspt[7]=new Image();
  202. Gspt[7].src="../clipart/firea.gif";
  203. Gtyp[7] = 1;
  204. Glen[7] = mS*340;
  205. Gszx[7]=mS*35;
  206. Gszy[7]=mS*50;
  207. Gorx[7]=mS*0;
  208. Gory[7]=mS*0;
  209. Gpxl[7] = new Array(); 
  210. Gpyl[7] = new Array(); 
  211. Gnpt[7] = 2;
  212. Gpxl[7][0]=mS*-35;
  213. Gpyl[7][0]=mS*-50;
  214. Gpxl[7][1]=mS*35;
  215. Gpyl[7][1]=mS*50;
  216. Gtyp[8] = 1;
  217. Glen[8] = mS*692;
  218. Gszx[8]=mS*161;
  219. Gszy[8]=mS*12;
  220. Gorx[8]=mS*0;
  221. Gory[8]=mS*0;
  222. Gpxl[8] = new Array(); 
  223. Gpyl[8] = new Array(); 
  224. Gnpt[8] = 2;
  225. Gpxl[8][0]=mS*-161;
  226. Gpyl[8][0]=mS*-12;
  227. Gpxl[8][1]=mS*161;
  228. Gpyl[8][1]=mS*12;
  229.  
  230. totAct = 6;
  231. MType[1]=16777216;
  232. MPath[1]=0;
  233. MRate[1]=10;
  234. MDelay[1]=0;
  235. MRepeat[1]=1;
  236. MCount[1]=1;
  237. MGWst[1]=0;
  238. MGNth[1]=0;
  239. MGEst[1]=0;
  240. MGSth[1]=0;
  241. MType[2]=16781312;
  242. MPath[2]=0;
  243. MRate[2]=10;
  244. MDelay[2]=0;
  245. MRepeat[2]=-1;
  246. MCount[2]=-1;
  247. MGWst[2]=0;
  248. MGNth[2]=0;
  249. MGEst[2]=0;
  250. MGSth[2]=0;
  251. MType[3]=16777730;
  252. MPath[3]=2;
  253. MRate[3]=10;
  254. MDelay[3]=0;
  255. MRepeat[3]=-1;
  256. MCount[3]=-1;
  257. MGWst[3]=0;
  258. MGNth[3]=0;
  259. MGEst[3]=0;
  260. MGSth[3]=0;
  261. MType[4]=16777224;
  262. MPath[4]=0;
  263. MRate[4]=20;
  264. MDelay[4]=0;
  265. MRepeat[4]=1;
  266. MCount[4]=1;
  267. MGWst[4]=0;
  268. MGNth[4]=0;
  269. MGEst[4]=0;
  270. MGSth[4]=0;
  271. MType[5]=16777473;
  272. MPath[5]=6;
  273. MRate[5]=10;
  274. MDelay[5]=0;
  275. MRepeat[5]=-1;
  276. MCount[5]=-1;
  277. MGWst[5]=0;
  278. MGNth[5]=0;
  279. MGEst[5]=0;
  280. MGSth[5]=0;
  281. MType[6]=16777730;
  282. MPath[6]=5;
  283. MRate[6]=10;
  284. MDelay[6]=0;
  285. MRepeat[6]=-1;
  286. MCount[6]=-1;
  287. MGWst[6]=0;
  288. MGNth[6]=0;
  289. MGEst[6]=0;
  290. MGSth[6]=0;
  291.  
  292. totObj = 8;
  293. obRef[1] = 1;
  294. ob[1] = new Array();
  295. ob[1].geo = 1;
  296. ob[1].att = 1; 
  297. ob[1].evt = 0;
  298. ob[1].act = 0;
  299. ob[1].grp = 0;
  300. ob[1].cpox =321.000000;
  301. ob[1].cpoy =203.000000;
  302. ob[1].cscx =1.000000;
  303. ob[1].cscy =1.000000;
  304. ob[1].crot =0.000000;
  305. ob[1].val  =0;
  306. ob[1].flg  =0;
  307.  
  308. obRef[2] = 2;
  309. ob[2] = new Array();
  310. ob[2].geo = 2;
  311. ob[2].att = 2; 
  312. ob[2].evt = 0;
  313. ob[2].act = 2;
  314. ob[2].grp = 0;
  315. ob[2].cpox =126.000000;
  316. ob[2].cpoy =152.000000;
  317. ob[2].cscx =1.000000;
  318. ob[2].cscy =1.000000;
  319. ob[2].crot =0.000000;
  320. ob[2].val  =0;
  321. ob[2].flg  =0;
  322.  
  323. obRef[3] = 3;
  324. ob[3] = new Array();
  325. ob[3].geo = 3;
  326. ob[3].att = 3; 
  327. ob[3].evt = 2; 
  328. ob[3].act = 3;
  329. ob[3].grp = 0;
  330. ob[3].cpox =99.000000;
  331. ob[3].cpoy =105.000000;
  332. ob[3].cscx =1.000000;
  333. ob[3].cscy =1.000000;
  334. ob[3].crot =0.000000;
  335. ob[3].val  =0;
  336. ob[3].flg  =0;
  337.  
  338. obRef[4] = 4;
  339. ob[4] = new Array();
  340. ob[4].geo = 4;
  341. ob[4].att = 0;
  342. ob[4].evt = 0;
  343. ob[4].act = 0;
  344. ob[4].grp = 0;
  345. ob[4].cpox =322.000000;
  346. ob[4].cpoy =815.000000;
  347. ob[4].cscx =1.251107;
  348. ob[4].cscy =0.759256;
  349. ob[4].crot =0.000000;
  350. ob[4].val  =0;
  351. ob[4].flg  =0;
  352.  
  353. obRef[5] = 5;
  354. ob[5] = new Array();
  355. ob[5].geo = 5;
  356. ob[5].att = 4; 
  357. ob[5].evt = 4; 
  358. ob[5].act = 5;
  359. ob[5].grp = 0;
  360. ob[5].cpox =465.000000;
  361. ob[5].cpoy =125.000000;
  362. ob[5].cscx =1.000000;
  363. ob[5].cscy =1.000000;
  364. ob[5].crot =0.000000;
  365. ob[5].val  =0;
  366. ob[5].flg  =0;
  367.  
  368. obRef[6] = 6;
  369. ob[6] = new Array();
  370. ob[6].geo = 6;
  371. ob[6].att = 0;
  372. ob[6].evt = 0;
  373. ob[6].act = 0;
  374. ob[6].grp = 0;
  375. ob[6].cpox =558.000000;
  376. ob[6].cpoy =114.000000;
  377. ob[6].cscx =1.000000;
  378. ob[6].cscy =1.323529;
  379. ob[6].crot =0.000000;
  380. ob[6].val  =0;
  381. ob[6].flg  =0;
  382.  
  383. obRef[7] = 7;
  384. ob[7] = new Array();
  385. ob[7].geo = 7;
  386. ob[7].att = 5; 
  387. ob[7].evt = 5; 
  388. ob[7].act = 6;
  389. ob[7].grp = 0;
  390. ob[7].cpox =375.000000;
  391. ob[7].cpoy =122.000000;
  392. ob[7].cscx =1.000000;
  393. ob[7].cscy =1.000000;
  394. ob[7].crot =0.000000;
  395. ob[7].val  =0;
  396. ob[7].flg  =0;
  397.  
  398. obRef[8] = 8;
  399. ob[8] = new Array();
  400. ob[8].geo = 8;
  401. ob[8].att = 0;
  402. ob[8].evt = 0;
  403. ob[8].act = 0;
  404. ob[8].grp = 0;
  405. ob[8].cpox =190.000000;
  406. ob[8].cpoy =16.000000;
  407. ob[8].cscx =0.882385;
  408. ob[8].cscy =1.000000;
  409. ob[8].crot =0.000000;
  410. ob[8].val  =0;
  411. ob[8].flg  =0;
  412.  
  413.  
  414. //--> 
  415.