Groups | Blog | Home
all groups > flash actionscript > march 2004 >

flash actionscript : Flipping Vertical/Horizontal in script?


bioroid
3/11/2004 11:21:20 PM
Is there a way to flip a movie horizontally or vertically in script? I have
an swf that I load dynamically but would like to be able to flip it around in
script so I don't have to duplicate animations.
pazzoboy
3/12/2004 2:51:39 AM
If you're loading your swf into a movieclip (let's say swfHolder for an
instance name of the movieclip), try
setProperty(swfHolder,_rotation,180);

I haven't tried it, so I don't know if swfHolder's contents rotate along with
it....
bioroid
3/12/2004 4:53:30 AM
Blazing_Ice666
3/12/2004 5:30:16 AM
Exact same problem I often have, my best suggestion is that you make 2
different frames in the clip, one with the character walking one way, the
other, the other way. Then have it so that it gotoAndStop()'s at the
directional frame.
urami_
3/12/2004 2:14:30 PM

[quoted text, click to view]

Mcname._xscale=-100;

Mcname._yscale=-100;

etc...


Regards


urami_*

<hol>
http://flashfugitive.com/
</hol>

_trib4lmaniac_
3/24/2004 4:22:06 PM
toby_mc._xscale = -100; // to flip horizontally
AddThis Social Bookmark Button