So, I'll try to explain this as best as I can: I have a canvas with a bunch of objects to touch have a highlighted state (swapping a background image as you can see here). I'm only showing 2 examples here for the objects 'applications' and 'enterprises', but there are many of these objects. My goal is to allow one object to have its hover image, while the rest do not. Once I click on another object, I want that object's hover image to activate, and hover images for all other objects removed (essentially getting rid of the 'touched mouseout' function.
I'd like to say something like: 'If touchstart/mouseover this object, use its hover image, and disable all hover images on all other objects.
applications.on('touchstart mouseover', function() {
writeMessage(messageLayer, 'touchstart applications circle');
this.setFill({ image: images.applicationshover});
layer.draw();
});
applications.on('touchend mouseout', function() {
writeMessage(messageLayer, 'Mouseup applications circle');
this.setFill({ image: images.applicationsimage});
layer.draw();
});
enterprises.on('touchstart mouseover', function() {
writeMessage(messageLayer, 'touchstart enterprises circle');
this.setFill({ image: images.enterpriseshover});
layer.draw();
});
enterprises.on('touchend mouseout', function() {
writeMessage(messageLayer, 'Mouseup enterprises circle');
this.setFill({ image: images.enterprisesimage});
layer.draw();
});