please explain me, why the “code1” creates a smoother transition of alpha and “code2” doesn`t.
code1
onClipEvent (load) {
brems = 4;
soa = 40;
}
onClipEvent (enterFrame) {
y = soa-_alpha;
setProperty(this, _alpha, _alpha+y/brems);
}
code2
onClipEvent (load) {
ion = 100;
maria = 1;
}
onClipEvent (enterFrame) {
setProperty(this, _alpha, ion/maria);
}
Both codes are putted on 2 separately mcs, that contains each ones button The first button changes the soas value from code1
The second button changes the value of maria from code2.
Thank you