I would rather just have some kind of 'build order' that functions like a script. My units get busy creating the town, and then I create groups and assign missions. When things get hairy, I step in and micromanage. Meanwhile other objectives and missions take place on their own. Try Total Annihilation. It's an old game, but there's exactly the kind of functionality you're talking about. It also has a sequel named Supreme Commander IIRC.
It amazed me at the time (2005-2006) to see how many people were still interested in 10GB drives, 64MB PC100 sticks, and GeForce2 MX cards. The people were interested back then and will be interested in the future. In fact, I recently bought GF2MX for a few cents. For example, it's just better to build up your own router from an old AMD K6-2 + 10GB HDD with some Unix installed than to buy a new shiny plastic router box. Of course it all depends on the requirements, but if you have a small problem, why to spend the money on a big solution? This stuff just needs to be reused.
But still, based on my (mostly theoretical) knowledge, the security of a flash application is just a little bit higher than a security of a javascript application, because it's just a matter of running a decompiler to get the code.
I am not a flash expert, but actually you can do pretty amazing stuff with flash, like this C-64 emulator: http://codeazur.com.br/stuff/fc64_final/
But still, based on my (mostly theoretical) knowledge, the security of a flash application is just a little bit higher than a security of a javascript application, because it's just a matter of running a decompiler to get the code.