<Paramname="Begin Routine"updates="constant"val="scroll = 0&#10;lines = scrollText.text.split('\n')&#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.&#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"/>