Placing an SWF on a BSP using Render to Texture
Once an SWF is imported, it usually displays full screen. This can be changed so the SWF is drawn on a BSP surface (or CSG Additive surface really) anywhere in the level you like. In this recipe we will use a simply skinned Slider built upon a CLIK component, set it on a BSP surface, and ensure it still operates when triggered. The biggest problems for SWF displayed on a BSP surface are to do with the cursor having to track just the surface of the BSP, not the whole screen (so you may face registration problems), and getting the SWF to take focus. There are simple solutions to both of these issues.
How to do it...
Import to a new package the provided file BSPSlider.SWF, and save its new package as BSPSlider.UPK. In the same package in the Content Browser, right-click and choose New TextureRenderTarget2D . Call this BSPSlider.Texture.SWFtoBSP (or anything you want). All this does is serve as a placement proxy for the SWF. Right-click on it and...