# Flip image

**URL:** <https://forum.kirupa.com/t/flip-image/283916>\
**Category:** flash\
**Created:** [March 12, 2009, 1:50pm UTC](https://forum.kirupa.com/t/flip-image/283916 "2009-03-12T13:50:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![wiffie](https://avatars.discourse-cdn.com/v4/letter/w/87869e/32.png) [@wiffie](https://forum.kirupa.com/u/wiffie)\
**Post date:** [March 12, 2009, 1:50pm UTC](https://forum.kirupa.com/t/flip-image/283916/1 "2009-03-12T13:50:46Z")

</div>

The code below doesn’t work to me because it is flipping the image all the time, and not on it’s center (now it turns from right to left).

```auto
this._xscale *= -1;

```

I want to that the image flips automatically within every 2 seconds on its center. I would be happy if anyone could tell me where I can read about how to make a script that plays the movieclip.  
[Cardflip](http://www.flashandmath.com/bridge/cardtake1/index.html) is a similar effect that descripes how I want to flip the image. The different is that the cardflip flips the image at onmouseclick, I don’t want any on\_mouse, but play();
