View Full Version : Dissolve Movie Clip
tsw
July 10th, 2002, 12:07 PM
Does anyone know how to make the dissolve effect on a movie clip?
Iammontoya
July 10th, 2002, 12:09 PM
You'll have to gradually reduce the _alpha value, either in a motion tween or using actionscript.
tsw
July 10th, 2002, 12:12 PM
How do you do it using actionscript?
upuaut
July 10th, 2002, 12:50 PM
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.
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.