Sunday, December 13, 2009

Flex Builder: How to regenerate html-template file

Product: Flex Builder 3 with Flex SDK 3.0.0

Problem: html-template/.template.html is corrupt and I want to regenerate it

Solution: It's more of a workaround but it worked for me:

1. Go to Project -> Properties -> Flex Compiler , uncheck "Generate HTML wrapper file" and click Apply. Notice the html-template folder is deleted.

Tip:
If the "Properties" menu item is disabled, you need to click inside the editor window so it has focus, before the menu item is enabled

2. Check "Generate HTML wrapper file" and click Apply. Notice the html-template folder recreated - do a "Build All" just in case, or if Automatic Build is turned on, just edit the MXML file and Save.

No comments:

Followers