Oh, I hate it.

I've been searching for more than an hour! Then I write to the list and 5
minutes later I found the solution.

For the future:
You have to provide event.target.getRepeaterItem() to your desired function
in a handler function.
More info here:
http://livedocs.macromedia.com/flex/15/flex_docs_en/00001055.htm

Sorry for any inconvenience!

Bye,
Fritz

> --- Ursprüngliche Nachricht ---
> Von: "Fritz Dimmel" <[EMAIL PROTECTED]>
> An: [email protected]
> Betreff: [flexcoders] mx:Repeater / currentItem / mouseUp
> Datum: Thu, 23 Jun 2005 15:37:02 +0200 (MEST)
> 
> Hi.
> I've some data from a web service.
> Now I've a Repeater which creates for each item from the service's result
> a
> mx:Box element with some other stuff.
> The repeater's name is repDay, I can access any data with
> repDay.currentItem. Well, this works fine, because I use all these values.
> 
> But: Suddenly I cannot access the data on mouseUp event. Everythings works
> except this...
> I'll post my example:
> 
> <mx:Repeater dataProvider="{aDay}" id="repDay">
>   <mx:Box backgroundColor="#FF9933" borderColor="#FF6633"
> borderStyle="solid" 
>     width="{itemWidth - 10}" x="5"
> y="{time2pos(repDay.currentItem.startTimestamp)}" 
>     height="{times2height(repDay.currentItem.startTimestamp,
> repDay.currentItem.endTimestamp)}"
>    
> toolTip="{myApp.tFormatShort.format(repDay.currentItem.startTimestamp)}
> - {myApp.tFormatShort.format(repDay.currentItem.endTimestamp)}:
> {repDay.currentItem.eventHeader}" 
>     alpha="85" hScrollPolicy="off" 
>     mouseUp="mx.controls.Alert.show('date: ' +
> repDay.currentItem.startTimestamp)">
>     <mx:Text text="{repDay.currentItem.eventHeader}" />
>   </mx:Box>
> </mx:Repeater>
> 
> 
> And in the mouseUp I alway get NaN! (I want to use other things then, not
> to
> open an alert window, it's just for debugging!
> 
> Anybody who can help me?
> 
> Thanks!
> 
> Bye,
> Fritz
> 
> -- 
> Geschenkt: 3 Monate GMX ProMail gratis + 3 Ausgaben stern gratis
> ++ Jetzt anmelden & testen ++ http://www.gmx.net/de/go/promail ++
> 
> 
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
> Yahoo! Groups Links
> 
> 
> 
>  
> 
> 

-- 
Geschenkt: 3 Monate GMX ProMail gratis + 3 Ausgaben stern gratis
++ Jetzt anmelden & testen ++ http://www.gmx.net/de/go/promail ++


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to