0 Replies Latest reply: Oct 29, 2014 9:48 AM by gloomyBrain RSS

    AIR Native Extensions. How to loop FREObject properties?

    gloomyBrain Community Member

      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