GetFeatureValue example for AIR

Do you have a working example of how to use the GetFeatureValue function in ActionScript?I have tried to call this function but the return value is undefined. E.g.

var expire_date:String = new String(_ta.GetFeatureValue("runtime));

I've looked in the mxml files supplied in the download but can't find an example.

Any suggestions/pointers would be greatly appreciated.

Thanks

Hey Tim,

Our current Adobe AIR example code is asynchronous due to the poor design choices Adobe made.

We cover this in the Adobe Air help article(see step 7).

In other words, you can't just call the function to get the response. You have to add an event handler, then call the function, then get the response in the event handler. We give multiple examples in the article.

Does that make sense?

We'll be adding a new way to do Adobe AIR integration using their new (better) extension API. Then you'll be able to make synchronous calls. But for now you have to use the asynchronous method mentioned in the article.