2 Replies Latest reply: Mar 4, 2013 8:56 AM by DeanLoganBH RSS

    Help with code

    fsoender Community Member

      I get this eror:


      Data binding will not be able to detect assignments to "chartData".


      Any help?


      <?xml version="1.0" encoding="utf-8"?>
      <s:View xmlns:fx="http://ns.adobe.com/mxml/2009"
        xmlns:s="library://ns.adobe.com/flex/spark" title="Tracking"

      private var chartData:ArrayCollection = new ArrayCollection;

      protected function udpDataHandler(event:DatagramSocketDataEvent):void
          var Value:String = event.data.readUTFBytes(event.data.bytesAvailable);
           NewValue = Value;    
           chartData.source[chartIndex] = NewValue;        
           NewValue = 0;    


      <mx:LineSeries id="recordGraph" cacheAsBitmap="true" cachePolicy="on"
               dataProvider="{chartData}" form="curve" lineStroke="{s3}"


        • 1. Re: Help with code

          You really need to get a Book on Flex, There are alot of things wrong with your code. What you mention is not an error but a warning. It mean when that variable changes the data binding framwork will not be able to show those changes. You need to tag the variable with a [Bindable] metadata. You need a good flex book.

          • 2. Re: Help with code

            Data binding will not be able to detect assignments to "chartData".


            Just a little tip, this should be your post headline, instead of "Help with code".


            This is what you are missing.  But, it might not be the best way to do what you want to do.

            private var chartData:ArrayCollection = new ArrayCollection;



            You probably should find an example on the web before trying stuff and keep trying the example until you get it working yourself.