4 Replies Latest reply on Oct 14, 2009 6:40 PM by nojyfied

    Load FXG Documents at Runtime?

    johnhornsby
      Anybody know if this is possible?
        • 1. Re: Load FXG Documents at Runtime?
          GordonSmith Level 4

          The Flex framework does not support this, but it would be possible to write an FXG interpreter.

          • 2. Re: Load FXG Documents at Runtime?
            deepa subramaniam (adobe) Level 2

            The Flex team did have a parser class that would parse FXG at runtime and build up the right constructs such that an FXG file could be loaded and renderer at runtime. This parser was a test utility and has since fallen by the wayside, but would be an excellent project for the Flex Open Source community to take forward. If there is interest in this, please drop me an email: dsubrama@adobe.com and we can work to get folks set up in a branch to polish this piece of functionality.

             

            Thanks,

            Deepa Subramaniam

            Flex SDK Engineer

            • 3. Re: Load FXG Documents at Runtime?
              pkrekelberg

              I would love to see that parser class. Thank you!

              • 4. Re: Load FXG Documents at Runtime?
                nojyfied Level 1

                Hi,

                 

                I am a developer at rocketboots. I have been working on a runtime FXG parser, we call XInstance. Actually its a more generic MXML parser.

                 

                It supports "{}" (binding syntax), but doesn't actual bind expressions but only assigns id's.

                 

                We use it internally to load xml models at runtime and convert them to modal classes.

                 

                I didn't really know where the FXG classes existed in the flex sdk, so i was building all the FXG classes myself (already spent 4 days) and i realised today that the classes are distributed in the spark and mx namespaces.

                 

                 

                Its not yet open source, but its going to be in several days, once i get a proper FXG demo working.