Skip to main content
March 15, 2011
Question

Add Ruler to TLF editor

  • March 15, 2011
  • 1 reply
  • 892 views

Hi,

Please tell me how to add a Ruler to my TLF text editor.

Thanks

This topic has been closed for replies.

1 reply

Adobe Employee
March 16, 2011

We have an example that does this, you could look at that sample code and see if it helps. There's a recent blog entry on the samples, see http://blogs.adobe.com/tlf/2011/03/tlf-samples-now-on-sourceforge.html. The Flow application uses this, as does the TextLayoutEditor (the two are basically variations of each other). The code for the rulers is in the "rulers" folder in textLayout_ui project.

- robin

March 24, 2011

Thanks robin.

I downloaded textLayout_build.zip from http://sourceforge.net/projects/tlf.adobe/files/current/ and it was giving some errors when trying to run the TextLayoutEditor in samples. It seemed to be a TLF version problem. I am using Flash builder 4.

Then I copied the textLayout.swc from textLayout_build.zip -> lib to C:\Program Files\Adobe\Adobe Flash Builder 4\sdks\4.1.0\lib

Now it's working.