I have a problem in understanding the concept of changing an image source. I have a function that create an image on stage .I want the image to be changed when the user clicks on it. can any one give me an example? Thanks for Help
Here's how to change the image when an node is clicked:
Example code:
myNode.on('click',function(){
this.image( newImageObject );
layer.draw();
}