是否可以调用外部方法:
this.extContext.call("GenerateProductsFunction", productList);
检索字符串数组?:
public class GenerateProductsFunction implements FREFunction{
@Override
public FREObject call(FREContext context, FREObject[] args) {
args[0] // Get as Array?
return null;
}
}
答案 0 :(得分:1)
如果发回一个数组,args [0]类型将是FREArray,它是FREObject的子类。
http://help.adobe.com/en_US/air/extensions/WS982b6f491d178e6d6565d9b1132a79a012f-7ff8.html