When Flex compiles MXML it generates ActionScript which is then compiled to generate the final SWF. At the seminar in Boston yesterday, one attendee asked if he could see the MXML generated ActionScript. The answer is yes, there is a compiler flag that does this, and I promised that I’d post it here for him. The flag in question is -keep-generated-actionscript, just add that (one long word with the three hyphens). To use it open your Flex Builder project, right click to open the project Properties, select Flex Compiler, and add -keep-generated-actionscript to the Additional compiler arguments. You’ll then see a new project folder named “generated” which will contain the generated .as files.
Leave a Reply