2 Replies Latest reply on May 20, 2009 8:20 PM by Flex harUI

    Text in button

    jfb00 Level 3

      Hi All,

      Maybe this is a dummy question but I can't figure this out.

      how can I do multiple line text in a button? It is a property for this?




        • 1. Re: Text in button
          Gregory Lafrance Level 6

          You may have to use Text:


          <?xml version="1.0" encoding="utf-8"?>
          <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
                import mx.controls.Alert;
                private function clickFunc():void{
            <mx:Text text="Click Me Test" width="50" textAlign="center" 
              buttonMode="true" useHandCursor="true" click="clickFunc();"/>
          • 2. Re: Text in button
            Flex harUI Adobe Employee

            No property for it.  There is an example of how to do it on my blog (multiline button)


            Alex Harui

            Flex SDK Developer

            Adobe Systems Inc.

            Blog: http://blogs.adobe.com/aharui