home *** CD-ROM | disk | FTP | other *** search
- property pButtonFunction
- global gMovieProperties, gModuleProperties
-
- on getPropertyDescriptionList me
- return [#pButtonFunction: [#comment: "'previous' or 'next' depending on what you want the button to do.", #format: #string, #default: EMPTY]]
- end
-
- on new me, bFunction
- me.pButtonFunction = bFunction
- return me
- end
-
- on mouseWithin me
- sprite(the currentSpriteNum).cursor = 280
- SwitchButtonState("over")
- end
-
- on mouseLeave me
- sprite(the currentSpriteNum).cursor = 0
- SwitchButtonState("up")
- end
-
- on mouseDown me
- gModuleProperties.UpdatePagesList()
- if pButtonFunction = "next" then
- gModuleProperties.pCurrentPage = gModuleProperties.pCurrentPage + 1
- else
- if pButtonFunction = "previous" then
- gModuleProperties.pCurrentPage = gModuleProperties.pCurrentPage - 1
- end if
- end if
- gMovieProperties.StartPageSetup()
- if the frame mod 2 then
- go(the frame + 1)
- else
- go(the frame - 1)
- end if
- end
-