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

main.mxml

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

你可能感兴趣的:(xml,Flex,Adobe)