title: Returning FREArray from Java to Flash
body: <p>I have a native android function that I'm calling in Flash using an ANE:</p>
  
  <pre><code>public class GetProductsFunction implements FREFunction {
      private static final String TAG = "GetProducts";
  
      @Override
      public FREObject call(FREContext context, FREObject[] args) {
          FREArray freArray = IAPManager.getInstance().getFREProducts();
  
          return freArray;
      }
  }
  </code></pre>
  
  <p>On the flash side I'm calling the function as so: </p>
  
  <pre><code>var object:Object = this.extContext.call("GetProductsFunction");
  </code></pre>
  
  <p>I'm not quite sure how to get at my FREArray that I returned. The function in Flash returns an ActionScript Object but you obviously can't get an Array from an Object.</p>
  
  <p>So how do you read this data?</p>