<span class="gmail_quote"><br><br></span>Just learning smalltalk & 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 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> | stream data |
<br> Transcript show: 'hello'.<br> <br>"Read file into a string"<br> stream _ FileStream fileNamed: 'test.txt'.<br> data _ stream contentsOfEntireFile.<br> stream close.<br> Transcript show: data.
<br> scroll setCharacters: data.<br><br><br><br>Thanks in advance<br><br>Steve<br>