Flex中如何利用skin样式修改DateField中默认的日历图标的例子
By Minidxer | January 19, 2009
接下来的例子演示了Flex中如何利用skin样式,修改DateField中默认的日历图标。
让我们先来看一下Demo(可以右键View Source或点击这里察看源代码):
下面是完整代码(或点击这里察看):
Download: main.mxml
- <?xml version="1.0" encoding="utf-8"?>
- <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
- layout="vertical"
- verticalAlign="top"
- backgroundColor="white">
- <mx:Style>
- DateField {
- skin: Embed("clock_add.png");
- /* null the skins defined in default.css */
- upSkin: ClassReference(null);
- overSkin: ClassReference(null);
- downSkin: ClassReference(null);
- disabledSkin: ClassReference(null);
- }
- </mx:Style>
- <mx:DateField id="dateField" />
- </mx:Application>
代码:Peter deHaan 翻译/整理/编译:中文Flex例子
Topics:
DateField |
No Comments » |
Tags: DateField, Skin