Highlighted

AIR Native Extensions. How to loop FREObject properties?

New Here ,
Oct 29, 2014

Copy link to clipboard

Copied

Hello.

We're working on a new AIR Native Extension, the goal is to run javascript code inside AIR. However that's actually not directly related to the problem.

The problem itself:

- we need to pass some AS3-objects to the javascript runtime

- javascript runtime (SpiderMonkey) has a different GC, different memory aligning and a lot of other things, that differs from AIR

- the only suitable way for us is to iterate through AS3-Object properties and to create a mirror-object in SpiderMonkey

- we do not have such an API in FlashRuntimeExtensions.h which would allow us to iterate Object properties

So the question is - is there any way to iterate on AS3-Object properties in С/С++ side of a Native Extension?

If there is not than the only possibility for us is to use JSON-strings which is actually far from optimal.

Thanks in advance,

Denis

TOPICS
Development

Views

333

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

AIR Native Extensions. How to loop FREObject properties?

New Here ,
Oct 29, 2014

Copy link to clipboard

Copied

Hello.

We're working on a new AIR Native Extension, the goal is to run javascript code inside AIR. However that's actually not directly related to the problem.

The problem itself:

- we need to pass some AS3-objects to the javascript runtime

- javascript runtime (SpiderMonkey) has a different GC, different memory aligning and a lot of other things, that differs from AIR

- the only suitable way for us is to iterate through AS3-Object properties and to create a mirror-object in SpiderMonkey

- we do not have such an API in FlashRuntimeExtensions.h which would allow us to iterate Object properties

So the question is - is there any way to iterate on AS3-Object properties in С/С++ side of a Native Extension?

If there is not than the only possibility for us is to use JSON-strings which is actually far from optimal.

Thanks in advance,

Denis

TOPICS
Development

Views

334

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Oct 29, 2014 0

Have something to add?

Join the conversation