home *** CD-ROM | disk | FTP | other *** search
- on goSubAuto
- global theDemoList, gCurrDemo, theTThingsList, theIeList, theHouseList
- set tempDemo to #done
- if gCurrDemo = "Imagination" then
- set tmpList to theIeList
- else
- if gCurrDemo = "ThinkT" then
- set tmpList to theTThingsList
- else
- if gCurrDemo = "House" then
- set tmpList to theHouseList
- else
- alert("trouble:" & gCurrDemo)
- end if
- end if
- end if
- repeat with nn = 1 to count(tmpList)
- if getAt(tmpList, nn) = #done then
- next repeat
- end if
- set tempDemo to getAt(tmpList, nn)
- setAt(tmpList, nn, #done)
- exit repeat
- end repeat
- if tempDemo = #done then
- set xx to getPos(theDemoList, gCurrDemo)
- setAt(theDemoList, xx, #done)
- autoGoDemo()
- else
- if gCurrDemo = "Imagination" then
- PlayDemoFrame(tempDemo, "ie")
- else
- PlayDemoFrame(1, tempDemo)
- end if
- end if
- end
-