I have a box movie clip called box that fades in then pauses and then fades out. how can I set the interval before this plays?
Also as I am pretty new to this how do I get my post to be viewable as asctionscript properly?
function fadeIn() {
if (box._alpha<100) {
box._alpha += 1;
} else {
clearInterval(fadeInterval);
setTimeout(startOut, 4000);
}
}
function fadeOut() {
if (box._alpha>0) {
box._alpha -= 1;
} else {
clearInterval(fadeInterval);
}
}
function startOut() {
fadeInterval = setInterval(fadeOut, 30);
}
box._alpha = 0;
var fadeInterval = setInterval(fadeIn, 10);