> Is that bad ?
No way man!, I was thinking along the same lines. Test the length and when it finishes, it's finished, just didn't have enough time nor brain power to try it :)
I will definitaly ask about this and some other things related to initialization at the summit.
On a 'professional' level you shouldn't have to hack a major Complete alogrithm like this. So there might actually be a correct way to do it.
Peace, Mike
On 6/19/06, Michael Schmalle <[EMAIL PROTECTED]> wrote:
I see, I also see yahoo is messing up again, I think yo might have got my last message.
I am adding this to my list of questions ;-)
I don't know the answer right now. I had tested this also.
Peace, MikeOn 6/19/06, Jean-Luc ESSER <[EMAIL PROTECTED] > wrote:
Mike, here is what i do :public function myTest():void
{
bookFormatMedium.addEventListener(FlexEvent.UPDATE_COMPLETE, myTest2);
bookFormatMedium.dataProvider = myDataProvider;
}
public function myTest2(event:FlexEvent):void
{
bookFormatMedium.removeEventListener(FlexEvent.UPDATE_COMPLETE, myTest2, false);
trace('myTestComplete '+event.currentTarget);
}And i invoke myTest on creationComplete of my TileList (or List) :<mx:TileList id="bookFormatMedium" backgroundAlpha="0" textAlign="left" horizontalScrollPolicy="off"
width="100%" height="100%" styleName="bookFormatMedium"
itemRenderer="com.lmg.view.global.book.BookFormatMediumItemRenderer"
itemClick="changeFlowStates(panelState, BookVO(bookFormatMedium.selectedItem))"
creationComplete="myTest()"/>My event is dispatched too soon (items are not fully drawn yet).Also, invoking myTest() on creationComplete is wrong because next time my dataProvider changes, i won't be able to call myTest().This is new for me, sorry if i misunderstood what you said !Best,JL----- Original Message -----From: Michael SchmalleSent: Monday, June 19, 2006 3:39 PMSubject: Re: [flexcoders] [To Michael Schmalle] Rendered from dataProvider ?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, MikeOn 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.
--
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... Jean-Luc ESSER
- Re: [flexcoders] [To Michael Schmalle] Rendered from... Jean-Luc ESSER
Reply via email to

