home *** CD-ROM | disk | FTP | other *** search
- property ancestor
- property LensButtons
- property currentLens
-
- on Birth me, thePageChannels, thePageName, thePageInfo
- set the ancestor of me to Birth( script "Master Page Template", thePageChannels, thePageName, thePageInfo, true, true )
-
- set the subject of me to "L3"
- set LensButtons to FindButton( me, "LensButtons" )
- TurnRadioButtonOn( LensButtons, GetCameraValue( #Lens ), false )
- set currentLens to GetCameraValue( #Lens )
-
- Show me
- return me
- end
-
- on CameraChanged me, theElementID, theNewValue
- if theElementID = #Lens then
- set currentLens to GetCameraValue( #Lens )
- TurnRadioButtonOn( LensButtons, currentLens )
- end if
- Show me
- end
-
- on BuildImageName me
- set theImageName to the subject of me & "_" & currentLens
- --put "ImageName" && theImageName
- return theImageName
- End
-
- on BuildGraphicName me
- set theGraphicName to "Cone_" & currentLens
- --put "GraphicName" && theGraphicName
- return theGraphicName
- End
-
-