Skip to main content
Participant
Sep 20, 2009 6:35 PM UTC
Question

how to select all in text layout framework?

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 is closed to new replies. Start a new post to keep the conversation going.

3 replies

Participant
Sep 22, 2009 7:36 AM UTC
   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

Translate
Inspiring
Sep 23, 2009 5:42 PM UTC

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

Translate
Adobe Employee
Sep 21, 2009 3:04 AM UTC

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

Translate