click="selectedFrame = frames.getItemAt(r.currentIndex) as Presentation"
with this:
click="selectedFrame = frames.getItemAt(event.currentTarget.getRepeaterItem ()) as Presentation"
The error appears because the repeater itself has stopped creating it's children when you click on a button.
Oriol.
2006/8/19, dreuimar <
[EMAIL PROTECTED]>:
Hey everyone,
I am basically trying to do this:
<mx:Repeater width="100%" id="r" dataProvider="{frames}">
<mx:Button label="Frame {r.currentIndex}" click="selectedFrame =
frames.getItemAt(r.currentIndex) as Presentation"/>
</mx:Repeater>
After creation, the buttons all reflect "Frame 0, Frame 1, etc..." yet
if I go to execute the click function I get an error about the
renderer having been terminated. Is there a way to lock in value for
current index so the click event will execute properly?
--
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/
__._,_.___
--
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.
__,_._,___

