Callback using setInterval.Pls help

:trout: jus wanna ask if some1 could help me with this: onClick the button, i am suppose to run the functions. There r 4 in all. but when i place the functions in setInterval, the flow does not run smoothly. how do i get the functions 2 flow continously and smoothly? The code goes like this:

on (press) {
#include “LED_code.as”

myInterrupt=function(){
	g=getTimer();
	if(g>10000){
		clearInterval(idl);
	}
};
idl=setInterval(myInterrupt,1000);
setInterval(runFunction1,2000);
setInterval(runFunction2,4000);
setInterval(runFunction3,6000);

}