Flex and AIR applications have little different architecture.
Moreover in flex web application applications root tag is: <s:Application/>
while in AIR app it is: <s:WindowedApplication/>
So both can not be done in common project. You have to make separate project for each.
Still you can do that by making shared component library and refer it in both the projects. Make changes in the Library and change will be get reflected in both projects automatically.