--- In flexcoders@yahoogroups.com, "Amy" <[EMAIL PROTECTED]> wrote:
>
> --- In flexcoders@yahoogroups.com, "giopaia" <giopaia@> wrote:
> >
> > --- In flexcoders@yahoogroups.com, "Amy" <amyblankenship@> wrote:
> 
> > > > Any idea how to avoid the freezing problem?
> > > 
> > > Have you tried setting includeInLayout to false on the TileList 
> until 
> > > after the transition is finished?
> > > 
> > > HTH;
> > > 
> > > Amy
> > >
> > 
> > 
> > In this way I'm obliged to create all instances of the tilelists
> > before entering the states they are part of...
> > and it is a bit too much in terms of things to download...
> > but for now it works... and really well, the movement now it's 
> smooth.
> > When I have time I'll try to dive into it to optimize it.
> 
> I would think if you don't specify the dataProvider or itemRenderer 
> of the TileList until you're ready to use the TileList, it shouldn't 
> be that expensive to create.
> 
> HTH;
> 
> Amy
>

If you separate the creation of the tilelist 
from the dataProvider initialization things are
more manageable but...
what's expensive in my tests is the creation...
not the initialization of data...
So I still have to create the TileList container
and the TileList itself with the application, if
I create it later than I'm sure to get have movement
freezing when transitions starts...
For the data initialization part it really depends on
two things here:
- number of items in the list
- how fast is the download of the contents (really fast
download freezes movements, it seems like it compresses
initialization of many itemrenderers in a small time)

So solution for now is:
- create the tilelist container and tilelist at startup... 
(even if it's almost empty this avoids the freezing later...)
- use visible and includeInLayout properties to visualize it later
- initialize the dataProvider after (no problem if not too much items...) 


If there are lots of items you need to be sure that no transition is
going to happen... Only if you are sure about that, then obviously you
can do creation, initialization or both because nothings going to be
freezed...


This is what I've gathered through my experiments
but I can surely do things wrong and 
I'm surely not a guru

anyone confirms this results
thanks in advance
Gio





Reply via email to