`
rkui12rkui
  • 浏览: 12379 次
最近访客 更多访客>>
社区版块
存档分类
最新评论

Changing the layout direction of a form item in Flex

 
阅读更多

  The following example shows how you can change the direction of a FormItem container in Flex by setting thedirection property to "horizontal" or "vertical".     FormItem { labelStyleName: myFormItemLabelStyleName; } .myFormItemLabelStyleName { fontWeight: bold; }    source="{Icons.AIR_ICON}" toolTip="Adobe AIR" /> source="{Icons.FLASH_ICON}" toolTip="Adobe Flash" /> source="{Icons.FLASH_PLAYER_ICON}" toolTip="Adobe Flash Player" /> source="{Icons.FLEX_ICON}" toolTip="Adobe Flex" />   source="{Icons.AIR_ICON}" toolTip="Adobe AIR" /> source="{Icons.FLASH_ICON}" toolTip="Adobe Flash" /> source="{Icons.FLASH_PLAYER_ICON}" toolTip="Adobe Flash Player" /> source="{Icons.FLEX_ICON}" toolTip="Adobe Flex" />    
  /** http://blog.flexexamples.com/2008/03/18/changing-t he-layout-direction-of-a-form-item-in-flex/ */ package { [Bindable] public class Icons { public function Icons() { } [Embed("assets/air_appicon-tn.gif")] public static var AIR_ICON:Class; [Embed("assets/fl_appicon-tn.gif")] public static var FLASH_ICON:Class; [Embed("assets/fl_player_appicon-tn.gif")] public static var FLASH_PLAYER_ICON:Class; [Embed("assets/fx_appicon-tn.gif")] public static var FLEX_ICON:Class; } } 
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics