<Paramname="Begin Routine"updates="constant"val="scroll = 0&#10;lines = scrollText.text.split('\n')&#10;# If you can't see all your text, &#10;# replace the following line with &#10;# maxScroll = x where x is the number&#10;# of missing lines.&#10;maxScroll = 0&#10;for line in lines:&#10; maxScroll += math.ceil(len(line)*fontSize/screenRatio)&#10;&#10;viewAll=0&#10;dragging=0&#10;moving=0"valType="extendedCode"/>
<Paramname="Begin Routine"updates="constant"val="scroll = 0&#10;lines = scrollText.text.split('\n')&#10;# If you can't see all your text, &#10;# replace the following line with &#10;# maxScroll = x where x is the number&#10;# of missing lines, or negative numbers&#10;# to remove blank lines.&#10;maxScroll = 0&#10;for line in lines:&#10; maxScroll += math.ceil(len(line)*fontSize/screenRatio)&#10;&#10;viewAll=0&#10;dragging=0&#10;moving=0"valType="extendedCode"/>
<Paramname="Begin JS Routine"updates="constant"val="maxScroll +=round(.6/fontSize);&#10;maxScroll -=73;&#10;//.04 => 39 but needs to be 20&#10;//.03 => 52&#10;//.02 => 79 but needs to be 99&#10;scrollText.setAlignHoriz('left');&#10;scrollText.setAlignVert('top');"valType="extendedCode"/>