action script question
action script question
Out of context: Reply #4
- Started
- Last post
- 7 Responses
- Prime760
Harder:
have the MC always be updating its alpha channel with a
onClipEvent(enterFrame){
if(target==100) da=2;
if(_alpha >99) da=0;if(target==0) da=-2;
if(_alpha >99) da=0;_alpha += da;
}Then just have the button tell the moviename.target to be 100 or 0. Depending on the rate of fade you want you can do changing da (change in a). Perhaps da = (target - _alpha)/100; and da *= .9