home *** CD-ROM | disk | FTP | other *** search
- property ancestor
- property LightButtons
- property LeftCardButton
- property RightCardButton
- property FlashButton
-
- property lightID
-
- on Birth me, theChannelObject, theName, thePageInfo
- set the ancestor of me to Birth( script "Master Page Template", theChannelObject, theName, thePageInfo, true, true )
-
- set the goBlack of me to true
-
- set lightID to "Left"
- set LightButtons to FindButton( me, "Lights" )
- TurnRadioButtonOn( LightButtons, lightID, false )
-
- set LeftCardButton to FindButton( me, "LCard" )
- set RightCardButton to FindButton( me, "RCard" )
- set FlashButton to FindButton( me, "Flashf" )
-
- MoveVVF( Point( -50, -16 ), false )
- Show me
- return me
- end
-
-
- on ChangePage me, theElementID, theValue1, theValue2
- case theElementID of
- #Light:
- set lightID to theValue1
- show me
-
- #LeftCard:
- Show me
-
- #RightCard:
- Show me
-
- #Flash:
- if the name of FlashButton = "flashf" then
- set the name of FlashButton to "flasho"
- else
- set the name of FlashButton to "flashf"
- end if
- SetState( FlashButton, "On" )
- Show me
- end case
- ChangePage( the ancestor of me, theElementID, theValue1, theValue2 )
- end
-
- on BuildImageName me
- set theImageName to "W1_" & char 1 of lightID
- if lightID = "right" then
- if IAmOn( RightCardButton ) then
- put "L" after theImageName
- end if
- if IAmOn( LeftCardButton ) then
- put "R" after theImageName
- end if
- else
- if IAmOn( LeftCardButton ) then
- put "L" after theImageName
- end if
- if IAmOn( RightCardButton ) then
- put "R" after theImageName
- end if
- end if
- if the name of FlashButton = "flasho" then
- put "F" after theImageName
- end if
- return theImageName
- end
-
-