home *** CD-ROM | disk | FTP | other *** search
/ Better Homes & Gardens: …oking for Today - Chicken / Image.iso / pc / personal.dxr / 00101_PBACK.PIC.ls < prev    next >
Encoding:
Text File  |  1995-11-20  |  972 b   |  32 lines

  1. on mouseDown
  2.   global gBackButton
  3.   down(gBackButton)
  4. end
  5.  
  6. on mouseUp
  7.   global gBackButton, gCurrentRecipeFrame, gCFTBook, gDefaultRecipe, gpersonalliddb, gPersonalBrowser, gCurrentRecipe, gLastCurrentRecipe, gCurrentBook, gLastCurrentBook
  8.   if count(gPersonalIDDB) > 0 then
  9.     set gCurrentBook to "personal"
  10.   else
  11.     set gCurrentBook to gCFTBook
  12.   end if
  13.   if up(gBackButton) then
  14.     loadPersonalIndexes()
  15.     if (gLastCurrentBook = "personal") and (not getOne(gPersonalBrowser, gLastCurrentRecipe) or (count(gPersonalIDDB) = 0) or (count(gPersonalBrowser) = 0)) then
  16.       set gCurrentRecipeFrame to "recipe1"
  17.       if gCFTBook = "Bundle" then
  18.         set gCurrentBook to "Chick"
  19.       else
  20.         set gCurrentBook to gCFTBook
  21.       end if
  22.       set gCurrentRecipe to gDefaultRecipe
  23.     else
  24.       set gCurrentRecipe to gLastCurrentRecipe
  25.       set gCurrentBook to gLastCurrentBook
  26.     end if
  27.     put gDefaultRecipe
  28.     put gCurrentRecipe
  29.     goBack()
  30.   end if
  31. end
  32.