Well if your using the beta for C2 then
--onTouch of Object
-> call foo function
--on some other condition
-> call foo function
--foo function
-> do stuff
------------------------------------
If your using the last stable build
var action = 0
--onTouch of Object
-> action = 1
--on some other condition
-> action = 1
--condition: compare action = 1
-> do stuff
Personally I like functions. They make like easier and they are less condition checks in the main loop :)