/ Published in: ActionScript 3
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
package { import flash.display.Sprite; /** * @author sidneydekoning */ public class CheckBoxIcon extends Sprite { public function CheckBoxIcon( ) { uncheck( ); } public function check( ):void { graphics.clear( ); graphics.lineStyle( 1 ); graphics.beginFill( 0xFFFFFF ); graphics.drawRect( 0 , 0 , 15 , 15 ); graphics.endFill( ); graphics.lineTo( 15 , 15 ); graphics.moveTo( 0 , 15 ); graphics.lineTo( 15 , 0 ); } public function uncheck( ):void { graphics.clear( ); graphics.lineStyle( 1 ); graphics.beginFill( 0xFFFFFF ); graphics.drawRect( 0 , 0 , 15 , 15 ); } } }