ITeye博客

flex LinkButton使用

yaoweinan · 2011-07-01 15:01 · flex · Web前端 · Markdown

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <mx:Application name="LinkButton_labelPlacement_test"
  3. xmlns:mx="http://www.adobe.com/2006/mxml"
  4. layout="vertical"
  5. verticalAlign="middle"
  6. backgroundColor="white">
  7. <mx:Script>
  8. <![CDATA[
  9. import mx.controls.ButtonLabelPlacement;
  10. ]]>
  11. </mx:Script>
  12. <mx:Array id="arr">
  13. <mx:String>{ButtonLabelPlacement.LEFT}</mx:String>
  14. <mx:String>{ButtonLabelPlacement.RIGHT}</mx:String>
  15. <mx:String>{ButtonLabelPlacement.TOP}</mx:String>
  16. <mx:String>{ButtonLabelPlacement.BOTTOM}</mx:String>
  17. </mx:Array>
  18. <mx:ApplicationControlBar dock="true">
  19. <mx:Form styleName="plain">
  20. <mx:FormItem label="labelPlacement:">
  21. <mx:ComboBox id="comboBox"
  22. dataProvider="{arr}"
  23. selectedIndex="1" />
  24. </mx:FormItem>
  25. </mx:Form>
  26. </mx:ApplicationControlBar>
  27. <mx:LinkButton id="linkButton"
  28. label="LinkButton"
  29. labelPlacement="{comboBox.selectedItem}"
  30. icon="@Embed('assets/LinkButton.png')" />
  31. </mx:Application>

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。