I'm not terribly too familiar with QTP, but you should look
into automation delegates. Many of the built-in classes in flex
have them, and under certain circumstances you need to create your
own. Sorry I don't have more information than that, but hopefully
it'll get you started.