Just learning smalltalk &amp; squeak. One of the first things I wanted to try was to load text into a scroll morph at the press of a button.<br><br>I&nbsp; renamed the Scrolling Text morph scroll.<br>And I put the following code underneath button.
<br>Everything seems fine but the last line<br><br>The error I get back is that scroll is an unknown variable.<br><br>So my question is am I referencing the scroll morph correctly in the button script?<br><br>button<br>&nbsp;&nbsp; &nbsp;| stream data |
<br>&nbsp;&nbsp; &nbsp;Transcript show: &#39;hello&#39;.<br>&nbsp;&nbsp; &nbsp;<br>&quot;Read file into a string&quot;<br>&nbsp;&nbsp; &nbsp;stream _ FileStream fileNamed: &#39;test.txt&#39;.<br>&nbsp;&nbsp; &nbsp;data _ stream contentsOfEntireFile.<br>&nbsp;&nbsp; &nbsp;stream close.<br>&nbsp;&nbsp; &nbsp;Transcript show: data.
<br>&nbsp;&nbsp; &nbsp;scroll setCharacters: data.<br><br><br><br>Thanks in advance<br><br>Steve<br>