<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body><div>I don't remember which video but one does show it. It's not difficult though once you understand the concepts. I create morphs with buttons to call methods of objects often to do tasks.<br></div>
<div> </div>
<div>The basic steps for making a button are:<br></div>
<div> </div>
<div>1) Drag a button from the factory window on top of the has tank morph.<br></div>
<div>2) Middle click the button and click 'set target'. This sets the target to the gas tank.<br></div>
<div>3) Drag the button off the tank.<br></div>
<div>4) Open an outliner for the button (right click, open outliner). Click the 'E' to get an evaluator. Run:<br></div>
<div>      'script: 'target addAnAtom'<br></div>
<div> </div>
<div>Now when you press the button it will call 'addAnAtom' on the target, that being the gas tank.<br></div>
<div> </div>
<div>I embed in a morph to create a row of buttons:<br></div>
<div> </div>
<div>1) Drag a row morph from the factory window to the desktop.<br></div>
<div>2) Drag the button onto the row morph. You'll need to right click and choose 'Grab' on the button to do this.<br></div>
<div>3) Right click on the button and choose "Embed in Morph below".<br></div>
<div> </div>
<div>Do this with multiple buttons to create a row of them.<br></div>
<div> </div>
<div> </div>
<div>On Thu, Mar 6, 2014, at 05:02 AM, <a href="mailto:spdegabrielle@gmail.com">spdegabrielle@gmail.com</a> wrote:<br></div>
<blockquote style="margin: 0px 0px 0px 4px;" type="cite"><div>













 

<span style="display:none"> </span>


<br></div>
<div style="position: relative; font-family: Arial,helvetica,clean,sans-serif; font-size: 13px;"><div style="z-index: 1; line-height: 1.22em;"><div style="font-family: Georgia; line-height: 1.22em;"><p style="margin: 0px 0px 1em; line-height: 1.22em;"><br></p><blockquote style="line-height: 1.22em; margin: 0px 0px 0px 4px;"><div style="line-height: 1.22em;">> An exercise for you would be to create some buttons that do these method calls (start, stop, addAnAtom) when clicked. You can them embed those buttons in a row morph. Then embed that row morph and the gas tank in a column morph to get a single "Gas Tank" widget with controls.<br></div>
</blockquote><div style="line-height: 1.22em;">I'm sure one of the videos on self show this  - does anyone know which one and at what time in the video it is shown?<br></div>
<p style="margin: 0px 0px 1em; line-height: 1.22em;"><br></p></div>
<div style="color: rgb(255, 255, 255); height: 0px; line-height: 1.22em;"><br></div>
</blockquote></body>
</html>