title: Save PDF local method using alivepdf, flash as3
body: <p>I have tried few things but no success.
  I want to prompt user on button click event to save PDF file in local computer generated from object array which were created by user at runtime.</p>
  
  <p>Any sort of help is greatly appreciated
  Thanks</p>
  
  <p>I have revised target flash player 10.0 in the html and somehow found out that the save event call has to be on button click event and I already have that. but still it gives me error and does not even generate swf file.</p>
  
  <p>Here is the code and error.</p>
  
  <p>1061: Call to a possibly undefined method save through a reference with static type flash.net:FileReference. It gives me this error.</p>
  
  <pre><code>var cFile:FileReference = new FileReference();
  var gBytes:ByteArray = this._myPDF.save(Method.LOCAL);
  cFile.save(gBytes,"test.pdf"); 
  </code></pre>