The last thing we need to do is move the skybox so it is always centred on the camera. The skybox should never appear to move, which ironically means it should always be moved with the camera. The end result is that, relative to the camera, the skybox never appears to move, and always appears to be an infinite distance away. [code]
Skyboxes are an effective and popular way to show the world beyond the 3D scene that you are displaying. With Sandy’s built in Skybox class, and the few tricks described above, you can easily create a skybox for yourself.
Check out the demo here, and download the source code here.
Read more in the Flash and JavaScript 3D with Sandy-HX series