Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 11-03-2006, 05:51 AM   #1
Assertnfailure
as[org].addListener(this)
 
Assertnfailure's Avatar
 
Join Date: Dec 2005
Location: LA, California
Posts: 837
Default differentiating buttons in a repeater

ActionScript Code:
<mx:Repeater id="bodyRP" dataProvider="{dataProvider}" recycleChildren="true">     <mx:LinkButton label="{bodyRP.currentItem.label}" click="{doAction(bodyRP.currentItem.data)}"/> </mx:Repeater>

The above code doesn't like the click assignment, as since its binding on something that doesn't directly persist (the repeater.currentItem), however I'm not really sure what the best approach to this is....

Basically, I want to be able to pass specific data paired to the button being made from the dataprovider passed into repeater when the click event is triggered. This shouldn't be complicated, right?
Assertnfailure is offline   Reply With Quote
Old 11-03-2006, 07:57 AM   #2
CDHBookingEdge
Registered User
 
Join Date: Oct 2006
Posts: 383
Send a message via MSN to CDHBookingEdge
Default

See if this helps you out:
Event handlers in Repeater components

Christopher
CDHBookingEdge is offline   Reply With Quote
Old 11-03-2006, 05:39 PM   #3
Assertnfailure
as[org].addListener(this)
 
Assertnfailure's Avatar
 
Join Date: Dec 2005
Location: LA, California
Posts: 837
Default

Ah that did it, thanks

Hmm....limitation of repeater made sense, but the solution didnt seem too intuitive. I'll have to look more into that...
Assertnfailure is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Buttons that just won't leave... RQFlash ActionScript 2.0 5 07-25-2005 06:51 PM
LoadMovie and turn off buttons below billingsgate Other Flash General Questions 2 07-01-2005 03:58 PM
Buttons Triggered mx.Transitions Scripts jeffrey ActionScript 2.0 1 06-12-2005 10:13 AM
Playing the over state of buttons without rollover drumkeyjw ActionScript 2.0 0 04-20-2005 04:01 PM
Buttons under buttons under buttons... Mortimer Jazz ActionScript 2.0 2 07-14-2004 12:27 PM


All times are GMT. The time now is 08:41 AM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.