Flex中如何通过horizontalDividerCursor样式给HDividedBox容器添加一个水平分割游标的例子
By Minidxer | October 11, 2008
接下来的例子演示了Flex中如何通过horizontalDividerCursor样式,给HDividedBox容器添加一个水平分割游标。
让我们先来看一下Demo(可以右键View Source或点击这里察看源代码):
下面是完整代码(或点击这里察看):
Download: main.mxml
- <?xml version="1.0" encoding="utf-8"?>
- <mx:Application name="HDividedBox_horizontalDividerCursor_test"
- xmlns:mx="http://www.adobe.com/2006/mxml"
- layout="vertical"
- verticalAlign="middle"
- backgroundColor="white">
- <mx:HDividedBox id="hDividedBox"
- horizontalDividerCursor="@Embed('assets/arrow_refresh.png')"
- width="100%"
- height="100%">
- <mx:HBox backgroundColor="haloGreen"
- width="100%"
- height="100%">
- </mx:HBox>
- <mx:HBox backgroundColor="haloBlue"
- width="100%"
- height="100%">
- </mx:HBox>
- </mx:HDividedBox>
- </mx:Application>
代码:Peter deHaan 翻译/整理/编译:中文Flex例子
Topics:
HDividedBox |
No Comments » |
Tags: HDividedBox, horizontalDividerCursor