Hi I am a flex newbie. I am trying something basic with repeater. here is my code:
<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" creationComplete="bookData.send()"> <mx:Script> <![CDATA[ private function getBookData(repItem:String):void { nameLabel.text = repItem; } ]]> </mx:Script> <mx:HTTPService id="bookData" url="assets/books.xml"/> <mx:Repeater id="bookRepeater" dataProvider="{bookData.lastResult.books.stock}"> <mx:Label text="{bookRepeater.currentIndex + 1}{bookRepeater.currentItem}"/> <mx:Button label="Add to Cart" click="getBookData(event.target.getRepeaterItem())"/> </mx:Repeater> <mx:Label id="nameLabel"/> </mx:Application> XML IS LIKE THAT: <books> <stock> <name>The Picasso Code</name> <author>Dan Blue</author> <category>Fiction</category> <description>Cubist paintings reveal a secret society of people who really look like that</description> </stock>....... I get this error: Severity and Description Path Resource Location Creation Time Id No se encontró el tipo o no es una constante en tiempo de compilación: repeater. [Generated code (use -keep to save): Path: repeater-generated.as, Line: 178, Column: 14] repeater Unknown 1184031583748 99 Someone may tell where I do wrong??? Thanks Andrea ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Upgrade to Adobe ColdFusion MX7 Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJQ Archive: http://www.houseoffusion.com/groups/Flex/message.cfm/messageid:4356 Subscription: http://www.houseoffusion.com/groups/Flex/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.37
