You should have gotten a compiler error since the dataProvider should be in the camel case and your code has it in all lower case. Change it to "dataProvider" then it should work.
<mx:Repeater id="r" dataProvider="{myAC}">
<mx:RadioButton id="Radio"
label="{r.currentItem.name}" width="150" x="129"
y="77"/>
Thanks
-Ashish
-----Original Message-----
From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Venkatesh kambhammettu
Sent: Wednesday, January 04, 2006 5:51 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex 2.0 Repeater not working
Hi,
I am a newbie to Flex, trying out Flex2. I am trying
this sample app from the documentation using a
repeater and for some reason it is just displaying a
blank app/screen.
Does anybody why this is not working?
Thanks
Venkat
sample.mxml
-----------
<?xml version="1.0" encoding="utf-8"?>
<mx:Application
xmlns:mx="http://www.macromedia.com/2005/mxml"
xmlns="*">
<mx:Model id="catalog" source="products.xml"/>
<mx:ArrayCollection id="myAC"
source="{catalog.product}"/>
<mx:Repeater id="r" dataprovider="{myAC}">
<mx:RadioButton id="Radio"
label="{r.currentItem.name}" width="150" x="129"
y="77"/>
</mx:Repeater>
</mx:Application>
products.xml
------------
<?xml version="1.0"?>
<products>
<product>
<name>Name </name>
<price>Price</price>
<freeship>Free Ship?</freeship>
</product>
<product>
<name>Panasonic</name>
<price>10</price>
<freeship>false</freeship>
</product>
<product>
<name>GE</name>
<price>5</price>
<freeship>yes</freeship>
</product>
</products>
__________________________________________
Yahoo! DSL – Something to write home about.
Just $16.99/mo. or less.
dsl.yahoo.com
--
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
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.