function onComplete(){
// does something else
}
function doSomething(callback:Function){
// do something and when it's done...
callback();
}
doSomething(onComplete);
So instead of onComplete:Function, you should use onComplete:Void->Void. This means that the callback function has no arguments, and does not return anything.
As alternative, you also could use signals https://github.com/markknol/flambe-guide/wiki/Signal-Event-System