Skip to main content
Participant
September 20, 2009
Question

how to select all in text layout framework?

  • September 20, 2009
  • 2 replies
  • 1020 views

hi

       i have change the font size and font family in total text layout.but textlayout property is mouse selection area to be change the font size and font family and etc.how can possible in total text area should be selected

This topic has been closed for replies.

2 replies

Participant
September 22, 2009
   IEditManager(textFlow.interactionManager).selectAll();

it is not working but display the error

"1061: Call to a possibly undefined method selectAll through a reference with static type flashx.textLayout.edit:IEditManager."

please clear the doubt

felix christopher

Adobe Employee
September 23, 2009

Remove all the casts - selectAll is in the ISelectinmanager interface.

textFlow.interactionManager.selectAll()

This API was added at some point so it may not be in your version of the framework.

RIchard

Adobe Employee
September 21, 2009

As a user, you can select all by clicking once on the text, and then doing control-A or cmd-A. This requires that your TextFlow have an interactionManager that is a SelectionManager or an EditManager. If you are trying to do it programmatically, you can call:

    ISelectionManager(textFlow.interactionManager).selectAll();

I hope I have understood your question correctly.

Thanks!

- robin