@senocular’s content from a few decades ago is perfect for this: kirupa.com - Exploring 3D in Flash ()
The general idea is to have a consideration for the z axis that translates everything into x and y coordinations. For a more modern version of how to do this, this article may help: