Quantcast
Channel: Adobe Community : Unanswered Discussions - AIR Development
Viewing all articles
Browse latest Browse all 2010

AIR Native Extensions. How to loop FREObject properties?

$
0
0

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


Viewing all articles
Browse latest Browse all 2010

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>