Actionscript 3 将运算符传递给setInterval()actionscript

Actionscript 3 将运算符传递给setInterval()actionscript,actionscript-3,actionscript,Actionscript 3,Actionscript,我想指定setInterval()通过遵循LiraNuna的答案将运算符作为参数传递 function actualFunction(passedValue:Number, compareFunction:Function) { /* ... */ if(compareFunction(passedValue, staticValue)) { /* ... Do something ... */ } /* ... */ } actualFun

我想指定
setInterval()
通过遵循LiraNuna的答案将运算符作为参数传递

function actualFunction(passedValue:Number, compareFunction:Function) {
    /* ... */

    if(compareFunction(passedValue, staticValue)) {
        /* ... Do something ... */
    }

    /* ... */
}

actualFunction(6, function(x:Number, y:Number) {
     return x > y;
});
从这个链接

但是我似乎不知道怎么做,因为在启动
setInterva()
时只调用函数名

典型启动:

function actualFunction(passedValue:Number, compareFunction:Function) {
    /* ... */

    if(compareFunction(passedValue, staticValue)) {
        /* ... Do something ... */
    }

    /* ... */
}
setInterval(actualFunction,10)
现在,我想分配

actualFunction(6, function(x:Number, y:Number) {
     return x > y;
});
setInterval()
中,我将如何执行此操作?

尝试此操作(未测试):

有关更多信息,请阅读以下内容:


希望这能有所帮助。

我们如何包含“return x>y”,因为在其他情况下,我们也会使用“return xy和xy,另一个返回xGreat:)很高兴我能提供帮助:)
setInterval(actualFunction, 10, 6, function(x:Number, y:Number){return x > y});