您的位置:首页 > Web前端 > CSS

Flex Gumbo中如何通过textAlpha样式,设置TextGraphic透明度

2009-06-09 01:38 651 查看
main.mxml

<?xml version="1.0" encoding="utf-8"?>

<FxApplication name="TextGraphic_textAlpha_test"

xmlns="http://ns.adobe.com/mxml/2009">

<layout>

<BasicLayout />

</layout>



<Style>

@font-face {

src: url("assets/ARIAL.TTF");

fontFamily: "ArialEmbedded";

cff: true;

}



TextGraphic {

fontSize: 24;

}

</Style>



<HGroup left="10" top="10">

<Label text="textAlpha:" />

<FxHSlider id="slider"

minimum="0.0"

maximum="1.0"

value="1.0"

stepSize="0.1"

valueInterval="0.1"

liveDragging="true" />

</HGroup>



<Form id="form"

horizontalCenter="0"

verticalCenter="0">

<FormItem label="device:">

<Graphic>

<TextGraphic id="deviceTextGraphic"

textAlpha="{slider.value}"

fontFamily="Arial"

fontLookup="device"

width="300">

<text>The quick brown fox jumped over the lazy dog.</text>

</TextGraphic>

</Graphic>

</FormItem>

<FormItem label="embeddedCFF:">

<Graphic>

<TextGraphic id="embeddedTextGraphic"

textAlpha="{slider.value}"

fontFamily="ArialEmbedded"

fontLookup="embeddedCFF"

width="300">

<text>The quick brown fox jumped over the lazy dog.</text>

</TextGraphic>

</Graphic>

</FormItem>

</Form>



</FxApplication>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐