<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" height="100%">
    
<mx:Style>    
        TitleWindow    
        {        
                backgroundAlpha: 0.9;
                backgroundColor: #9199A4;        
                borderColor: #9199A4;        
                borderAlpha: 1.0;        
                borderStyle: "none";        
                borderThickness: 0;        
                paddingBottom: 0;        
                paddingLeft: 0;        
                paddingRight: 0;        
                paddingTop: 0;        
         }
     
</mx:Style>    
     
<mx:Script>
         
<![CDATA[    
             import mx.managers.*;    
             private function floatControlBar() : void    
             {        
                 rteControl.parent.removeChild(rteControl);        
                 rteControl.addChild(DisplayObject(rte.toolbar));        
                 rte.showControlBar=false;        
                 mx.managers.PopUpManager.addPopUp(rteControl, rte, false);    
             }
]]>
     
</mx:Script>    
     
<mx:RichTextEditor id="rte" htmlText="" headerHeight="5"         
         creationComplete
="floatControlBar()"/>    
    
<mx:TitleWindow id="rteControl" width="325" title="ToolBar"/>    
</mx:Application>

posted on 2007-01-16 22:16  FireYang  阅读(642)  评论(0编辑  收藏  举报