| <?xml version="1.0" encoding="utf-8"?>
<mx:Application
xmlns:mx="http://www.adobe.com/2006/mxml"
creationComplete="initApp()"
backgroundColor="0xFFFFFF"
>
<mx:Style>
@font-face {
src: url("C:\\TMP\\kirieji.ttf");
fontFamily: HGP;
fontWeight: normal;
unicodeRange: U+3041-U+30F6,U+2460-U+2473;
}
global {
font-family: HGP;
fontSize: 11px;
}
</mx:Style>
<mx:Script>
<![CDATA[
import mx.controls.*;
import mx.events.*;
import flash.filters.*;
// *****************************************************
// 初期化
// *****************************************************
private function initApp():void {
var arr2:Array = new Array();
var arr4:Array = new Array();
arr2 = txt2.filters;
arr4 = txt4.filters;
var ft2:BlurFilter = new BlurFilter(5.0,5.0,BitmapFilterQuality.HIGH);
var ft4:DropShadowFilter = new DropShadowFilter();
ft4.alpha = 0.4
arr2.push(ft2);
arr4.push(ft4);
txt2.filters = arr2;
txt4.filters = arr4;
b.x = a.x+2;
b.y = a.y+2;
}
]]>
</mx:Script>
<mx:HBox id="a"
backgroundColor="0xFFFFFF"
>
<mx:Label
id="txt"
text="あいうえお"
fontSize="60"
color="0x000000"
/>
</mx:HBox>
<mx:HBox id="c"
backgroundColor="0xFFFFFF"
>
<mx:Label
id="txt3"
text="あいうえお"
fontSize="60"
color="0x000000"
/>
</mx:HBox>
<mx:HBox id="d"
backgroundColor="0xFFFFFF"
>
<mx:Label
id="txt4"
text="あいうえお"
fontSize="60"
color="0x111111"
/>
</mx:HBox>
<mx:HBox id="b"
backgroundColor="0xFFFFFF"
backgroundAlpha="0.1"
>
<mx:Label
id="txt2"
text="あいうえお"
fontSize="60"
color="0x222222"
/>
</mx:HBox>
</mx:Application>
| |