home *** CD-ROM | disk | FTP | other *** search
/ Grandes Inventos / INVENTOS.bin / pc / media / shared.dxr / 02001.ls next >
Encoding:
Text File  |  1996-01-01  |  18.9 KB  |  777 lines

  1. factory TAnalyzer
  2. method mnew
  3.   instance MyPreload, ramNeeded, MyPreload, MyPreload, unLoadCast, MyPreload, n, MyPreload, MyUnload, MyPreload, MyPreload, fStatus, f3DConsole, fMovieConsole, fKozmoConsole, fHistConsole, fObject, fSubsys, fMovie, fMovieStatus, fEmptyBitmap, f3DSprite, fInfo, fLastButtonSprite, f3DDown, fInfoDown, fHelpDown, fFaxDown, fDudaDown, fDataDown, fExpDown, fPhysicDown, fHistDown, fAnimDown, fLastState, fLastMovie, f3DNumLines, f3DNumCols, fAlfa, fTetha
  4.   global gIdiom
  5.   set fLastState to ["Init", "Init", "Init", "Init", "Init", "Init", "Init"]
  6.   set fLastMovie to ["INDEX", "INDEX", "INDEX", "INDEX", "INDEX", "INDEX"]
  7.   set fEmptyBitmap to the number of cast "EmptyBitmap"
  8.   set f3DNumLines to 7
  9.   set f3DNumCols to 12
  10.   set fAlfa to 4
  11.   set fTetha to 1
  12.   set fStatus to "Browse"
  13.   set f3DConsole to 0
  14.   set fMovieConsole to 0
  15.   set fKozmoConsole to 0
  16.   set fHistConsole to 0
  17.   set fObject to EMPTY
  18.   set fSubsys to EMPTY
  19.   set fMovie to EMPTY
  20.   set fMovieStatus to 0
  21.   set fLastButtonSprite to 0
  22.   set f3DDown to the number of cast "3DDown"
  23.   set fInfoDown to the number of cast "InfoDown"
  24.   set fHelpDown to the number of cast ("HelpDown" & gIdiom)
  25.   set fDudaDown to the number of cast "DudaDown"
  26.   set fDataDown to the number of cast "DataDown"
  27.   set fExpDown to the number of cast "ExpDown"
  28.   set fPhysicDown to the number of cast "PhysicDown"
  29.   set fHistDown to the number of cast "HistDown"
  30.   set fAnimDown to the number of cast "AnimDown"
  31.  
  32. method mDetatchObjects
  33.   set fObject to EMPTY
  34.   set fSubsys to EMPTY
  35.  
  36. method mShow
  37.   put "Analyzer status: " & fStatus
  38.   if f3DConsole then
  39.     put "3D console is open."
  40.   else
  41.     put "3D console is closed."
  42.   end if
  43.   if fMovieConsole then
  44.     put "Movie console is open."
  45.   else
  46.     put "Movie console is closed."
  47.   end if
  48.   if fKozmoConsole then
  49.     put "Kozmo console is open."
  50.   else
  51.     put "Kozmo console is closed."
  52.   end if
  53.   if fHistConsole then
  54.     put "History console is open."
  55.   else
  56.     put "History console is closed."
  57.   end if
  58.   if objectp(fObject) then
  59.     put "Object:"
  60.     fObject(mShow)
  61.   end if
  62.   if objectp(fSubsys) then
  63.     fSubsys(mShow)
  64.   end if
  65.  
  66. method mSetObject ob
  67.   set fObject to ob
  68.  
  69. method mSetSubsys s
  70.   set fSubsys to s
  71.  
  72. method mGetObjectName
  73.   if fObject <> EMPTY then
  74.     return fObject(mGetName)
  75.   else
  76.     return EMPTY
  77.   end if
  78.  
  79. method mGetSubsysName
  80.   if fSubsys <> EMPTY then
  81.     return fSubsys(mGetName)
  82.   else
  83.     return EMPTY
  84.   end if
  85.  
  86. method mGetObject
  87.   return fObject
  88.  
  89. method mGetSubsys
  90.   return fSubsys
  91.  
  92. method mLogBrowse
  93.   global gMovieSprite
  94.   set fStatus to "Browse"
  95.   me(mShowMovieConsole)
  96.   SetCast(gMovieSprite, "VideoConsoleStandby")
  97.   if fSubsys <> EMPTY then
  98.     go(fSubsys(mGetName) & "Browse")
  99.   else
  100.     go(fObject(mGetName) & "Browse")
  101.   end if
  102.  
  103. method mResetMainContent
  104.   global gObjectSprite, gInfoSprite
  105.   puppetSprite(gInfoSprite, 0)
  106.   SetCast(gVideoSprite, fEmptyBitmap)
  107.   updateStage()
  108.   if fSubsys <> EMPTY then
  109.     put "mResetMainContent:subsistema" && fObject(mGetName)
  110.     SetCast(gObjectSprite, fSubsys(mGetName))
  111.   else
  112.     put "mResetMainContent:objeto" && fObject(mGetName)
  113.     SetCast(gObjectSprite, fObject(mGetName))
  114.   end if
  115.   updateStage()
  116.  
  117. method mResetCurrButton
  118.   global gVideoSprite
  119.   put "mResetCurrButton:" && fLastButtonSprite && "fStatus" && fStatus
  120.   if fLastButtonSprite > 0 then
  121.     SetCast(gVideoSprite, fEmptyBitmap)
  122.     updateStage()
  123.     sound stop 1
  124.     sound stop 2
  125.     if fStatus = "Hist" then
  126.       me(mHideHistConsole)
  127.     end if
  128.     if fStatus = "3D" then
  129.       me(mHide3DConsole)
  130.     end if
  131.     if fStatus = "Kozmo" then
  132.       me(mHideKozmoConsole)
  133.     end if
  134.     SetCast(fLastButtonSprite, fStatus & "Up")
  135.     puppetSprite(fLastButtonSprite, 0)
  136.     set fLastButtonSprite to 0
  137.   end if
  138.  
  139. method mLog3D
  140.   set s to the clickOn
  141.   puppetSprite(s, 1)
  142.   SetCast(s, f3DDown)
  143.   click()
  144.   if s <> fLastButtonSprite then
  145.     me(mResetCurrButton)
  146.   end if
  147.   me(mCloseMovie)
  148.   me(mShow3DConsole)
  149.   set fLastButtonSprite to s
  150.   set fStatus to "3D"
  151.   updateStage()
  152.   if fSubsys <> EMPTY then
  153.     set theName to fSubsys(mGetName)
  154.   else
  155.     set theName to fObject(mGetName)
  156.   end if
  157.   MyUnload()
  158.   go(theName & "3D")
  159.  
  160. method mTurn3DModel
  161.   global gVideoSprite
  162.   set gridSprite to the clickOn
  163.   set gridHeigth to the height of sprite gridSprite
  164.   set gridWidth to the width of sprite gridSprite
  165.   set gridLineWidth to gridHeigth / f3DNumLines
  166.   set gridColWidth to gridWidth / f3DNumCols
  167.   set the cursor of sprite gridSprite to 200
  168.   repeat while the stillDown
  169.     set the cursor of sprite gridSprite to 200
  170.     set x to integer((the mouseH - the right of sprite gridSprite) mod gridWidth / gridColWidth)
  171.     set x to (f3DNumCols - x) mod f3DNumCols
  172.     set y to integer((the mouseV - the top of sprite gridSprite) / gridLineWidth)
  173.     if y < 0 then
  174.       set y to 0
  175.     end if
  176.     if y >= f3DNumLines then
  177.       set y to f3DNumLines - 1
  178.     end if
  179.     set num to x + (y * f3DNumCols)
  180.     set the movieTime of sprite gVideoSprite to num * 5
  181.     updateStage()
  182.   end repeat
  183.   set fAlfa to y
  184.   set fTetha to x
  185.   set the cursor of sprite gridSprite to 0
  186.  
  187. method mLogInfo
  188.   global gVideoSprite
  189.   set s to the clickOn
  190.   puppetSprite(s, 1)
  191.   SetCast(s, fInfoDown)
  192.   click()
  193.   set n to the castNum of sprite gVideoSprite
  194.   if the castType of cast n = #digitalVideo then
  195.     set mr to the movieRate of sprite gVideoSprite
  196.     set the movieRate of sprite gVideoSprite to 0
  197.     updateStage()
  198.     HideVideoSprite()
  199.     updateStage()
  200.   end if
  201.   if s <> fLastButtonSprite then
  202.     me(mResetCurrButton)
  203.     me(mHideMovieConsole)
  204.   end if
  205.   set fMovie to EMPTY
  206.   set fLastButtonSprite to s
  207.   set fStatus to "Info"
  208.   updateStage()
  209.   MyUnload()
  210.   if objectp(fSubsys) then
  211.     set dest to label(fSubsys(mGetName) & "Info")
  212.   else
  213.     set dest to label(fObject(mGetName) & "Info")
  214.   end if
  215.   go(dest)
  216.  
  217. method mLogHelp
  218.   global gVideoSprite
  219.   if the castType of cast the castNum of sprite gVideoSprite = #digitalVideo then
  220.     HideVideoSprite()
  221.     updateStage()
  222.   else
  223.     sound stop 2
  224.     sound stop 1
  225.   end if
  226.   set s to the clickOn
  227.   puppetSprite(s, 1)
  228.   SetCast(s, fHelpDown)
  229.   click()
  230.   if s <> fLastButtonSprite then
  231.     me(mResetCurrButton)
  232.     me(mHideMovieConsole)
  233.   end if
  234.   set fLastButtonSprite to s
  235.   set fStatus to "Help"
  236.   updateStage()
  237.   go("Help")
  238.  
  239. method mLogDuda
  240.   global gVideoSprite
  241.   set DudaList to fObject(mGetDudaList)
  242.   if DudaList = EMPTY then
  243.     alert("No se encuentra disponible en esta versi├│n Demo")
  244.   else
  245.     if the castType of cast the castNum of sprite gVideoSprite = #digitalVideo then
  246.       HideVideoSprite()
  247.       updateStage()
  248.     else
  249.       sound stop 2
  250.       sound stop 1
  251.     end if
  252.     set s to the clickOn
  253.     puppetSprite(s, 1)
  254.     SetCast(s, fDudaDown)
  255.     click()
  256.     if s <> fLastButtonSprite then
  257.       me(mResetCurrButton)
  258.     end if
  259.     set fLastButtonSprite to s
  260.     set fStatus to "Duda"
  261.     updateStage()
  262.     MyUnload()
  263.     go("Duda" & fObject(mGetNextDuda))
  264.   end if
  265.  
  266. method mLogData
  267.   global gVideoSprite
  268.   set DataList to fObject(mGetDataList)
  269.   if DataList = EMPTY then
  270.     alert("No se encuentra disponible en esta versi├│n Demo")
  271.   else
  272.     if the castType of cast the castNum of sprite gVideoSprite = #digitalVideo then
  273.       HideVideoSprite()
  274.       updateStage()
  275.     else
  276.       sound stop 2
  277.       sound stop 1
  278.     end if
  279.     set s to the clickOn
  280.     puppetSprite(s, 1)
  281.     SetCast(s, fDataDown)
  282.     click()
  283.     if s <> fLastButtonSprite then
  284.       me(mResetCurrButton)
  285.     end if
  286.     set fLastButtonSprite to s
  287.     set fStatus to "Data"
  288.     updateStage()
  289.     MyUnload()
  290.     go("Data" & fObject(mGetNextData))
  291.   end if
  292.  
  293. method mLogKozmo
  294.   global gVideoSprite
  295.   sound stop 1
  296.   sound stop 2
  297.   set n to the castNum of sprite gVideoSprite
  298.   if the castType of cast n = #digitalVideo then
  299.     set mr to the movieRate of sprite gVideoSprite
  300.     set the movieRate of sprite gVideoSprite to 0
  301.   end if
  302.   set s to the clickOn
  303.   puppetSprite(s, 1)
  304.   SetCast(s, fExpDown)
  305.   click()
  306.   if s <> fLastButtonSprite then
  307.     me(mResetCurrButton)
  308.   end if
  309.   set fLastButtonSprite to s
  310.   set fStatus to "Kozmo"
  311.   updateStage()
  312.   me(mHideMovieConsole)
  313.   me(mShowKozmoConsole)
  314.   go("KOZMO")
  315.  
  316. method mLogExp
  317.   global gObjectSprite
  318.   click()
  319.   set fStatus to "Exp"
  320.   updateStage()
  321.   me(mShowMovieConsole)
  322.   puppetSprite(gObjectSprite, 1)
  323.   MyUnload()
  324.   if fSubsys <> EMPTY then
  325.     go(fSubsys(mGetName) & "Exp")
  326.   else
  327.     go(fObject(mGetName) & "Exp")
  328.   end if
  329.  
  330. method mLogPrinc
  331.   global gVideoSprite
  332.   set thePrinc to EMPTY
  333.   set n to the castNum of sprite gVideoSprite
  334.   put "the castType of cast n" && the castType of cast n
  335.   if the castType of cast n = #digitalVideo then
  336.     set mr to the movieRate of sprite gVideoSprite
  337.     set the movieRate of sprite gVideoSprite to 0
  338.   end if
  339.   set s to the clickOn
  340.   SetCast(s, fPhysicDown)
  341.   click()
  342.   put "fObject" && fObject
  343.   if objectp(fObject) then
  344.     set thePopup to fObject(mGetPrincPopup)
  345.     put "thePopup" && thePopup
  346.     if objectp(thePopup) then
  347.       set thePrinc to thePopup(mShowPopUp, 644, 202, "Left")
  348.       put "entre"
  349.       if thePrinc <> EMPTY then
  350.         set fKozmoConsole to 0
  351.         thePopup(mSetDoubleHilite)
  352.         repeat with i = 6 to 48
  353.           set the castNum of sprite i to 2090
  354.           puppetSprite(i, 0)
  355.         end repeat
  356.       else
  357.         if the castType of cast n = #digitalVideo then
  358.           sound stop 1
  359.           set the movieRate of sprite gVideoSprite to mr
  360.         end if
  361.       end if
  362.     else
  363.       beep(4)
  364.     end if
  365.   end if
  366.   thePopup(mHide)
  367.   SetCast(s, "PhysicUp")
  368.   sound stop 1
  369.   updateStage()
  370.   unLoadCast(fPhysicDown)
  371.   return thePrinc
  372.  
  373. method mLogHist
  374.   global gHistBtnSprite
  375.   set s to gHistBtnSprite
  376.   puppetSprite(s, 1)
  377.   SetCast(s, fHistDown)
  378.   click()
  379.   if s <> fLastButtonSprite then
  380.     me(mResetCurrButton)
  381.   end if
  382.   set fLastButtonSprite to s
  383.   set fStatus to "Hist"
  384.   updateStage()
  385.   me(mCloseMovie)
  386.   me(mShowHistConsole)
  387.   MyUnload()
  388.   cursor(-1)
  389.   go("Hist")
  390.  
  391. method mLogAnim
  392.   set s to the clickOn
  393.   puppetSprite(s, 1)
  394.   SetCast(s, fAnimDown)
  395.   click()
  396.   if s <> fLastButtonSprite then
  397.     me(mResetCurrButton)
  398.   end if
  399.   set fLastButtonSprite to s
  400.   set fStatus to "Anim"
  401.   updateStage()
  402.   MyUnload()
  403.   if objectp(fSubsys) then
  404.     set dest to label(fSubsys(mGetName) & "Anim")
  405.   else
  406.     set dest to label(fObject(mGetName) & "Anim")
  407.   end if
  408.   if dest = 0 then
  409.     alert("No disponoble" && fObject(mGetName) & "Anim")
  410.   else
  411.     go(dest)
  412.   end if
  413.  
  414. method mLogMemorize elLabel, laMovie
  415.   put "mLogMemorize:fLastMovie" && fLastMovie
  416.   put "mLogMemorize:fLastState" && fLastState
  417.   repeat with i = 5 down to 2
  418.     setAt(fLastState, i, getAt(fLastState, i - 1))
  419.     setAt(fLastMovie, i, getAt(fLastMovie, i - 1))
  420.   end repeat
  421.   setAt(fLastState, 1, elLabel)
  422.   setAt(fLastMovie, 1, laMovie)
  423.   put "mLogMemorize:->fLastMovie" && fLastMovie
  424.   put "mLogMemorize:->fLastState" && fLastState
  425.  
  426. method mShowJump
  427.   put "mShowJump:->fLastMovie" && fLastMovie
  428.   put "mShowJump:->fLastState" && fLastState
  429.  
  430. method mJumpBack fromWhere
  431.   global gMyStateDestino, gMyMovieDestino, gVideoSprite, gThePhysic
  432.   put "mJumpBack:fLastMovie" && fLastMovie
  433.   put "mJumpBack:fLastState" && fLastState
  434.   set MovieDestino to getAt(fLastMovie, 1)
  435.   set StateDestino to getAt(fLastState, 1)
  436.   set the text of cast "AnalyzerLink" to MovieDestino
  437.   repeat with i = 1 to 5
  438.     setAt(fLastState, i, getAt(fLastState, i + 1))
  439.     setAt(fLastMovie, i, getAt(fLastMovie, i + 1))
  440.   end repeat
  441.   put "mJumpBack:=>fLastMovie" && fLastMovie
  442.   put "mJumpBack:=>fLastState" && fLastState
  443.   if fromWhere = "PRINC" then
  444.     if the castType of cast the castNum of sprite gVideoSprite = #digitalVideo then
  445.       gThePhysic(mHideMovieConsole)
  446.       SetCast(gVideoSprite, "EmptyBitmap")
  447.     end if
  448.     set gMyStateDestino to StateDestino
  449.     set gMyMovieDestino to MovieDestino
  450.     go("JumpToAnalyzer")
  451.   else
  452.     if the castType of cast the castNum of sprite gVideoSprite = #digitalVideo then
  453.       me(mHideMovieConsole)
  454.       SetCast(gVideoSprite, "EmptyBitmap")
  455.     end if
  456.     set gMyStateDestino to StateDestino
  457.     set gMyMovieDestino to MovieDestino
  458.     go(StateDestino, MovieDestino)
  459.   end if
  460.  
  461. method mShowMovieConsole
  462.   if not fMovieConsole then
  463.     StoreSpritesStatus()
  464.     SetSprites()
  465.     play frame "ShowMovieConsole"
  466.     set fMovieConsole to 1
  467.     RestoreSpritesStatus()
  468.   end if
  469.  
  470. method mHideMovieConsole
  471.   global gMovieSprite
  472.   if fMovieConsole then
  473.     SetCast(gMovieSprite, fEmptyBitmap)
  474.     StoreSpritesStatus()
  475.     SetSprites()
  476.     play frame "HideMovieConsole"
  477.     set fMovieConsole to 0
  478.     RestoreSpritesStatus()
  479.   end if
  480.  
  481. method mShow3DConsole
  482.   if not f3DConsole then
  483.     StoreSpritesStatus()
  484.     SetSprites()
  485.     play frame "Show3DConsole"
  486.     set f3DConsole to 1
  487.     RestoreSpritesStatus()
  488.   end if
  489.  
  490. method mHide3DConsole
  491.   HideVideoSprite()
  492.   if f3DConsole then
  493.     StoreSpritesStatus()
  494.     SetSprites()
  495.     play frame "Hide3DConsole"
  496.     set f3DConsole to 0
  497.     RestoreSpritesStatus()
  498.   end if
  499.  
  500. method mShowHistConsole
  501.   if not fHistConsole then
  502.     StoreSpritesStatus()
  503.     SetSprites()
  504.     play frame "ShowHistConsole"
  505.     set fHistConsole to 1
  506.     RestoreSpritesStatus()
  507.   end if
  508.  
  509. method mHideHistConsole
  510.   global gMovieSprite
  511.   SetCast(gMovieSprite, fEmptyBitmap)
  512.   updateStage()
  513.   puppetSprite(gMovieSprite, 0)
  514.   if fHistConsole then
  515.     StoreSpritesStatus()
  516.     SetSprites()
  517.     play frame "HideHistConsole"
  518.     set fHistConsole to 0
  519.     RestoreSpritesStatus()
  520.   end if
  521.  
  522. method mShowKozmoConsole
  523.   if not fKozmoConsole then
  524.     StoreSpritesStatus()
  525.     SetSprites()
  526.     play frame "ShowKozmoConsole"
  527.     set fKozmoConsole to 1
  528.     RestoreSpritesStatus()
  529.   end if
  530.  
  531. method mHideKozmoConsole
  532.   if fKozmoConsole then
  533.     StoreSpritesStatus()
  534.     SetSprites()
  535.     play frame "HideKozmoConsole"
  536.     set fKozmoConsole to 0
  537.     RestoreSpritesStatus()
  538.   end if
  539.  
  540. method mSetFaxAvailable
  541.   set fFaxAvailable to 1
  542.  
  543. method mResetFaxAvailable
  544.   set fFaxAvailable to 0
  545.  
  546. method mIsFaxAvailable
  547.   return(fFaxAvailable)
  548.  
  549. method mFree
  550.  
  551. method mShowStatus
  552.   put "Status = " & fStatus
  553.   put "Movie Status = " & fMovieStatus
  554.  
  555. method mInitMovie theMovie
  556.   global gMovieSprite, gVideoSprite
  557.   cursor(-1)
  558.   set fMovie to theMovie
  559.   puppetSprite(gMovieSprite, 1)
  560.   set fMovieStatus to 1
  561.   if fStatus = "Hist" then
  562.     SetCast(gMovieSprite, "BigPlayDown")
  563.   else
  564.     SetCast(gMovieSprite, "SmallPlayDown")
  565.   end if
  566.   updateStage()
  567.  
  568. method mCloseMovie
  569.   global gMovieSprite, gVideoSprite
  570.   set fMovie to EMPTY
  571.   SetCast(gMovieSprite, fEmptyBitmap)
  572.   updateStage()
  573.   puppetSprite(gMovieSprite, 0)
  574.   me(mHideMovieConsole)
  575.   HideVideoSprite()
  576.   updateStage()
  577.  
  578. method mPlayPause
  579.   if fMovieStatus then
  580.     me(mPause)
  581.   else
  582.     me(mPlay)
  583.   end if
  584.  
  585. method mPlay
  586.   global gVideoSprite, gMovieSprite
  587.   set fMovieStatus to 1
  588.   click()
  589.   if the castNum of sprite gMovieSprite = the number of cast "BigPauseDown" then
  590.     set HistStandby to 1
  591.   else
  592.     set HistStandby to 0
  593.   end if
  594.   if the castNum of sprite gMovieSprite = the number of cast "SmallPauseDown" then
  595.     set MovieStandby to 1
  596.   else
  597.     set MovieStandby to 0
  598.   end if
  599.   if fStatus = "Hist" then
  600.     SetCast(gMovieSprite, "BigPlayDown")
  601.   else
  602.     SetCast(gMovieSprite, "SmallPlayDown")
  603.   end if
  604.   updateStage()
  605.   MyUnload()
  606.   if HistStandby = 1 then
  607.     if the castNum of sprite gVideoSprite <> fEmptyBitmap then
  608.       set the movieRate of sprite gVideoSprite to 1
  609.     end if
  610.   else
  611.     if the castNum of sprite gVideoSprite <> fEmptyBitmap then
  612.       put "parche"
  613.       if (the castType of cast the castNum of sprite gVideoSprite = #digitalVideo) and (MovieStandby = 1) then
  614.         SetCast(gVideoSprite, fEmptyBitmap)
  615.       end if
  616.     end if
  617.     go(marker(0))
  618.   end if
  619.  
  620. method mPause
  621.   global gVideoSprite, gMovieSprite
  622.   sound stop 1
  623.   sound stop 2
  624.   set s to the clickOn
  625.   set fMovieStatus to 0
  626.   click()
  627.   if fStatus = "Hist" then
  628.     SetCast(gMovieSprite, "BigPauseDown")
  629.     if the castNum of sprite gVideoSprite <> fEmptyBitmap then
  630.       set the movieRate of sprite gVideoSprite to 0
  631.     else
  632.       sound stop 1
  633.       sound stop 2
  634.     end if
  635.     set TheEnd to 0
  636.     repeat while not TheEnd
  637.       if the mouseDown = 1 then
  638.         repeat with i = 26 to 39
  639.           if rollOver(i) then
  640.             set TheEnd to 1
  641.             exit repeat
  642.           end if
  643.         end repeat
  644.       end if
  645.       updateStage()
  646.     end repeat
  647.   else
  648.     SetCast(gMovieSprite, "SmallPauseDown")
  649.     me(mResetCurrButton)
  650.     HideVideoSprite()
  651.     SetCast(gMovieSprite, "VideoConsoleStandby")
  652.     updateStage()
  653.     me(mLogBrowse)
  654.   end if
  655.   updateStage()
  656.  
  657. method mReplay
  658.   global gMovieSprite
  659.   set dest to the frame
  660.   if fMovie <> EMPTY then
  661.     sound stop 1
  662.     sound stop 2
  663.     HideVideoSprite()
  664.     updateStage()
  665.     click()
  666.     if fStatus = "Hist" then
  667.       SetCast(gMovieSprite, "BigReplayDown")
  668.     else
  669.       SetCast(gMovieSprite, "SmallReplayDown")
  670.     end if
  671.     updateStage()
  672.     set fPlayStatus to 1
  673.     if fStatus = "Hist" then
  674.       SetCast(gMovieSprite, "BigPlayDown")
  675.     else
  676.       SetCast(gMovieSprite, "SmallPlayDown")
  677.     end if
  678.     updateStage()
  679.     MyUnload()
  680.     if fStatus = "Hist" then
  681.       set dest to label("Hist")
  682.     else
  683.       set dest to marker(0)
  684.     end if
  685.   end if
  686.   go(dest)
  687.  
  688. method mRewind
  689.   global gVideoSprite, gMovieSprite
  690.   set dest to the frame
  691.   if (fMovie <> EMPTY) and (marker(0) <> label(fMovie)) then
  692.     sound stop 1
  693.     sound stop 2
  694.     HideVideoSprite()
  695.     updateStage()
  696.     click()
  697.     if fStatus = "Hist" then
  698.       SetCast(gMovieSprite, "BigRewDown")
  699.     else
  700.       SetCast(gMovieSprite, "SmallRewDown")
  701.     end if
  702.     updateStage()
  703.     set fPlayStatus to 1
  704.     if fStatus = "Hist" then
  705.       SetCast(gMovieSprite, "BigPlayDown")
  706.     else
  707.       SetCast(gMovieSprite, "SmallPlayDown")
  708.     end if
  709.     updateStage()
  710.     MyUnload()
  711.     set dest to marker(-1)
  712.   end if
  713.   go(dest)
  714.  
  715. method mFF
  716.   global gVideoSprite, gMovieSprite
  717.   set dest to the frame
  718.   if (fMovie <> EMPTY) and (marker(1) <> label("END" & fMovie)) then
  719.     sound stop 1
  720.     sound stop 2
  721.     HideVideoSprite()
  722.     updateStage()
  723.     click()
  724.     if fStatus = "Hist" then
  725.       SetCast(gMovieSprite, "BigFFDown")
  726.     else
  727.       SetCast(gMovieSprite, "SmallFFDown")
  728.     end if
  729.     updateStage()
  730.     set fMovieStatus to 1
  731.     if fStatus = "Hist" then
  732.       SetCast(gMovieSprite, "BigPlayDown")
  733.     else
  734.       SetCast(gMovieSprite, "SmallPlayDown")
  735.     end if
  736.     updateStage()
  737.     MyUnload()
  738.     set dest to marker(1)
  739.   end if
  740.   go(dest)
  741.  
  742. method mCheckSprite theSprite
  743.   global gMovieSprite
  744.   if fMovie <> EMPTY then
  745.     set theRollOver to rollOver(theSprite)
  746.     set p to point(the mouseH, the mouseV)
  747.     if theRollOver then
  748.       if theSprite = gMovieSprite then
  749.         if fStatus = "Hist" then
  750.           set whichClicked to GetClickedBigVideoButton(p)
  751.         else
  752.           set whichClicked to GetClickedSmallVideoButton(p)
  753.         end if
  754.         if whichClicked = "Rewind" then
  755.           if marker(0) <> label(fMovie) then
  756.             return 1
  757.           else
  758.             return 0
  759.           end if
  760.         else
  761.           if whichClicked = "FF" then
  762.             if marker(1) <> label("END" & fMovie) then
  763.               return 1
  764.             else
  765.               return 0
  766.             end if
  767.           else
  768.             return 1
  769.           end if
  770.         end if
  771.       else
  772.         return 1
  773.       end if
  774.     end if
  775.   end if
  776.   return 0
  777.