Question
Scoping Problem
quote:
function sendMsg(s)
{
trace(s);
}
application.onConnect = function() { setInterval(sendMsg, 1000, "test"); }
When using code like that, setInterval can't reach sendMsg()... I know this seems like an incredibly newbie question... but how do I make it work?
I can't seem to figure out the scope of toplevel functions -- never needed to do this because everything else is tucked neatly in classes and it's mostly remoting...
