Well I have done some testing and well, I see what you are saying. There is no way to test the target or currentTarget because they point to the List.
I added that event listener to the LayoutManager's instance, it came down to two calls. There has to be a way to know this.
I also checked the updateCompletePendingFlag of the List, this offers no help either because after the event is broadcast, it switches it to false again by the LayoutManager just after it loops through the complete queue.
For now, I am out of ideas, Adobe?
Peace, Mike
On 6/19/06, Michael Schmalle <[EMAIL PROTECTED]> wrote:
JL,
Have you test the event's currentTarget property for the actuall list?
When the LayoutManager rolls through it's updateCompleteQueue, it goes backwards, children to parent.
I would think you could check for the base components instance.
If you find out that you cannot, I don't understand what is going on by looking at the LayoutManager. It seems pretty simple.
Peace, Mike
PS show me some code so I can try what you are doing! :)
On 6/19/06, Jean-Luc ESSER <[EMAIL PROTECTED] > wrote:
Well i tried that, and it looks like it is fired several times during the population of the List.So i have no way of knowing when it is fired for the last time, that is when the last item has been rendered !Or maybe i did not put the listener at the correct place.I'll keep trying.Best,JL----- Original Message -----From: Michael SchmalleSent: Monday, June 19, 2006 3:25 PMSubject: Re: [flexcoders] [To Michael Schmalle] Rendered from dataProvider ?Oh yeah,
Add the listener right before you change the dataProvider, remove it when the actual handler fires for the UPDATE_COMPLETE event.
Peace, Mike
On 6/19/06, Michael Schmalle <[EMAIL PROTECTED]> wrote:Hi,
Well, I am to to up to speed on the deep workings of the ListBase and List *yet* but, changing the dataProvider is connected to updateDisplayLit().
That being said, I would say try;mx.events.FlexEvent.UPDATE_COMPLETE
"Dispatched when an object has had its commitProperties, measure, and updateDisplayList called (if needed).. "
Now looking at the UIComponent, I am pretty sure that is it. BTW, thanks for this question becasue that is a very important event!
Ok, double on that, LayoutManger says FlexEvent.UPDATE_COMPLETE ;-)
Peace, Mike
On 6/19/06, Jean-Luc ESSER <[EMAIL PROTECTED] > wrote:Hi Mike,Yes i mean an event that signifies everything has been drawn.I mean if i have an image to show in the itemRenderers, i want to know when the data has been received, image has been loaded, itemRenderer has been renderered, and the List has finished sizing and showing all items.Best,JL----- Original Message -----From: Michael SchmalleSent: Monday, June 19, 2006 1:04 PMSubject: Re: [flexcoders] [To Michael Schmalle] Rendered from dataProvider ?Hi,
Yeah I remeber that post tit was in relation to setting the height based on rows.
I remember Manish said the rowHeight property and I said calculateHeight().
You rquestion is alittle nebulus, do you mean an event that signifies everything has been drawn?
Or measurements?
Peace, Mike
On 6/19/06, Jean-Luc ESSER <[EMAIL PROTECTED] > wrote:Michael, i saw one of your posts where you said :" Once you have established that the list has been rendered from the dataProvider "I assume you mean when the List has finished working with its dataProvider (including finished drawing its itemRenderers with their data).If so, how would you do that ?Best,Jean-Luc.--
What goes up, does come down.--
What goes up, does come down.
--
What goes up, does come down.
--
What goes up, does come down.
--
What goes up, does come down. __._,_.___
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
Web site design development Computer software development Software design and development Macromedia flex Software development best practice
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
__,_._,___
- Re: [flexcoders] [To Michael Schmalle] Rendered from data... Michael Schmalle
- Re: [flexcoders] [To Michael Schmalle] Rendered from... Michael Schmalle
- Re: [flexcoders] [To Michael Schmalle] Rendered ... Jean-Luc ESSER
- Re: [flexcoders] [To Michael Schmalle] Rende... Michael Schmalle
- Re: [flexcoders] [To Michael Schmalle] R... Michael Schmalle
- Re: [flexcoders] [To Michael Schmal... Jean-Luc ESSER
- Re: [flexcoders] [To Michael Schmalle] R... Jean-Luc ESSER
- Re: [flexcoders] [To Michael Schmal... Michael Schmalle
- Re: [flexcoders] [To Michael Sc... Michael Schmalle
- Re: [flexcoders] [To Michae... Jean-Luc ESSER
- Re: [flexcoders] [To Michael Sc... Jean-Luc ESSER
Reply via email to