radioitem.lzx
<library>
<class name="radioitem" extends="baselistitem">
<attribute name="_inside" value="false
" type="boolean"/>
<handler name="onmouseover">
this.setAttribute('frame', this.selected ? 3 : 2);
</handler>
<handler name="onmouseout">
this.setAttribute('frame', this.selected ? 3 : 1);
</handler>
<handler name="onmousin">
this._inside = true;
</handler>
<handler name="onmouseup">
this.setAttribute('frame', this.selected ? 3 : 1);
</handler>
<method name="setSelected" args="s">
this.selected = s;
if (this.onselect) this.onselect.sendEvent(this);
if (this.onselected) this.onselected.sendEvent(this);
this.setAttribute('frame', s ? 3 : 1);
</method>
<handler name="onmousedown">
this.setAttribute('frame', 3);
</handler>
</class>
</library>
Cross References
Classes
- <class name="radioitem" extends="baselistitem">