function bar(func) { func("Function as parameter"); } function foo(s) { trace("[foo] "+s); } function anotherFoo(s) { trace("[anotherFoo] "+s); } bar(foo); bar(anotherFoo);