kickstart1970
11-30-2003, 02:58 AM
Here is what I want to happen:
picture will fade in and then fade out automatically. Then a new picture will fade in and out, ect, ect. I can do this will buttons but how can I make this happen without using buttons?
Here is the code I have on my Movie Clip
onClipEvent (enterFrame) {
_root.alpha1 = "100";
currentalpha1 = _root.pic1._alpha;
difalpha1 = currentalpha1-_root.alpha1;
setProperty(_root.pic1, _alpha, currentalpha1-(difalpha1/5));
if(_root.pic1._alpha == 100){
_root.alpha2 = "100";
currentalpha2 = _root.pic2._alpha;
difalpha2 = currentalpha2-_root.alpha2;
setProperty(_root.pic2, _alpha, currentalpha2-(difalpha2/5));
}
}
Thanks,
KICK
picture will fade in and then fade out automatically. Then a new picture will fade in and out, ect, ect. I can do this will buttons but how can I make this happen without using buttons?
Here is the code I have on my Movie Clip
onClipEvent (enterFrame) {
_root.alpha1 = "100";
currentalpha1 = _root.pic1._alpha;
difalpha1 = currentalpha1-_root.alpha1;
setProperty(_root.pic1, _alpha, currentalpha1-(difalpha1/5));
if(_root.pic1._alpha == 100){
_root.alpha2 = "100";
currentalpha2 = _root.pic2._alpha;
difalpha2 = currentalpha2-_root.alpha2;
setProperty(_root.pic2, _alpha, currentalpha2-(difalpha2/5));
}
}
Thanks,
KICK