context.drawImage() just draws the image (native js canvas)<div>something.draw() draws an image, a shape or a button (karma js)</div><div><br></div><div>b = k.button(x,y, width, height);<br>b.onClick = function() {</div><div>
alert("clicked");</div><div>}</div><div><br></div><div>:)</div><div><div class="gmail_quote">2009/8/24 Bryan Berry <span dir="ltr"><<a href="mailto:bryan@olenepal.org">bryan@olenepal.org</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hey subzero,<br>
<br>
I am trying to add a reset button to adding_up_to_10. So far i have used<br>
context.drawImage()<br>
<br>
I can't figure out how to add an event listener for the 'click' event to<br>
the Reset button. I saw that you added events to the buttons in<br>
quadrilaterals lesson. I have looked at your code but I can't make head<br>
or tails of it. Can you advise?<br>
<br>
tks<br>
<font color="#888888"><br>
--<br>
Bryan W. Berry<br>
Technology Director<br>
OLE Nepal, <a href="http://www.olenepal.org" target="_blank">http://www.olenepal.org</a><br>
<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Felipe López Toledo<br>
</div>