Bernie X
03-02-2002, 03:39 PM
Here's the sccop:
I've declared a variable chgAlpha, and then I change the value of chgAlpha with mouseEvents from false to true.
The change in value is suppose to affect the MC obj action below, but only the 2nd if cond works.
The MC can change its alpha to 100 when chgAlpha=true, but when chgAlpha goes to false (in the button obj action) nothing happens to the MC. I have eliminated all error possiblities to the onClipEvent, but I don't understand what could be wrong.
onClipEvent (enterFrame) {
if (!_root.chgAlpha) {
scene01._alpha = 0;
}
if (_root.chgAlpha) {
setProperty (scene01, _alpha, 100);
}
}
Please advise.
BX
I've declared a variable chgAlpha, and then I change the value of chgAlpha with mouseEvents from false to true.
The change in value is suppose to affect the MC obj action below, but only the 2nd if cond works.
The MC can change its alpha to 100 when chgAlpha=true, but when chgAlpha goes to false (in the button obj action) nothing happens to the MC. I have eliminated all error possiblities to the onClipEvent, but I don't understand what could be wrong.
onClipEvent (enterFrame) {
if (!_root.chgAlpha) {
scene01._alpha = 0;
}
if (_root.chgAlpha) {
setProperty (scene01, _alpha, 100);
}
}
Please advise.
BX