home *** CD-ROM | disk | FTP | other *** search
- on IFLsectionWordAnimate
- global IFLhowManyWordTurnList, IFLRolledOver, IFLSpriteDifference, IFLhasLineFlashedList, IFLCanChange, GTSbuttonCount, IFLReferenceNameSprite, IFLMovieNameList, REFHeadList
- repeat with t = 39 to 47
- set WHICHHEADING to getAt(REFHeadList, t - IFLSpriteDifference)
- if (getAt(WHICHHEADING, 5) = 1) and not rollOver(t) then
- setAt(WHICHHEADING, 5, 0)
- set the castNum of sprite 21 to -1
- set the locH of sprite 21 to 2000
- end if
- if rollOver(t) and (t <> IFLReferenceNameSprite) then
- set WHICHHEADING to getAt(REFHeadList, t - IFLSpriteDifference)
- if getAt(WHICHHEADING, 5) = 0 then
- set the castNum of sprite 21 to the number of member getAt(WHICHHEADING, 1)
- set the loc of sprite 21 to point(getAt(WHICHHEADING, 2), getAt(WHICHHEADING, 3))
- set the ink of sprite 21 to getAt(WHICHHEADING, 4)
- setAt(WHICHHEADING, 5, 1)
- updateStage()
- end if
- set value to getAt(IFLhasLineFlashedList, t - IFLSpriteDifference)
- if value = 3 then
- set the castNum of sprite t to the castNum of sprite t + 1
- setAt(IFLhasLineFlashedList, t - IFLSpriteDifference, value + 1)
- updateStage()
- else
- if value = 6 then
- set the castNum of sprite t to the castNum of sprite t - 1
- setAt(IFLhasLineFlashedList, t - IFLSpriteDifference, 0)
- updateStage()
- else
- setAt(IFLhasLineFlashedList, t - IFLSpriteDifference, value + 1)
- end if
- end if
- if rollOver(t) and (IFLRolledOver <> t) and the mouseDown and (IFLCanChange = 1) then
- set IFLCanChange to 0
- set IFLRolledOver to t
- set value to getAt(IFLhasLineFlashedList, t - IFLSpriteDifference)
- if value < 4 then
- setAt(IFLhasLineFlashedList, t - IFLSpriteDifference, 0)
- else
- setAt(IFLhasLineFlashedList, t - IFLSpriteDifference, 0)
- set the castNum of sprite t to the castNum of sprite t - 1
- updateStage()
- end if
- updateStage()
- REFLeave(1)
- repeat with g = 1 to 15
- set the castNum of sprite IFLReferenceNameSprite to the castNum of sprite IFLReferenceNameSprite + 1
- wait(0.05)
- updateStage()
- end repeat
- cursor(-1)
- puppetSound(0)
- updateStage()
- go(1, getAt(IFLMovieNameList, IFLRolledOver - IFLSpriteDifference))
- end if
- end if
- end repeat
- end
-