Welcome

首页 / 软件开发 / Flex / Flex中如何控制鼠标移出RichTextEditor编辑范围外的时候隐藏其工具栏

Flex中如何控制鼠标移出RichTextEditor编辑范围外的时候隐藏其工具栏2011-07-11 blog.minidx.com MinidxerFlex中如何控制鼠标移出RichTextEditor编辑范围外的时候隐藏其工具栏的完整代码:

Download: main.mxml

1.<?xml version="1.0" encoding="utf-8"?>
2.<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
3. layout="vertical"
4. verticalAlign="middle"
5. backgroundColor="white">
6.
7. <mx:RichTextEditor id="richTextEditor"
8. title="RichTextEditor"
9. status="version {richTextEditor.getStyle("version")}"
10. showControlBar="false"
11. cornerRadius="0"
12. width="100%"
13. height="100%"
14. rollOut="richTextEditor.showControlBar = false;"
15. rollOver="richTextEditor.showControlBar = true;" />
16.
17. <mx:Label text="Roll over the RichTextEditor control above to toggle the control bar." />
18.
19.</mx:Application>