richtexteditor:Flex中如何控制鼠标移出RichTextEditor编辑范围外的时候隐藏其工具栏的例子

  接下来例子演示了Flex中如何控制鼠标移出RichTextEditor编辑范围外时候隐藏其工具栏

<?xml version="1.0" encoding="utf-8"?>
<mx:Applicationxmlns:mx="http://www.adobe.com/2006/mxml"
    layout="vertical"
    verticalAlign="middle"
    backgroundColor="white">
  
  <mx:RichTextEditorid="richTextEditor"
      title="RichTextEditor"
      status="version {richTextEditor.getStyle('version')}"
      showControlBar="false"
      cornerRadius="0"
      width="100%"
      height="100%"
      rollOut="richTextEditor.showControlBar = false;"
      rollOver="richTextEditor.showControlBar = true;"/>
  
  <mx:Labeltext="Roll over the RichTextEditor control above to toggle the control bar." />
  
</mx:Application>


Tags:  flex3 flexbuilder flex例子 richtexteditor

延伸阅读

最新评论

发表评论