0 Replies Latest reply on Aug 5, 2009 6:34 AM by _CoreDragon

    Flex and Javascript passing Objects with circular reference

    _CoreDragon

      Hey All,

       

      I have some flex functions that I would like to call from Javascript. I have registered these functions with Flex using ExternalInterfaces.addCallBack. The function takes a parameter of type Object.

       

      This normally works, but when I pass a javascript Object that has a circular reference to itself (like a tree node - the child node has a property pointing to the parent node and the parent node has a property pointing to the child node) - I believe the xml serialization Flex does before passing the object goes on forever. The next line of code in the ActionScript never gets executed!

       

      Is there a way I can fix this?

       

      Thanks for your answers!