现在的位置: 首页 > 综合 > 正文

Flex Gumbo中如何通过textRotation样式,设置TextGraphic文字旋转方向

2014年01月19日 ⁄ 综合 ⁄ 共 720字 ⁄ 字号 评论关闭

 main.mxml

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FxApplication name="TextGraphic_textRotation_test"
  3.         xmlns="http://ns.adobe.com/mxml/2009">
  4.     <layout>
  5.         <BasicLayout />
  6.     </layout>
  7.  
  8.     <Declarations>
  9.         <Array id="arr">
  10.             <Object label="auto" />
  11.             <Object label="rotate0" />
  12.             <Object label="rotate90" />
  13.             <Object label="rotate180" />
  14.             <Object label="rotate270" />
  15.         </Array>
  16.     </Declarations>
  17.  
  18.     <Form>
  19.         <FormItem label="textRotation:">
  20.             <ComboBox id="comboBox"
  21.                     dataProvider="{arr}" />
  22.         </FormItem>
  23.     </Form>
  24.  
  25.     <TextGraphic id="textGraphic"
  26.             text="{Capabilities.version}"
  27.             textRotation="{comboBox.selectedItem.label}"
  28.             horizontalCenter="0"
  29.             verticalCenter="0" />
  30.  
  31. </FxApplication>

抱歉!评论已关闭.