PDA

View Full Version : Reverse // Mirror Object



yonip
July 4th, 2003, 03:03 PM
Hi, Does anyone know how to mirror a movieclip using actionscript? like mirror to rorrim, I tried using the rotation method but it seems to do it but leave the movieclip upside down

Thanks-

senocular
July 4th, 2003, 03:13 PM
use scale ;)

_xscale = -100; will mirror it horizontally and
_yscale = -100; will mirror it vertically

.. however, if you've sized it before that, then its _xscale or _yscale my not be 100 (100% or normal size) at which case instead of making it -100 which is negative 100% you just make it negative of what it already is

_xscale = -_xscale;
or
_yscale = -_yscale;

You can also write it as

_xscale *= -1;
and
_yscale *= -1;

yonip
July 4th, 2003, 03:17 PM
thanks alot man