i have a class that has something like this
public class Foo {
public var f:Function;
public void method(s:String)
{
  f.invoke(s);
}
}
so i need to assign to the f a function that takes an argument f(s), something like
myFoo.f = thefunction
function(s:String)
how to do all this, so it will work correctly ?