The PlayBasic DLL works in Bmax (actually better than it does in Blitz3D if I rememeber correctly). But, it sits on top of your normal graphics (with a masked portion), rather than being integrated into your graphics.
Your Flash part communicates with Bmax using some variable get/set commands.
Your Flash part communicates with Bmax using some variable get/set commands.