home *** CD-ROM | disk | FTP | other *** search
- on CDXSelectAdvert
- global ADDThisNum, REFChoosen, INXADvertNo
- repeat with g = 10 to INXADvertNo + 9
- set REFChoosen to 0
- if rollOver(g) then
- set the castNum of sprite g to the castNum of sprite g + 1
- updateStage()
- repeat while rollOver(g)
- if the mouseDown then
- set ADDThisNum to g - 9
- set REFChoosen to 1
- set the castNum of sprite g to the castNum of sprite g - 1
- CDXLeave(2)
- updateStage()
- end if
- end repeat
- if REFChoosen = 0 then
- set the castNum of sprite g to the castNum of sprite g - 1
- end if
- updateStage()
- end if
- updateStage()
- end repeat
- end
-