Need help in setinterval

hi there,
am developing a game using action script2. in some situation my logic sets the setinterval like the following code…

var myInterval=setInterval(echo,2000);
myInterval=setInterval(echo,2000);
function echo(){
clearInterval(myInterval);
trace(“Hai”);
}

that is setting the setinterval for two times for same variable…if this happens means the setInterval is not cleared as per my code…
please anybody help me…if u want more details on this means, am ready to give…

thanks in advance,
Palanisamy