Search the Community
Showing results for tags 'customeevent'.
Found 1 result
hi friends. I want dispatch a custom event for one sprite. for example: when click on bunny sprite. dispatch an event that name is : sayHello. i wirte this code: but when run and click on bunny show this error: but if i change this code: this.dispatchEvent to -> document.boy.dispatchEvent work successfuly. but i Want dispatch to my sprite or container . can do it????