home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Computer Buyer 1995 November
/
SHOWCASE.ISO
/
files
/
vision.dir
/
00339_Script_339
< prev
next >
Wrap
Text File
|
1995-06-14
|
1KB
|
29 lines
global gConstrSprite2V, gBallSprite2V, gTextSprite2, gOrigTextLocV, gHiliteColor, gWindowHeight2
global gIndexSpriteV, gOrigIndexLocV
on mouseDown
set constrainOffset = the top of sprite gConstrSprite2V
set textSpriteHeight = the height of sprite gTextSprite2
set travelLength = textSpriteHeight - gWindowHeight2
set the constraint of sprite gBallSprite2V = gConstrSprite2V
-- set the forecolor of sprite gBallSprite2V = gHiliteColor
set the castnum of sprite gBallSprite2V = ¼
the number of cast (the name of cast(the castnum of sprite gBallSprite2V) && "lit")
repeat while the stilldown
set the locV of sprite the clickon = the mouseV
set ballDistance = the locV of sprite gBallSprite2V - constrainOffset
set ballPer = ballDistance/float(the height of sprite gConstrSprite2V)
set the locV of sprite gTextSprite2 = gOrigTextLocV - (ballPer * travelLength)
set the locV of sprite gIndexSpriteV = gOrigIndexLocV - (ballPer * travelLength)
updatestage
end repeat
end mouseDown
on mouseUp
-- set the forecolor of sprite gBallSprite2V = 255
set the castnum of sprite gBallSprite2V = ¼
the number of cast (word 1 of the name of cast(the castnum of sprite gBallSprite2V))
updatestage
end