PDA

View Full Version : Making clips flicker with AS [FMX]



WobblyFork
November 23rd, 2002, 02:03 PM
Anyone know if the following things are even possible?

1. Making a movie clip flicker via ActionScript (i.e., it's alpha changes constantly between two values for a set period of time)

2. 'Flipping' a movie clip horizontally via ActionScript


If so, I'd love to know how :) If not, just let me know so I stop wasting my time trying to figure out if I can :cyclops:

Thanks :)
- wobbly

andr.in
November 23rd, 2002, 02:18 PM
well... there may be(and I'm sure there are) other ways to make an mc flip but here's a good way:
let's say that the width of the mc is 222
mymc.width = -222
just make the width a negative value...
And to make an mc flicker. The easiest way is:

alpha = 100
mymc._alpha = -mcalpha

this actually makes the alpha 100, then -100, then 100, then -100 etc...
-100 is the same as 0 of course...
well.. these are just some easy ways of doiing such things...

WobblyFork
November 23rd, 2002, 02:36 PM
Interesting... thanks! I'll try them both out later and see if I'm all set :)