PDA

View Full Version : Alpha Value Not Working Correctly For MovieClip


aaron_da_killa
06-29-2009, 05:34 AM
Hey

I'm wanting to create a simple red flash effect which entails a red flash suddenly appearing and fading away on screen.

I'm currently doing this by creating a red box as big as the screen and made it a movieclip. I'm then decrementing this movieclips alpha value from 100 to 0 but ofcourse, it's not as simple as that. :(

It seems that any alpha value greater than 0 makes the object have 100% alpha. So what's going on? How should I do it?

lordofduct
06-29-2009, 05:36 AM
Hey

I'm wanting to create a simple red flash effect which entails a red flash suddenly appearing and fading away on screen.

I'm currently doing this by creating a red box as big as the screen and made it a movieclip. I'm then decrementing this movieclips alpha value from 100 to 0 but ofcourse, it's not as simple as that. :(

It seems that any alpha value greater than 0 makes the object have 100% alpha. So what's going on? How should I do it?

Alpha value is a value from 0->1. 1 being 100% and 0 being 0%.

Think like in math, what is the actual numeric value for 60%??? 0.6

aaron_da_killa
06-29-2009, 05:43 AM
Sweet, got it working now!

Cheers lordofduct. :cool: