Fade to Black

How can I fade a MC to black? I know how to change the alpha. I guess I need to chnage the tint to black or any suggestions to get an orange colored MC to fade to Black.

Thanks in advance

:love:

On the first key frame, have your MC tinted orange or whatever color you wanted and on the next keyframe, have your MC black. Tween it and it will fade to black.

Here is a sample FLA. =)

Can you do that with an AS?

You sure can, but you’ll have to wait for the scripting Gurus to see this thread. I barely mastered the stop(); action last week. :stuck_out_tongue:

OK. Thanks

Here you go, just tell me if you don’t understand anything(-:

When I try to open the fla I get …unexpected format.

Am I the only one having problems with this fla?

I just looked at it too and got the same error which is strange. I’m using MX too.

I’m not sure why it didn’t work. I’ll try attaching it again, and if that doesn’t work, here’s the code:

[AS]
//replace all the occurences of my_mc with the name of your
//movieclip and the fadeMC._x and _y values with the _x and _y
//values of your clip.
createEmptyMovieClip(“fadeMC”,1000)
fadeMC._alpha = 0
with(fadeMC){
beginFill(0x000000)
lineTo(my_mc._width,0)
lineTo(my_mc._width,my_mc._height)
lineTo(0,my_mc._height)
lineTo(0,0)
endFill()
//the above code draws the black box which is going to fade.
}

_root.fadeMC._x = 214.8
_root.fadeMC._y = 179.7
fadeMC.onEnterFrame = function(){
fadeMC._alpha += 5
//this can change. if you want a faster fade, change it to 20, for
//example.
if(fadeMC._alpha > 100){
delete fadeMC.onEnterFrame
}
}
[/AS]