|
I got you message, yahoo must feal a little dizzy
;)
How long is your list of questions ?
:))
JL
----- Original Message -----
Sent: Monday, June 19, 2006 4:28 PM
Subject: Re: [flexcoders] [To Michael
Schmalle] Rendered from dataProvider ?
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,
Mike
On 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 -----
Sent:
Monday, June 19, 2006 3:39 PM
Subject:
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 -----
Sent:
Monday, June 19, 2006 3:25 PM
Subject:
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
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 -----
Sent:
Monday, June 19, 2006 1:04 PM
Subject:
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
YAHOO! GROUPS LINKS
__,_._,___
|