--- In [email protected], "Giro" <[EMAIL PROTECTED]> wrote:
>
> Hi,
> 
>  
> 
> I have this code
> 
>  
> 
> <mx:Repeater id="newRepeater"
> dataProvider="{newsRequest.lastResult.news.noti}" count="2">
> 
> <mx:Label y="{20+(newRepeater.currentIndex*35)}"
> text="{newRepeater.currentItem.data}" color="0xcccccc"/>
> 
>             <mx:Label y="{32+(newRepeater.currentIndex*35)}"
> text="{newRepeater.currentItem.titol}" color="0xffffff" width="200"
> useHandCursor="true" click="openSite(newRepeater.currentItem.url)"
> buttonMode="true" mouseChildren="false"/>
> 
>             <mx:Label text="{newRepeater.currentItem.url}" />
> 
> </mx:Repeater>
> 
>  
> 
> All work okay, but when i press Label, error say:
> 
>  
> 
> Error: Repeater is not executing.
> 
>             at mx.core::Repeater/get currentItem()
> 
>             at vidi_new/___Label3_click()
> 
>  
> 
>  
> 
> How i can pass repeater data to a function?
> 
>  
> 
>  
> 
> Thk.
> 
>  
> 
> Giro.
>

this is your code

click="openSite(newRepeater.currentItem.url)"

use this code 

click="openSite(event.currentTarget.getRepeateItem().url)"

Reply via email to