Discussion:
How to flip a flash animation?
(too old to reply)
AndersonBrunozi
2009-03-09 18:50:45 UTC
Permalink
Hi,

Is is possible to play a flash animation flipped (horizontally mirrored), when embed on a HTML page? If so, how can I do this, in IE?

Thanks.
Rob Dillon
2009-03-10 12:33:05 UTC
Permalink
Is this something that you want to happen by default, or is this effect
something that you want to be able to control?

In any case, you can flip a movieClip either vertically, or horizontally, by
changing the _xscale, or scaleX, or the _yscale, or scaleY, of the movieClip
from 1 to -1. So, this means that if your entire movie is inside a movieClip,
then you could flip that clip and your entire movie would then flip.

Is that what you had in mind?
AndersonBrunozi
2009-03-10 13:16:01 UTC
Permalink
Hi, Rob,

If I understand what you mean. I should set these vars while creating the
flash movie, right?

But that`s not exactly what I need, as I just get the .SWF made by someone
else, and display then on my application. So what I need is something more like
a param to the object tag or a javascript command that I could call from the
HTML page, and then it would display that .SWF flipped.

I'll try to explain why I need it.

I have an application that accepts various formats, including flash (SWF),
SVG, and static images. There is a requirement that the user should be able to
see the application through a telepromter (something like this
Loading Image...), and
that`s why I must provide an option for him to flip the images/clips. I`ve used
an embeddeb browser to display the SWF files. The flipping option has already
been implemented for all the other formats, including the content on the
embedded web browser that`s outside the flash plugin.

Now, that (hopefully) it`d become clearer. Is there a way to go around that?

Thanks.
AndersonBrunozi
2009-03-11 16:15:24 UTC
Permalink
Thanks.

I made a flash movieclip that can load another clip and display it flipped.

Now, I've got another question: Can I get the original size of the loaded
movieclip? If so, I think I could scale it to fit the loader clip.
Or, is there another way I can scale it to fit the loader movieclip without
knowing the loaded clip size?
Rob Dillon
2009-03-11 23:22:07 UTC
Permalink
Use the loader's complete event to call a function that reads the loaded clip's width and height, then you can change them.
webtwist-design.com
2009-03-13 15:17:39 UTC
Permalink
Thanks rob.
I was looking for the same information and you provided me with the answer.
Loading...