The graphics class only works with 2D coordinates. However, you can still do what you want in several ways. The simplest thing is to place empty sprites inside your main sprites where you want your lines to connect. Then simply flip these points and use the localToGlobal local3DToGlobal local method to convert their coordinates to scene coordinates. Then just draw lines between these coordinates. Flash will handle the projection for you when you use localToGlobal local3DToGlobal. The only thing you have to worry about is the Z-sorting of strings.
source
share