18 Replies Latest reply on Apr 2, 2011 2:53 PM by CleanCoder

    Evaluating FXG files - possible to access elements and add event handlers?

    aligned2009

      I would like to read an existing FXG file into flash builder and then datamine the file for elements, and add event handlers to those elements.


      For instance, if I have two rectangles in an FXG file (not in the flash builder mxml) and then read it in, I'd like to search for every rectangle and add an event handler that detects a mouse click. If the FXG code changes to three rectangles, I don't want to change my mxml for flash builder.

       

      Is this possible?