When I make changes to a Flex project and rerun the project, it seems that FlashBuilder4 rewrites my html wrapper that embeds the SWF. But I have additional javascript code in the html wrapper and don't want to keep losing my code. I had to re-write the code once and it was a pain in the neck.
How do I stop it from re-writing the html. And the related question: how do I stop it from deleting the html during a clean?
I basically need to exclude the html from its processing once it's been created the first time.
P.S. I'm using Flash Builder 4, but I suppose it's the same in Flex Builder 3.
Turn off "Generate HTML Wrapper file" in Project settings.
This will delete the auto-generated HTML wrapper file in your bin directory. If you need to keep it, make a copy first and put it back after turning off this option.