"1.0" encoding="utf-8"?>
"http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" min955" min600">
[CDATA[
protected function button1_clickHandler(event:MouseEvent):void
{
// TODO Auto-generated method stub
this.lbText.setStyle("fontFamily", "SimSun");
this.lbText1.setStyle("fontFamily", "SimSun");
}
protected function button2_clickHandler(event:MouseEvent):void
{
// TODO Auto-generated method stub
this.lbText.setStyle("fontFamily", "SimHei");
this.lbText.setStyle("fontFamily", "SimHei");
}
protected function button3_clickHandler(event:MouseEvent):void
{
// TODO Auto-generated method stub
this.lbText.setStyle("fontFamily", "FangSong_GB2312");
this.lbText1.setStyle("fontFamily", "FangSong_GB2312");
}
protected function button4_clickHandler(event:MouseEvent):void
{
// TODO Auto-generated method stub
this.lbText.setStyle("fontFamily", "KaiTi_GB2312");
this.lbText1.setStyle("fontFamily", "KaiTi_GB2312");
}
protected function button5_clickHandler(event:MouseEvent):void
{
// TODO Auto-generated method stub
this.lbText.setStyle("fontFamily", "微软雅黑");
this.lbText1.setStyle("fontFamily", "微软雅黑");
}
]]>
</fx:Script>
</fx:Declarations>
"lbText" x="96" y="67" text="mx:大同市朔州市忻州市太原市-----良 轻度污染"
fontSize="14" />
"lbText1" x="96" y="100" text="s:大同市朔州市忻州市太原市-----良 轻度污染"
fontSize="14" />
"4" y="3" label="宋体" click="button1_clickHandler(event)" />
"82" y="3" label="黑体" click="button2_clickHandler(event)"/>
"167" y="3" label="仿宋" click="button3_clickHandler(event)"/>
"245" y="3" label="楷体" click="button4_clickHandler(event)"/>
"350" y="3" label="微软雅黑" click="button5_clickHandler(event)"/>
</s:Application>