home *** CD-ROM | disk | FTP | other *** search
/ Chip 1997 - Expo 2000 / Image.iso / t-online / show / xtras / animwiz.dir / 00001.ls next >
Encoding:
Text File  |  1996-07-09  |  4.6 KB  |  118 lines

  1. on startMovie
  2.   global goFunction, goBannersText, goZoomsText, goCreditsText, goBulletsText, goMarkFrame, goAnimateTitle, goSeconds, goFPS, goBaseline, goSizeMin, goSizeMax, goDelayEnter, goDelayHold, goCycles, goVisualStyles, goBanners, goBullets, goZooms, goCredits, goMotionStyles, goScoreMgr, goCastMgr, goMovieName, goPlatform
  3.   cursor(4)
  4.   set memberScreenArtStart to the number of member "OnScreenArtStart" + 1
  5.   set memberScreenArtEnd to the number of member "OnScreenArtEnd" - 1
  6.   tell the stage
  7.     set thePalette to the framePalette
  8.   end tell
  9.   if thePalette = -1 then
  10.     set goPlatform to "Mac"
  11.     go("BannersMac")
  12.   else
  13.     set goPlatform to "Pc"
  14.     go("BannersPc")
  15.   end if
  16.   InitTheGlobals()
  17.   set goScoreMgr to 0
  18.   set goScoreMgr to birth(script "ScoreMgr")
  19.   set goCastMgr to 0
  20.   set goCastMgr to birth(script "CastMgr")
  21.   set goBannersText to 0
  22.   set goBannersText to birth(script "TextField", "BannersText", "This is banners text")
  23.   set goZoomsText to 0
  24.   set goZoomsText to birth(script "TextField", "ZoomsText", "This is zoom text")
  25.   set goCreditsText to 0
  26.   set goCreditsText to birth(script "TextField", "CreditsText", "This is credits:Text" & RETURN & "And:So is this")
  27.   set goBulletsText to 0
  28.   set goBulletsText to birth(script "TextField", "BulletsText", "This is Bullets Title" & RETURN & "This is Bullets Text" & RETURN & "This is Bullets Text Longer")
  29.   set goMarkFrame to 0
  30.   set goMarkFrame to birth(script "CheckBox")
  31.   set goAnimateTitle to 0
  32.   set goAnimateTitle to birth(script "CheckBox")
  33.   set goSeconds to 0
  34.   set goSeconds to birth(script "IncrDecrValue", #int, 1, 999, 1, 5, "Seconds")
  35.   set goFPS to 0
  36.   set goFPS to birth(script "IncrDecrValue", #int, 1, 120, 1, 7, "FPS")
  37.   set theStageHeight to mGetStageHeight(goScoreMgr)
  38.   set goBaseline to 0
  39.   set goBaseline to birth(script "IncrDecrValue", #int, 1, theStageHeight, 1, 9, "Baseline")
  40.   set goSizeMin to 0
  41.   set goSizeMin to birth(script "IncrDecrValue", #int, 1, 500, 1, 22, "SizeMin")
  42.   set goSizeMax to 0
  43.   set goSizeMax to birth(script "IncrDecrValue", #int, 1, 500, 1, 24, "SizeMax")
  44.   set goDelayEnter to 0
  45.   set goDelayEnter to birth(script "IncrDecrValue", #int, 0, 60, 1, 11, "DelayEnter")
  46.   set goDelayHold to 0
  47.   set goDelayHold to birth(script "IncrDecrValue", #int, 0, 60, 1, 13, "DelayHold")
  48.   set goCycles to 0
  49.   set goCycles to birth(script "IncrDecrValue", #int, 1, 999, 1, 15, "Cycles")
  50.   set goVisualStyles to 0
  51.   set goVisualStyles to birth(script "IncrDecrCast")
  52.   set goBanners to 0
  53.   set goBanners to birth(script "Banners")
  54.   set goZooms to 0
  55.   set goZooms to birth(script "Zooms")
  56.   set goCredits to 0
  57.   set goCredits to birth(script "Credits")
  58.   set goBullets to 0
  59.   set goBullets to birth(script "Bullets")
  60.   set goFunction to 0
  61.   set goFunction to birth(script "Function")
  62.   set goMovieName to the movieName
  63.   cursor(-1)
  64. end
  65.  
  66. on stopMovie
  67.   nothing()
  68. end
  69.  
  70. on closeWindow
  71.   global goFunction, goBannersText, goZoomsText, goCreditsText, goBulletsText, goMarkFrame, goAnimateTitle, goSeconds, goFPS, goBaseline, goSizeMin, goSizeMax, goDelayEnter, goDelayHold, goCycles, goVisualStyles, goBanners, goBullets, goZooms, goCredits, goMotionStyles, goScoreMgr, goCastMgr, goMovieName, gkTransparentInk, void, goPlatform, gDevelopmentFlag, gCastNumCheckBoxOn, gCastNumCheckBoxOff, gCastNumTextAsBitmap
  72.   set goFunction to void
  73.   set gkTransparentInk to void
  74.   set goBannersText to void
  75.   set goZoomsText to void
  76.   set goCreditsText to void
  77.   set goBulletsText to void
  78.   set goMarkFrame to void
  79.   set goAnimateTitle to void
  80.   set goSeconds to void
  81.   set goFPS to void
  82.   set goBaseline to void
  83.   set goSizeMin to void
  84.   set goSizeMax to void
  85.   set goDelayEnter to void
  86.   set goDelayHold to void
  87.   set goCycles to void
  88.   set goVisualStyles to void
  89.   set goBanners to void
  90.   set goBullets to void
  91.   set goZooms to void
  92.   set goCredits to void
  93.   set goMotionStyles to void
  94.   set goScoreMgr to void
  95.   set goCastMgr to void
  96.   set goPlatform to void
  97.   set TheName to goMovieName
  98.   set goMovieName to void
  99.   set gDevelopmentFlag to void
  100.   set gCastNumCheckBoxOn to void
  101.   set gCastNumCheckBoxOff to void
  102.   set gCastNumTextAsBitmap to void
  103.   forget(window TheName)
  104. end
  105.  
  106. on InitTheGlobals
  107.   global gDevelopmentFlag, gCastNumCheckBoxOn, gCastNumCheckBoxOff, gCastNumTextAsBitmap, gkTransparentInk, goPlatform
  108.   if the windowList = [] then
  109.     set gDevelopmentFlag to 1
  110.   else
  111.     set gDevelopmentFlag to 0
  112.   end if
  113.   set gCastNumCheckBoxOn to the number of member ("CheckBoxOn" & goPlatform)
  114.   set gCastNumCheckBoxOff to the number of member ("CheckBoxOff" & goPlatform)
  115.   set gCastNumTextAsBitmap to the number of member "TextAsBitmap"
  116.   set gkTransparentInk to 36
  117. end
  118.