[flexcoders] Flex B3 - Label's fontSize, fontWeight not available via Actionscript?

2006-05-16 Thread willchapm



An mx:Label's font attributes are notavailbale in Actionscript in Beta 
3. I'm using:

mx:Label id=sig fontWeight=bold fontSize=20

I'm trying to change the font size and weight via actionscript at 
runtime:

this.serial.fontSize = 8;

However, I can't see the attributes in FlexBuilder. When I try to 
override it and set them myself, I get:

Access of possibly undefined property fontSize through a reference 
with static type mx.controls:Label

What am I doing wrong, or is this a Beta 3 thing?

---Will









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





  




  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  












[flexcoders] Re: Flex B3 - Label's fontSize, fontWeight not available via Actionscript?

2006-05-16 Thread willchapm



Thanks, TH. That worked like a champ!

--- In flexcoders@yahoogroups.com, Tim Hoff [EMAIL PROTECTED] wrote:

 You can use setStyle:
 
 sig.setStyle(fontWeight, bold);
 
 TH
 
 
 --- In flexcoders@yahoogroups.com, willchapm willchapm@ wrote:
 
  An mx:Label's font attributes are notavailbale in Actionscript 
in 
 Beta 
  3. I'm using:
  
  mx:Label id=sig fontWeight=bold fontSize=20
  
  I'm trying to change the font size and weight via actionscript 
at 
  runtime:
  
  this.serial.fontSize = 8;
  
  However, I can't see the attributes in FlexBuilder. When I try 
to 
  override it and set them myself, I get:
  
  Access of possibly undefined property fontSize through a 
 reference 
  with static type mx.controls:Label
  
  What am I doing wrong, or is this a Beta 3 thing?
  
  ---Will
 











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





  




  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











[flexcoders] Flex 2.0 : mx:Image - How do I smooth it during/after scaling?

2006-04-28 Thread willchapm



Is there a simple way to set the smoothing on an mx:Image in Flex2?

I have an mx:Image on my canvas with the width set to 100%. The 
source is a png file. When the canvas is scaled, the image is scaled 
up or down, but it looks jaggy. I am only looking for a smooth 
interpolatation here.

I looked for an attribute on the mx:Image to set the smoothing, but I 
can only find it on the Bitmap class. 

If it is only available on the Bitmap class, can I access my Image's 
bitmap (data?) and set it there?

Thanks,
---Will










--
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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











[flexcoders] SVG as Image source at runtime in Flex 2.0?

2006-04-25 Thread willchapm



In Beta2, I can only use an SVG as an embedded source for an Image.

I'd like to be able to set an Image source to an SVG
URL at runtime.

Will this be possible in a later beta, or in the
shipping version of Flex?

Thanks,
---Will Chapman










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





  




  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.