home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Computer Buyer 1995 November
/
SHOWCASE.ISO
/
files
/
vision.dir
/
00315_Script_315
< prev
next >
Wrap
Text File
|
1995-06-14
|
1KB
|
28 lines
global gConstrSprite1, gBallSprite1, gTextSprite1, gOrigTextLocV, gHiliteColor, gWindowHeight
on mouseDown
set constrainOffset = the top of sprite gConstrSprite1
set textSpriteHeight = the height of sprite gTextSprite1
set travelLength = textSpriteHeight - gWindowHeight
set the constraint of sprite gBallSprite1 = gConstrSprite1
set the castnum of sprite gBallSprite1 = ¼
the number of cast (the name of cast(the castnum of sprite gBallSprite1) && "lit")
repeat while the mousedown
set the locV of sprite the clickon = the mouseV
set ballDistance = the locV of sprite gBallSprite1 - constrainOffset
set ballPer = ballDistance/float(the height of sprite gConstrSprite1)
set the locV of sprite gTextSprite1 = gOrigTextLocV - (ballPer * travelLength)
updatestage
end repeat
end mouseDown
on mouseUp
set the castnum of sprite gBallSprite1 = ¼
the number of cast (word 1 of the name of cast(the castnum of sprite gBallSprite1))
updatestage
end mouseUp