キラ文字

キラ文字を作成するプログラムを作ってみました。
デコメとかの素材にできるかも?
こんな感じ
http://moeten.info/flex/20080924_kiramojiTest/bin-release/main.html

プログラムは簡単でテキストボックス bitmap draw して画像をペタペタ貼ればできあがり。
ソースは右クリックかこちら

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
    backgroundAlpha="1" backgroundColor="0xffffff"
    backgroundGradientAlphas="[1,1]" backgroundGradientColors="[0xffffff,0xffffff]"
    layout="absolute">
<mx:Script>
<![CDATA[
import mx.controls.Image;
[Embed(source='icon.png')]private var myIcon2:Class;
private var bd:BitmapData;
private function drawTxt():void{
    myCanvas.removeAllChildren();
    bd = new BitmapData( myText.width , myText.height );
    bd.draw( myText );
    for( var i:int = 0 ; i < bd.width ; i += 2 ){
        for( var j:int = 0 ; j < bd.height ; j += 2 ){
            if( bd.getPixel( i , j ) != 0xffffff ){
                var im:Image = new Image();
                im.width  = 30;
                im.height = 30;
                im.source = "03_003.png";
                im.x = i * 10 + 30;
                im.y = j * 10 ;
                myCanvas.addChild( im );
            }
        }
    }
}
]]>
</mx:Script>
<mx:Style>
HScrollBar {
   cornerRadius: 16;
   highlightAlphas: 1, 1;
   fillAlphas: 0.79, 0.64, 0.48, 0.33;
   fillColors: #ff00cc, #cc3399, #ff66cc, #ff6699;
   trackColors: #cc66ff, #ffccff;
   themeColor: #cc3366;
   borderColor: #cc00cc;
}
</mx:Style>
<mx:Canvas id="myCanvas" width="100%" height="439" y="121">
</mx:Canvas>
<mx:Canvas x="10" y="10" width="555" height="92" cornerRadius="10" borderThickness="3" borderStyle="solid" borderColor="0xffccff" dropShadowColor="0x000000" dropShadowEnabled="true">
    <mx:TextInput id="myText" x="19.5" y="24" text="(*^_^*)ノ" enter="drawTxt()"
        width="318" height="43" fontSize="30"
        borderThickness="0" borderStyle="solid"/>
    <mx:Button x="345.5" y="23" label="キラ文字" height="43" width="190" fontSize="30"
        click="drawTxt()"/>
    <mx:Label x="10" y="5" text="入力文字"/>
</mx:Canvas>
</mx:Application>