Flex Gumbo中如何通过repeatInterval样式设置FxNumericStepper重复相同间隔的例子

By Minidxer | July 20, 2009

接下来的例子演示了Flex Gumbo中如何通过repeatInterval样式,设置FxNumericStepper增加按钮(increment button)与减少按钮(decrement button)重复相同间隔。

让我们先来看一下Demo可以点击这里察看源代码):


下面是完整代码(或点击这里察看):

Download: main.mxml
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FxApplication name="FxNumericStepper_repeatInterval_test"
  3.         xmlns="http://ns.adobe.com/mxml/2009"
  4.         backgroundColor="white">
  5.  
  6.     <Style>
  7.         FxNumericStepper #incrementButton,
  8.         FxNumericStepper #decrementButton {
  9.             repeatInterval: 500;
  10.         }
  11.     </Style>
  12.  
  13.     <FxNumericStepper id="numericStepper"
  14.             horizontalCenter="0"
  15.             verticalCenter="0" />
  16.  
  17. </FxApplication>
代码:Peter deHaan 翻译/整理/编译:中文Flex例子

Topics: FxNumericStepper, Gumbo | No Comments » | Tags: , , ,

Search Posts