Bind event to input buttons

Yes you can indeed, you just need to issue the instructions on the appropriate events after the page loads.

1 Like

Ok good! Can the event be a button click? Say I have a shape just a rectangle for each person. And I can click up or down to move them up or down in the canvas, one step. That is what i am working toward.
If I could get the id of the button, would which shape to move and whether to move it up or down.
Thanks

What you seem to be wanting to do, would be much easier to achieve by moving around on-page elements instead.

If though you want to carry on with the canvas, someone else will have to become involved with guiding you through how to achieve that. I can though point you to the following Canvas tutorial.

Paul thanks for the link. I am quite familiar with the canvas.
Maybe I need to learn about events. What do you think? Would that be a useful direction?
Thanks again

Hi,

I am now trying to solve this problem using an eventListener.

I have continued this on another thread,

Thanks

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.