Dissolve Movie Clip

Does anyone know how to make the dissolve effect on a movie clip?

You’ll have to gradually reduce the _alpha value, either in a motion tween or using actionscript.

How do you do it using actionscript?

You can do it in a frame loop, but I suggest in an “onClipEvent(){}”

If you wanted to reserve the effect for when you wanted it to happen, then you could do something like this.

select the movie clip. Open the “Actions” panel. enter the following script

onClipEven(load){
this.flag=false;
}
onClipEven(enterFrame){
if(flag==true&&this._alpha>0){
this._alpha-=5;
}else if(flag==false&&this._alpha<100){
this._alpha+=5;
}
}

Then create a button and attach this code to it

on(release){
if(_root.myMovieClip.flag==false){
_root.ball.flag=true;
}else if(_root.myMovieClip.flag==true){
_root.ball.flag=false;
}
}

Where “myMovieClip” is the “Instance” name of the movie clip with the fade code on it.

Mind you, this is only one way to do this. If you wanted to give this ability to every movie clip in the FLA, I could show you how to do that as well.