PDA

View Full Version : Strange problem. Increasing _alpha isn't complete. Help! please



mx-guest2004
June 13th, 2004, 08:05 AM
Hi!
I have a main movie which I load a few buttons into in turn. The problem is when I start the movie (during the starting), if I minimize the window and then back to normal window (IE 6.0) some of the buttons espesially those which must appear first does not show up on the screen. They are there and I can click on them and they do their job, but they are invisible
The code I use for loding each button (25 fps):
mx-guest2004 :)

_root.createEmptyMovieClip("butt1",1);
loadMovie("myButton.swf", "butt1");
setProperty("butt1", _x, 425);
setProperty("butt1", _y, 150);
setProperty("butt1", _alpha, 0);
function reAlpha(clip, targ, speed) {
if (clip._alpha<targ) {
clip._alpha += speed;
} else {
clearInterval(reAlphaInt);
}
}
reAlphaInt = setInterval(reAlpha, 20, butt1, 100, 8);

Prophet
June 13th, 2004, 07:25 PM
im not v good wit intervals but shouldnt it be
reAlphaInt = setInterval(reAlpha(), 20, butt1, 100, 8)
?
and do you need the last 3 parameters? (i dont even know wat the last 2 parameters r referring to!)

and i presume u have defined targ before this script?

Prophet.