About textureAsset of the Sprite.js

Hi, all !
I am using the Sprite.js in my project and have met a problem on changing the textureAsset when the sprite is clicked. I just did like this :

But nothing changed.

(PS: How can I solve this problem: Dashboard Header)

Thank you for your time !

If you look in the code of sprite library, you will find that it does not handles texture updates dynamically.
You could set it’s texture property to actual texture, which is musicIcon.resource in your case.

Thank you very much, max ! I will try it.