home *** CD-ROM | disk | FTP | other *** search
- property theSprite, castID, castHI, castMD, target, wissel
- global entert
-
- on new me, spr, csID, csHI, csMD, TA
- theSprite = spr
- castID = the number of member csID
- castHI = the number of member csHI
- castMD = the number of member csMD
- target = TA
- wissel = castID
- puppetSprite(theSprite, 1)
- return me
- end
-
- on cbbtn2 me
- if rollOver(theSprite) and getOne([castID, castHI, castMD], the mouseCast) then
- puppetSprite(theSprite, 1)
- set the castNum of sprite theSprite to castHI
- updateStage()
- if the mouseDown then
- set the castNum of sprite theSprite to castMD
- repeat while the mouseDown
- if rollOver(theSprite) and the mouseDown then
- set the castNum of sprite theSprite to castMD
- updateStage()
- next repeat
- end if
- set the castNum of sprite theSprite to castHI
- updateStage()
- end repeat
- if rollOver(theSprite) = 0 then
- exit
- end if
- entert = "<1"
- go(target)
- exit
- end if
- else
- set the castNum of sprite theSprite to wissel
- end if
- end
-
- on setcurrentSz me, cstmd
- wissel = the number of member cstmd
- set the castNum of sprite theSprite to wissel
- updateStage()
- return me
- end
-