Quick noobish question

hi,

i have this one function that will be checking for hitTest between 3 objects. The function takes 3 parameters (object1, object2, object3).

The question is how would i add this function so it is checked on every frame my frame rate is 20 so how can i make it so that it is checked 20 times per second…

thanks for any input