<canvas height="40">
<simplelayout/>
<button name="eventSender" onmouseover="this.setAttribute('avalue', this.avalue + 10)" onmouseout="this.setAttribute('avalue', this.avalue + 5)">
<attribute name="avalue" value="0
"/>
</button>
<view bgcolor="red" width="20" height="20">
// Handle the implicit `onavalue` event of the `eventSender` button
<handler name="onavalue" reference="eventSender" args="v">
this.setAttribute('x' , v);
</handler>
</view>
</canvas>