I Tried that too with no luck:

:(



<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"; 
layout="absolute" creationComplete="init()">    

        <mx:Style>

                @font-face {
                src:url('./style/fonts/micross.ttf');
                fontFamily: micross;
                fontWeight: normal;
                fontStyle: normal;
                }
                @font-face {
                src:url('./style/fonts/mattbats.ttf');
                fontFamily: mattbats;
                fontWeight: normal;
                fontStyle: normal;
                }
                @font-face {
                src:url('./style/fonts/mexacali.ttf');
                fontFamily: mexacali;
                fontWeight: normal;
                fontStyle: normal;
                }
                
                 
                
        </mx:Style>
                                
        <mx:RichTextEditor id="rte" title="RichTextEditor"
        width="500"              
                text="Enter text into the RichTextEditor control, 
then click a button to display your text as plain text, or as HTML-
formatted text."/>               
                                
                 
        <mx:Script>
                <![CDATA[
                        
                        private function init():void
                        {                       
                                rte.fontFamilyArray = 
["moonie","mattbats","mexacali"];                               
                        }
                        
                        
                ]]>
        
        </mx:Script>
        
        
        
        
</mx:Application>



Help .....

Reply via email to