#!/bin/sh # MetaCard 2.4 stack # The following is not ASCII text, # so now would be a good time to q out of more exec mc $0 "$@" rangeSlider @ 1 \ Range Slider U Lucida Grande U Lucida Grande U Lucida Grande U Lucida Grande U Osaka,Japanese U Geneva cREVGeneral stackfileversion 2.7 Pon moveTriangle pLeft,pMeter,pRight,pFld,pRange,x,y if not the uAllowDrag of the target then exit moveTriangle put height of image pMeter into H if the target contains "Left" then --//Left or Right//--- set the loc of the target to min(item 1 of the loc of btn pRight-20,max(x,left of image pMeter)),\ min(bottom of image pMeter-2,max(y,top of image pMeter+ H)) else set the loc of the target to min(right of image pMeter,max(x,item 1 of the loc of btn pLeft + 20)),\ min(bottom of image pMeter -2,max(y,top of image pMeter+ H)) end if set the loc of fld pFld to item 1 of the loc of the target,item 2 of the loc of the target + 16 set the rect of grc pRange to item 1 of the loc of btn pLeft, item 2 of the rect of btn pLeft +3, \ item 1 of the loc of btn pRight, item 4 of the rect of btn pLeft -2 end moveTriangle on putTheNumber put char 2 of word 2 of the target into myFirstName --//L or R //---- put char 2 to 4 of word 2 of the name of the owner of the target into ownerName --//Group name is Red //-- put (item 1 of the loc of the target - item 1 of the rect of image (ownerName &"Meter")) into fld (myFirstName &"Fld") set the uAllowDrag of the target to false end putTheNumber cREVGeneral scriptChecksum ao_!hcL; bookmarks handlerList moveTriangle putTheNumberscriptSelection char 858 to 857prevHandler moveTriangletempScript script
on moveTriangle pLeft,pMeter,pRight,pFld,pRange,x,y
if not the uAllowDrag of the target then exit moveTriangle
put height of image pMeter into H
if the target contains "Left" then --//Left or Right//---
set the loc of the target to min(item 1 of the loc of btn pRight-20,max(x,left of image pMeter)),\
min(bottom of image pMeter-2,max(y,top of image pMeter+ H))
else
set the loc of the target to min(right of image pMeter,max(x,item 1 of the loc of btn pLeft + 20)),\
min(bottom of image pMeter -2,max(y,top of image pMeter+ H))
end if
set the loc of fld pFld to item 1 of the loc of the target,item 2 of the loc of the target + 16
set the rect of grc pRange to item 1 of the loc of btn pLeft, item 2 of the rect of btn pLeft +3, \
item 1 of the loc of btn pRight, item 4 of the rect of btn pLeft -2
end moveTriangle
on putTheNumber
put char 2 of word 2 of the target into myFirstName --//L or R //----
put char 2 to 4 of word 2 of the name of the owner of the target into ownerName --//Group name is Red //--
put (item 1 of the loc of the target - item 1 of the rect of image (ownerName &"Meter")) into fld (myFirstName &"Fld")
set the uAllowDrag of the target to false
end putTheNumber
Red i` J !, 9 cREVGeneral revUniqueID 1197306496343 bookmarks handlerList tempScript prevHandler scriptSelection char 1 to 0script RedMeter b ' TPNG IHDR 1 gAMA OX2 tEXtSoftware Adobe ImageReadyqe<