Accessing License Feature values in an Adobe AIR application

I have an Adobe AIR application and I want to use the License Features abilities, I noticed there were no examples in the sample Adobe AIR application and I didn't know if you could provide a quick code snippet that would retrieve a license feature?

I know AIR is an event-driven model so an example of what to call to request the data and then what to call to retrieve the data would be most helpful!

Well, the same method applies for all TurboActivate functions. See step 7 in the Using TurboActivate with Adobe AIR.

Then open TurboActivateEvent.as to see which event handler you need to use. In this case you'd need to use GET_FEATURE_VALUE.

Does that make sense?

I'm close to making this work in AIR, I was able to make the call and catch the event, but I don't know what Feature Key it is returning a value for, is that in the event data or do I have to implement some logic like this:

maintain a "CurrentFeatureKeyRequested" variable..

GetFeature Key #1 request (set current key variable) - Wait for response event and know the response was for Key #1 (using current key variable) - Initiaite a GetFeature Key #2 request (set current key variable) - Wait for a response event and know the response was for Key #2 (using current key variable). - Initial a GetFeature Key #3 request (set current key variable) - Wait for a response event and know the response was for Key #3 (using current key variable).

The way to request multiple features is to do it in a chain. In the callback event for your first feature request, make your second feature request, and onward until your last request. Then on your last request call whatever function that will make use of the features.

Does that make sense?

Exactly what I was thinking I would have to do, thanks for confirming the logic!