I'm using Starling to build a space shooter game in ActionScript, and I'd like to draw simple lasers using the normal graphics primitives that Flash provides.
How can I set the translation matrix for Flash to be the same as for any given Starling DisplayObject?
transform.matrix = starlingDO.getTransformationMatrix(starlingDO.root);
comes close, but it seems it does not take into account viewport scaling of Starling.
Have you tried using the Starling Graphics Extension here https://github.com/StarlingGraphics/Starling-Extension-Graphics ? It's easy to use and you don't have to use native Flash display objects.