Changing media texture on runtime

What is that custom event? How do I create it?