home *** CD-ROM | disk | FTP | other *** search
- property iFunctionNameList, ioFunctionList, iCurrentFunction, ichTabs
-
- on birth me
- global goBanners, goZooms, goCredits, goBullets
- set iFunctionNameList to ["Banners", "Zooms", "Credits", "Bullets"]
- set ioFunctionList to [goBanners, goZooms, goCredits, goBullets]
- set iCurrentFunction to 1
- set ichTabs to 2
- return me
- end
-
- on mHit me
- global goPlatform
- set newFunction to HitWhoH(ichTabs, count(iFunctionNameList))
- if newFunction = iCurrentFunction then
- return
- end if
- set oCurrent to getAt(ioFunctionList, iCurrentFunction)
- mCleanUp(oCurrent)
- set iCurrentFunction to newFunction
- set newFrameName to getAt(iFunctionNameList, iCurrentFunction)
- go(newFrameName & goPlatform)
- end
-