Not sure, what could be the issue. but you can make sure following and see if works
- you have flex and web addin properly loaded
- you have launched QTP first and then your application
- you have flex and web addin properly loaded
- you have launched QTP first and then your application