home *** CD-ROM | disk | FTP | other *** search
- on CDXLeave y
- global IFLButtonList, IFLINXNameSprite, ADDADCOntTwo, ADDAdCount, CDXMasterList, ADDADvertSprite, IFLHeadInkList
- if y <> 1 then
- repeat with t = 1 to 48
- set the locH of sprite t to 2000
- end repeat
- updateStage()
- else
- repeat with t = 2 to 38
- set the locH of sprite t to 2000
- end repeat
- updateStage()
- end if
- if y = 2 then
- ADDLOADAdd()
- end if
- end
-
- on CDXReturn y
- global CDXMasterList, IFLButtonList, IFLINXNameSprite, IFLHeadInkList, ADMasSearchList
- puppetSound(0)
- if y = 1 then
- repeat with g = 1 to 6
- set the castNum of sprite IFLINXNameSprite to the castNum of sprite IFLINXNameSprite - 1
- updateStage()
- end repeat
- set the ink of sprite IFLINXNameSprite to 8
- updateStage()
- repeat with f = 1 to count(CDXMasterList)
- set TwochangeSprite to getAt(CDXMasterList, f)
- if count(TwochangeSprite) > 2 then
- set the castNum of sprite getAt(TwochangeSprite, 1) to getAt(TwochangeSprite, 2)
- set the locH of sprite getAt(TwochangeSprite, 1) to getAt(TwochangeSprite, 3)
- set the locV of sprite getAt(TwochangeSprite, 1) to getAt(TwochangeSprite, 4)
- set the ink of sprite getAt(TwochangeSprite, 1) to getAt(TwochangeSprite, 5)
- set the visible of sprite getAt(TwochangeSprite, 1) to 1
- next repeat
- end if
- set the locH of sprite getAt(TwochangeSprite, 1) to 2000
- end repeat
- end if
- if y = 2 then
- repeat with f = 1 to count(ADMasSearchList)
- set TwochangeSprite to getAt(ADMasSearchList, f)
- if count(TwochangeSprite) > 2 then
- set the castNum of sprite getAt(TwochangeSprite, 1) to getAt(TwochangeSprite, 2)
- set the locH of sprite getAt(TwochangeSprite, 1) to getAt(TwochangeSprite, 3)
- set the locV of sprite getAt(TwochangeSprite, 1) to getAt(TwochangeSprite, 4)
- set the ink of sprite getAt(TwochangeSprite, 1) to getAt(TwochangeSprite, 5)
- set the visible of sprite getAt(TwochangeSprite, 1) to 1
- next repeat
- end if
- set the locH of sprite getAt(TwochangeSprite, 1) to 2000
- end repeat
- end if
- set the locH of sprite 1 to 325
- set the locV of sprite 1 to 271
- if y = 2 then
- set the castNum of sprite 1 to the number of member "IFLStaticBackground"
- set the ink of sprite 1 to 36
- go("ADStartFrame")
- else
- go("CDXSection")
- end if
- end
-