I have this function, which works fine:
Now, I want to pass the movie clip's name to it as a parameter. I have now:Code:function hideMenu() { editCity.menuMD._visible = false; } setInterval(hideMenu, 3000);
But it doesn't work.Code:menu="editCity.menuMD"; function hideMenu(menu) { menu._visible = false; } setInterval(hideMenu(men), 3000);
What am I doing wrong?
tnxinadvance