Advertisement Manager for ads within flash

Hi Guys,

Im running a flash website, Im getting around 15,000 visits per day, and I have allocated 4 areas of the site for advertisements. I want to have 2 types of advertisements: pay per click, and pay per impression/view.

Ofcourse there are many php ad managers out there, but how can I display the ads inside of flash? I don’t mind if I manage the whole thing in a php page, but at the end, I want the advertisements to be displayed within flash, and ofcourse have all necessary changes made when a user clicks on an Ad (pay per click), or when the Ad is displayed (pay per impression).

Thanks!!