1 Reply Latest reply on Sep 3, 2007 4:04 AM by ThinkingProspects

    Displaying the text labels in vertical alignment format

    Mk Arjun Level 1
      Hi To All,

      I have an urgent requirement to display the button in vertical alignment style.
      when i tried to rotate the button ,button component is appearing in vertical style but the button label is disappearing.
      so please help me if any one knows.

      Thanks
      Mk Arjun.
        • 1. Re: Displaying the text labels in vertical alignment format
          ThinkingProspects
          Hi,

          To use the Rotate effect with text, you must use an embedded font, not a device font. So basically it won't work with just setting rotation property. You've got to :
          a) load the fonts from either .ttf file or .swf file,
          b) Create class for that
          c) Register the font on initialize

          Here is the sample code:

          initialize="Font.registerFont(myriad_font);">


          <mx:Script>
          <![CDATA[

          import flash.text.Font;

          [Embed("./assets/MyriadWebPro.ttf", fontName="MyMyriad")]
          public var myriad_font:Class;