Instead of passing in an operator, which is not possible in AS3, why not pass in a custom comparison function?
function actualFunction(passedValue:Number, compareFunction:Function) {
/* ... */
if(compareFunction(passedValue, staticValue)) {
/* ... Do something ... */
}
/* ... */
}
, :
actualFunction(6, function(x:Number, y:Number) {
return x > y;
});
actualFunction(6, function(x:Number, y:Number) {
return x < y;
});