Title: Why does this effect not work?
My guess is that that particluar effect doesn't work because you cannot fade device text.  Text in Flex is by default, device, meaning it uses device fonts, or native OS machine fonts.  If you were to embed the fonts for that Label, I be it'd work.
 
Therefore, use a Dissovle instead for text specific fades... or embed the fonts.
 
More context:
 
----- Original Message -----
Sent: Friday, December 09, 2005 8:29 PM
Subject: [flexcoders] Why does this effect not work?

Hi there,

Following up on the recent posting related to Flex effects, can anybody comment on why the following very simple code excerpt does not work? All I want to do is on click of the button fade the label from 0 to 1.

private function FadeIn():Void {
  var fx:Fade = new Fade(this.lbl);
  fx.fromAlpha = 0;
  fx.toAlpha = 1.0;
  fx.duration = 2000;
  fx.playEffect();
}

<mx:Label id="lbl" text="some text" />
<mx:Button label="Start Effect" click="FadeIn()"/>

What it should do:
Render the label.
Render the button.
Wait.
User clicks.
Label hides (alpha = 0).
Label slowly fades alpha to 1.

However: No fade at all happens.

Why?
Isn't this exactly how effects are supposed to work conceptually?

(Talking about Flex 2 Alpha 1 here.)

Best regards
RR
--
mobile: +49-(0)170-914-5495
email:   [EMAIL PROTECTED]




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to