Re: [flexcoders] Re: Load Complete on tilelist

2008-07-31 Thread Daniel Gold
Not to mention that the itemRenderers created probably won't be created and
available in the same frame as the result from the service.

Since the Image controls are in an ItemRenderer, you should probably listen
for Complete as Alex said, and then dispatch a new Event that bubbles so you
can listen on the TileList for that event. I was going to suggest counting
your data items in the dataProvider and then counting down each time your
custom event handler is called, but if the TileList can scroll you only want
to listen for as many itemRenderers as the control created. Unless there's a
much easier way...

Whats the effect you're trying to achieve by ensuring all the images have
been loaded? I've seen a lot of TileLists with Image renderers that fade in
after being loaded.

On Thu, Jul 31, 2008 at 2:35 PM, Alex Harui <[EMAIL PROTECTED]> wrote:

>I assumed the images were also being externally loaded in response to
> the result from the server
>
>
>  --
>
> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
> Behalf Of *zyzzx00_99
> *Sent:* Thursday, July 31, 2008 11:17 AM
> *To:* flexcoders@yahoogroups.com
> *Subject:* [flexcoders] Re: Load Complete on tilelist
>
>
>
> Really? Why can't you just use the result event and set
> result=functionName on HTTPService?
>
> --- In flexcoders@yahoogroups.com , "Alex
> Harui" <[EMAIL PROTECTED]> wrote:
> >
> > You'l lhave to write that method yourself. Listen for "complete" events
> > from the image controls
> >
> >
> >
> > 
> >
> > From: flexcoders@yahoogroups.com  [mailto:
> flexcoders@yahoogroups.com ] On
> > Behalf Of David Gironella
> > Sent: Thursday, July 31, 2008 5:36 AM
> > To: flexcoders@yahoogroups.com 
> > Subject: [flexcoders] Load Complete on tilelist
> >
> >
> >
> > I have a tilelist with a dataprovider from an httpservice. I each item
> > render I load an image.
> >
> >
> >
> > Exists some method to know when all images are complete loaded? I can
> > use some events on tilelist to know this.
> >
> >
> >
> > Thanks.
> >
> >
> >
> > Giro.
> >
>
>  
>


RE: [flexcoders] Re: Load Complete on tilelist

2008-07-31 Thread Alex Harui
I assumed the images were also being externally loaded in response to
the result from the server

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of zyzzx00_99
Sent: Thursday, July 31, 2008 11:17 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Load Complete on tilelist

 

Really? Why can't you just use the result event and set
result=functionName on HTTPService?

--- In flexcoders@yahoogroups.com 
, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> You'l lhave to write that method yourself. Listen for "complete"
events
> from the image controls
> 
> 
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com 
] On
> Behalf Of David Gironella
> Sent: Thursday, July 31, 2008 5:36 AM
> To: flexcoders@yahoogroups.com  
> Subject: [flexcoders] Load Complete on tilelist
> 
> 
> 
> I have a tilelist with a dataprovider from an httpservice. I each item
> render I load an image.
> 
> 
> 
> Exists some method to know when all images are complete loaded? I can
> use some events on tilelist to know this.
> 
> 
> 
> Thanks.
> 
> 
> 
> Giro.
>