Detecting a movieclip has been Flipped horizontally on the stage in as3
问题 If two movie clips instances of the same movieclip are placed on the stage and one is flipped horizontally in Flash.. Is there a way I can detect which one has been flipped horizontally in code? ScaleX seems to remain unchanged. The MovieClip has been flipped horizontally using the Flash UI (Edit->Flip Horizontal), not via code. 回答1: Try: function isFlippedHorizontally( obj:DisplayObject ):Boolean { return obj.transform.matrix.a / obj.scaleX == -1; } trace( isFlippedHorizontally( yourObject )