Referencing functions within object properties does not work

I don’t think action1 is a predefined function…
you have to call it in the function draw()…
just like this

function draw(){
    action1();
}

HOPE IT WORKS…