Flex Gumbo中如何通过repeatInterval样式设置FxNumericStepper重复相同间隔的例子
By Minidxer | July 20, 2009
接下来的例子演示了Flex Gumbo中如何通过repeatInterval样式,设置FxNumericStepper增加按钮(increment button)与减少按钮(decrement button)重复相同间隔。
下面是完整代码(或点击这里察看):
Download: main.mxml
- <?xml version="1.0" encoding="utf-8"?>
- <FxApplication name="FxNumericStepper_repeatInterval_test"
- xmlns="http://ns.adobe.com/mxml/2009"
- backgroundColor="white">
- <Style>
- FxNumericStepper #incrementButton,
- FxNumericStepper #decrementButton {
- repeatInterval: 500;
- }
- </Style>
- <FxNumericStepper id="numericStepper"
- horizontalCenter="0"
- verticalCenter="0" />
- </FxApplication>
代码:Peter deHaan 翻译/整理/编译:中文Flex例子
Topics:
FxNumericStepper, Gumbo |
No Comments » |
Tags: decrementButton, Gumbo, incrementButton., repeatInterval