1 Reply Latest reply on Nov 15, 2007 12:25 PM by ntsiii

    Expandable/collapsible text control?

    pixeljuju
      I currently have some text which is part of an HBox:

      <mx:HBox>
      ...
      <mx:Text
      htmlText="{notesText}"
      width="100%" height="100%"/>
      </mx:HBox>

      The text can often be quite long and I'd like to be able to display just the first line of the text and provide a button ("expand/collapse notes") which would allow the user to expand or collapse the text field, i.e. to toggle back and forth between seeing the first line and all of the text.

      I am an absolute beginner with Flex with almost no clue as to how I would go about doing this. I am poring over the documentation now, but if anyone here can give me a push in the right direction I'd certainly appreciate the help. Thanks in advance for any suggestions.

      --James