Skip to main content
Participant
January 17, 2015
Question

Layout best practices with TLF

  • January 17, 2015
  • 1 reply
  • 785 views

Hello everybody.. i hope someone can give me a tip on a mobile App i'm developing.

When pressing a button, i have to refresh a screen which contains 40+ clips.

I evaluate an array, and for each entry i call a function to create the relative item.

Basically i:

- create new instance from library

- resize it to fit the screen size

- replace a movieclip inside the instance with a TLF

- create a bitmapdata

- drawWithQuality of the instance (using a matrix)

- create bitmap

- set the bitmap position

- add the bitmap to the holder movieclip

This routine seems very slow (8-10 seconds to refresh), i guess a problem is given by the TLF which is quite heavy, but maybe i'm also doing something wrong with the logic..

Any suggestion?

Thanks!

This topic has been closed for replies.

1 reply

User Unknow
Legend
January 19, 2015

TLF is deprecated. Don't use it.

Inspiring
January 19, 2015

Anton Azarov but TLF has useful features than classic TextField.

For example vertical align, column support, rtl languages support ect.

I don't understand why Adobe deprecated it.

Have you any suggestion for this features instead of TLF?

thanks.