Teo Choong Ping
Teo Choong Ping

Reputation: 12808

How to flip flash.media.Video?

I'm playing with the flash.media.Video and the Camera with Actionscript, and it bugs me that the video cam is showing a flipped video. Let me describe with an example:

When I turn to my right, the video will show me turning to my left. If I held up a peace finger sign on my right hand, it appear as if I am doing it with my left.

So, how do I flip the video as to make it look "mirror"?

Upvotes: 3

Views: 6871

Answers (2)

Teo Choong Ping
Teo Choong Ping

Reputation: 12808

To make the video look like a "mirror", I pretty much have to set 2 things:

myVideo.scaleX = -1; myVideo.x = myVideo.width + myVideo.x;

  • Thanks Christophe

Upvotes: 10

Christophe Herreman
Christophe Herreman

Reputation: 16085

You can do this by setting the "scaleX" property of you video object to -1.

myVideo.scaleX = -1;

Upvotes: 4

Related Questions