IdleSun's Weblog

September 15, 2008

Keep the generated in Flex

Filed under: Flex — idlesun @ 4:56 pm

Everybody who is using Flex (whether with SDK only or Flex Builder) knows MXML files are converted to Action Scripts. But I just wonder how many of us keep the generated code and take looks at them. It is very rare but sometimes you may get an error that is referring to the generated code.

In order to keep the genrated Action Script files use the “-keep” compiler argument, or in Flex Builder add it through the Project Properties dialog like this:

Adding -keep argument in Flex Builder

Adding -keep argument in Flex Builder

With this argument added, you will find the ‘generated’ folders where you have an application or module files. You definitly want to check what AS files are are generated from your MXML files.


Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

Create a free website or blog at

%d bloggers like this: