home *** CD-ROM | disk | FTP | other *** search
- on button
- set cname to item 1 of the name of cast the castNum of sprite clickOn()
- set the castNum of sprite clickOn() to the number of member (cname & ",on")
- updateStage()
- set t to the timer
- repeat while the timer > (t + 5)
- end repeat
- repeat while the stillDown
- if rollOver(clickOn()) then
- set the castNum of sprite clickOn() to the number of member (cname & ",on")
- updateStage()
- next repeat
- end if
- set the castNum of sprite clickOn() to the number of member (cname & ",off")
- updateStage()
- end repeat
- set the castNum of sprite clickOn() to the number of member (cname & ",off")
- updateStage()
- end
-