home *** CD-ROM | disk | FTP | other *** search
/ PC go! 1996 July / Image.iso / mrmore / mrmore.dir / 00655.ls < prev    next >
Encoding:
Text File  |  1996-04-11  |  945 b   |  30 lines

  1. on mouseUp
  2.   global gsOldDir, goGBTools, gsThisFrame, gsPopupType, gsPopupCont, gnMusicSprite
  3.   repeat with i = 1 to gnMusicSprite - 1
  4.     set the puppet of sprite i to 0
  5.   end repeat
  6.   set sDir to goGBTools(mGetCurPath)
  7.   if length(sDir) > 3 then
  8.     set sDir to sDir & "\"
  9.   end if
  10.   set the text of cast "NewDir" to alltrim(the text of cast "NewDir")
  11.   if length(the text of cast "NewDir") > 8 then
  12.     set the text of cast "NewDir" to char 1 to 8 of the text of cast "NewDir"
  13.   end if
  14.   if the text of cast "NewDir" <> EMPTY then
  15.     if goGBTools(mMakeDir, the text of cast "NewDir") then
  16.       set sDir to sDir & the text of cast "NewDir"
  17.     end if
  18.   end if
  19.   goGBTools(mChDir, gsOldDir)
  20.   if gsPopupType = "Soun" then
  21.     set the text of cast "DesiDir" to sDir
  22.   else
  23.     set the text of cast (gsPopupType & "Dir") to sDir
  24.   end if
  25.   go(gsThisFrame)
  26.   if gsPopupCont <> EMPTY then
  27.     InstallObject(gsPopupType, gsPopupCont)
  28.   end if
  29. end
  30.