View Full Version : Flash: ActionScript Question

Feb 1, 2006, 01:14 AM
Hey all,
I was wondering if anyone knows how to "flip" a graphic/movie clip via actionscript?

What I am looking for is the same effect if one would select the graphic or movie clip symbol that is on the stage then click "modify" => "transform" => "flip vertical or horizontal"

I am not even sure if that can be done on the fly with actionscript...:confused:


Feb 1, 2006, 07:08 AM
I'm no expert, but I've never seen it done.

You could have a copy of the image symbol already flipped and then load it dynamically to replace the current one. Or you could do a shape tween and have it run when the user clicks the button.

Feb 1, 2006, 08:57 AM
yourMovieClip._xscale *= -1

Had to do that once before and I think this is what worked.

Feb 1, 2006, 09:32 AM
robx2 That's what I was needing. Thanks for the quick replys guys.