home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Club KidSoft Volume 3 #1
/
ClubKidsoft.iso
/
movies
/
catalog.dir
/
00127_Script_127
< prev
next >
Wrap
Text File
|
1995-02-07
|
2KB
|
57 lines
-- "GoDirect"
-- *** SPEED THIS UP
-- Can get here either:
-- 1) returning from a demo
-- 2) clicked on BuyNow on cover and chose product in Find window
on exitFrame
cursor 4
global gSaveReturnInfoFile, KidDemosOnly, KidDemosPageOn
if FileExists(gSaveReturnInfoFile) then
set saveData = ReadFile(gSaveReturnInfoFile)
EraseFile(gSaveReturnInfoFile) -- uses fileio()
SetItemDelim(tab)
set KidDemosOnly = item 1 of saveData
set cat = item 2 of saveData
set age = item 3 of saveData
if KidDemosOnly = TRUE then
set KidDemosPageOn = integer(item 4 of saveData)
else
set productNumber = integer(item 4 of saveData)
end if
RestoreItemDelim
else -- we're coming from BuyNow on cover
set cat = "All Products"
set age = "All Ages"
global BuyNowSelection
set productNumber = BuyNowSelection
-- We need to be sure they can get back to the cover
global BuyNowFromCover
set BuyNowFromCover = TRUE
end if
ClearReturnStack -- start from scratch
if KidDemosOnly = TRUE then
-- Get ready for demos
SetCatalogMenus("All Demos", "All Ages")
GoToFrame("CatalogInit", "KidDemosExit")
else
-- Do a little work to set up things for the detail screen...
SetCatalogMenus(cat, age)
-- Cause the DBSelect to occur
ResetSummaryScreenInfo(1, FALSE) -- FALSE means don't refresh, just gets our variable set up correctly
PushReturnTo("Cover") -- be sure they can get back to the cover
GoToProductDetail(productNumber, "CatalogInit")
end if
end