Layout best practices with TLF
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!
