[flexcoders] Re: Vertical Labels
Yes rotated! --- In flexcoders@yahoogroups.com, Tom Chiverton [EMAIL PROTECTED] wrote: On Monday 03 Mar 2008, linko27 wrote: How can I make vertical labels (text) in flex? The text should be fliped! Do you mean rotated ? -- Tom Chiverton Helping to evangelistically restore low-risk methodologies on: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com.
Re: [flexcoders] Re: Vertical Labels
On Monday 03 Mar 2008, linko27 wrote: Yes rotated! Make sure it's using an embedded font, and then use something like the Rotate effect or style. -- Tom Chiverton Helping to continually scale professional data on: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. -- 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 * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * 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/
[flexcoders] Re: Vertical Labels
mx:Label rotation=90 text=thanks/ --- In flexcoders@yahoogroups.com, Tom Chiverton [EMAIL PROTECTED] wrote: On Monday 03 Mar 2008, linko27 wrote: Yes rotated! Make sure it's using an embedded font, and then use something like the Rotate effect or style. -- Tom Chiverton Helping to continually scale professional data on: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com.
RE: [flexcoders] Re: Vertical Labels
I have been using this class. It does not require embedding the fonts, just pass it the rotation attribute. Extended:RotatableLabel text=Inquiry Navigator rotation=-90 fontSize=10 fontWeight=bold / /** * Author: Lior Gonnen * Date: 17-Nov-2007 * * Please visit: http://liorgonnen.blogspot.com */ package org.pace2020.appbox.components { import flash.display.BitmapData; import flash.display.DisplayObject; import mx.controls.Label; /** * Use this Label class instead of the standard mx.controls.Label to allow text rotation * (using the 'rotation' property) without using embedded fonts! */ public class RotatableLabel extends mx.controls.Label { private var _labelBitmap : BitmapData = null; /** * updateDisplayList is used to draw a rotated bitmap of the label */ protected override function updateDisplayList(unscaledWidth : Number, unscaledHeight : Number) : void { super.updateDisplayList(unscaledWidth, unscaledHeight); // 1. Make sure that the width and the height are greater than zero, otherwise we have nothing to do. // 2. Make sure rotation is different than zero, otherwise the label will show normally // 3. Draw the label into a bitmap, and then draw it onto the label, since the label is rotated //the bitmap will be displayed rotated as well. Nice, ha? ;-) if (unscaledWidth 0 unscaledHeight 0 rotation != 0) { graphics.clear(); _labelBitmap = getBitmapData(this); if (_labelBitmap) { graphics.beginBitmapFill(_labelBitmap); graphics.drawRect(0, 0, unscaledWidth, unscaledHeight); graphics.endFill(); } } } /** * Create a bitmap from a displayObject * @param target The displayObject to draw * @return The drawn bitmap */ public static function getBitmapData(target : DisplayObject) : BitmapData { var bd : BitmapData = new BitmapData(target.width, target.height, true, 0.0); bd.draw(target); return bd; } } } From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of linko27 Sent: Monday, March 03, 2008 7:07 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Vertical Labels mx:Label rotation=90 text=thanks/ --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Tom Chiverton [EMAIL PROTECTED] wrote: On Monday 03 Mar 2008, linko27 wrote: Yes rotated! Make sure it's using an embedded font, and then use something like the Rotate effect or style. --
Re: [flexcoders] Re: Vertical Labels
On Monday 03 Mar 2008, Jerry DuVal wrote: I have been using this class. It does not require embedding the fonts, just pass it the rotation attribute. I think I was thinking of chart labels, oops. -- Tom Chiverton Helping to greatly participate low-risk services on: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. -- 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 * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * 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/