Thanks Stephen, that worked...this is what I did:

1. copied LucidaSansRegular.ttf file from jre\lib\fonts directory to
the directory holding my mxml file

2. added this to my mxml file:
   <mx:Style>
      @font-face { fontFamily:myEmbeddedFont;
src:url("LucidaSansRegular.ttf"); } 
   </mx:Style> 
3. added this:
         myLabel.setStyle("fontFamily","myEmbeddedFont");
         myLabel.setStyle("fontSize",14);

Now, I have another question; I wanted to show my text in red color;
fade out the color in 15 seconds (this part is working)..then, at the
end of the fadeOut period, show the text in 'green'.

exactly, how do I trigger the code that will change the text color to
green ??

Sanjay


 

--- In [email protected], "Stephen Gilson" <[EMAIL PROTECTED]> wrote:
> From the doc:
> 
> Note: To use the Fade effect with text, you must use an embedded font,
> not a device font. For more information, see Using Styles and Fonts.
> 
> You can read more here:
> http://livedocs.macromedia.com/flex/15/flex_docs_en/00000590.htm
> 
> Stephen
>  
> 
> -----Original Message-----
> From: [email protected] [mailto:[EMAIL PROTECTED] On
> Behalf Of sanjayd
> Sent: Sunday, June 19, 2005 4:01 PM
> To: [email protected]
> Subject: [flexcoders] 'fade effect' question
> 
> folks, any idea why the label 'fading text' refuses to fade out ?
> Thanks in advance.
> 
>    <mx:Effect>
>       <mx:Fade name="Fade" alphaFrom="100" alphaTo="30"
> duration="2500"/>
>    </mx:Effect> 
> 
> 
>       <mx:VBox width="100%" height="100%">
>               <mx:Box direction="horizontal" borderStyle="solid"
> marginTop="5"
> marginBottom="5" marginLeft="1" marginRight="1"> ..
> ..
>                       <mx:Label text="fading text" showEffect="Fade"/>
>               </mx:Box>
> ..
> ..
> 
> 
> 
> 
> 
>  
> Yahoo! Groups Links





 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to