(Probably a noobish question but...) I am trying to write a custom component which essentially contains a rather large table (at the largest, it should be 800 x 35 fields, of which only up to 20 x 10 is visible at a time). I was wondering if anyone could give me some pointers/advices how to do that in optimal way.
What am I using now: component extends UIComponent
, I have a custom scroll-bar and use a new spark.components.Label
as a text container for each field in the table. I put the labels inside another UIComponent
, so I can mask label edges outside the display area. I have tried:
Labels
, the component becomes a bit laggy.Worker
and want it to return an UIComponent
with the table drawn, while the user can continue interacting with other parts of the component.
So here come my questions:
UIComponent
using MessageChannel
. Is such a transfer using MessageChannel
possible in the first place or should I use alternative approach?UIComponent
. If so, maybe someone could refer me to a nice tutorial or guide how to do this?Thanks for the help and let me know if you need any additional info.
-Vil
Well, it took me a while to re-write the code but ended up doing what @BotMaster suggested (or at least my work was in that direction). So now:
ArrayCollection
-s. Than, upon scrollbar update:
ArrayCollection
-s, containing unused elements.ArrayCollection
-s, adjust their text and position an put them back in display list.The scrolling now is much smoother than before.