title: Degrafa Bezier spline bind data to string
body: <p>I want to insert a bezier spline into my Canvas by this code</p>
  
  <pre><code>&lt;mx:Canvas 
  id="graphCanvas" 
  width="100%" 
  height="100%" 
  preinitialize="preInit()"
  /&gt;
  &lt;BezierSpline id="mySpline" graphicsTarget="{[graphCanvas]}"  data="points"
  </code></pre>
  
  <p>verticalCenter="0" horizontalCenter="0" 
   ></p>
  
  <p>points is a string I initialize in the preInit() method</p>
  
  <pre><code>[Bindable]public var points : String;
  private function preInit() : void {
          points = "200,100 200,300 100,300 300,500 500,300 400,300 400,100";
      }
  </code></pre>
  
  <p>But when I now build the project no spline is drawn on my canvas whereas directly integrating the data in the mxml works</p>
  
  <pre><code>&lt;BezierSpline id="mySpline" graphicsTarget="{[graphCanvas]}"  data="200,100 200,300 100,300 300,500 500,300 400,300 400,100"
  </code></pre>
  
  <p>verticalCenter="0" horizontalCenter="0" 
   ></p>
  
  <p>Can someone help me? I need to dynamically change the data of the spline. Also answers that handle it programmatically are welcome as I do not really know how to redraw the spline on my canvas by code (don't know how to use the draw() method of the spline).</p>
  
  <p>Thanks in advance</p>
  
  <p>Sebastian</p>