Thanks. That's the solution!!! --- In flexcoders@yahoogroups.com, "Abdul Qabiz" <[EMAIL PROTECTED]> wrote: > Hi, > > Your code looks fine except one thing. I think, Binding is not being > executed when a particular element of array is changed. Which is good as > it saves the performance issues. > > > Following is modified code and it should work, I am reassigning the > entire array to itself. See the last line in CreationComplete(..) > function. > > <?xml version="1.0" encoding="utf-8"?> > <mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml" > creationComplete="CreationComplete();"> > > <mx:Script> > <![CDATA[ > import TestData; > public var myData:Array; > public function CreationComplete():Void > { > myData=new Array(); > var testdata:TestData; > testdata=new TestData(); > testdata.data1="abc"; > testdata.data2="def"; > myData.push(testdata); > testdata=new TestData(); > testdata.data1="ghi"; > testdata.data2="jkl"; > myData.push(testdata); > > myData = myData; > } > ]]> > </mx:Script> > > <mx:Repeater id="myRepeater" dataProvider="{myData}"> > <mx:Label text="{myRepeater.currentItem.data1}"/> > </mx:Repeater> > </mx:Application> > > > > -----Original Message----- > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On > Behalf Of Rob Rusher > Sent: Wednesday, August 17, 2005 9:01 PM > To: flexcoders@yahoogroups.com > Subject: RE: [flexcoders] Repeater doesn't work > > I don't see an import statement for the TestData class. > > Rob Rusher > > RIA Consultant > Macromedia Certified Flex Instructor > e:[EMAIL PROTECTED] c:303.885.7044 im:robrusher > > -----Original Message----- > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On > Behalf Of r_woess > Sent: Wednesday, August 17, 2005 5:22 AM > To: flexcoders@yahoogroups.com > Subject: [flexcoders] Repeater doesn't work > > Hi, > > I tried tu use a Repeater like you can see in the code below. Can > anybody tell me, why no data will be shown? > > > <?xml version="1.0" encoding="utf-8"?> > <mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml" > creationComplete="CreationComplete();"> > > <mx:Script> > <![CDATA[ > public var myData:Array; > public function CreationComplete():Void > { > myData=new Array(); > var testdata:TestData; > testdata=new TestData(); > testdata.data1="abc"; > testdata.data2="def"; > myData.push(testdata); > testdata=new TestData(); > testdata.data1="ghi"; > testdata.data2="jkl"; > myData.push(testdata); > myData = my > } > ]]> > </mx:Script> > > <mx:Repeater id="myRepeater" dataProvider="{myData}"> > <mx:Label text="{myRepeater.currentItem.data1}"/> > </mx:Repeater> > </mx:Application> > > > ------------------------------------------------------------------- > > class TestData { > > public var data1 : String; > public var data2 : String; > } > > ------------------------------------------------------------------- > > best regards > reini > > > > > > -- > 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 > > > > > > > > > > -- > 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
------------------------ Yahoo! Groups Sponsor --------------------~--> <font face=arial size=-1><a href="http://us.ard.yahoo.com/SIG=12hr0km4t/M=362329.6886308.7839368.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1124302876/A=2894321/R=0/SIG=11dvsfulr/*http://youthnoise.com/page.php?page_id=1992 ">Fair play? Video games influencing politics. Click and talk back!</a>.</font> --------------------------------------------------------------------~-> -- 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/