Hello Flashers!
In order to fade-in 3 Movieclips that I have in 1 frame, I’m using this AS code for each MC:
[AS]
setProperty (MC1, _alpha, 0);
setProperty (MC2, _alpha, 0);
setProperty (MC3, _alpha, 0);
[/AS][AS]
onClipEvent (enterFrame) {
if (_root.MC1._alpha<100) {
_alpha += 3;
}
}
onClipEvent (enterFrame) {
if (_root.MC2._alpha<100) {
_alpha += 3;
}
}
onClipEvent (enterFrame) {
if (_root.MC3._alpha<100) {
_alpha += 3;
}
}
[/AS]
It all works fine, the fade-in effect is accomplished but I’ve found out that Flash keeps on checking over and over if the condition is made (although it has already reached the 100 alpha value). The result is that the Flash movie eats almost any computer’s resources up to 100% because it keeps on checking these 3 values endlessly.
Is there a way to tell Flash to stop checking these values once the condition is reached (true)? Or is there another way to get the same result with a similar AS code?
Thank you very much!
Manare