Simply put, there is no easy way to achieve this.
In more detail, setting wmode direct removes the swf from the browser display and places it on top, allowing for GPU utilization. However, using wmode opaque (or transparent) keeps the swf within the browser display, preventing GPU acceleration.
The drawback of wmode direct is that the swf covers the entire document, making it impossible to place anything over it (aside from potentially another swf - untested and not recommended).
So, what can be done to work around these limitations?
- Firstly, consider whether your swf truly requires GPU acceleration. If it doesn't involve videos, 3D graphics, or complex animations, switching to wmode opaque may slightly reduce performance but allow for content placement above the swf.
- Alternatively, integrate the banner within the swf itself. This would require editing the flash file, but displaying a banner from inside the swf, whether an image or another swf, can be achieved using the
Loader
class.