# Passing a string to be a custom event

**URL:** <https://forum.kirupa.com/t/passing-a-string-to-be-a-custom-event/314554>\
**Category:** flash\
**Created:** [October 1, 2010, 5:02pm UTC](https://forum.kirupa.com/t/passing-a-string-to-be-a-custom-event/314554 "2010-10-01T17:02:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rimacy](https://avatars.discourse-cdn.com/v4/letter/r/839c29/32.png) [@rimacy](https://forum.kirupa.com/u/rimacy)\
**Post date:** [October 1, 2010, 5:02pm UTC](https://forum.kirupa.com/t/passing-a-string-to-be-a-custom-event/314554/1 "2010-10-01T17:02:02Z")

</div>

Ayumilove sent:

```auto
//Within Button1.as class 
super.dispatchEvent(new CustomEvent("your custom message or data")); 
super.dispatchEvent(new CustomEvent(CustomEvent.AYUMILOVE_EVENT));  

```

and

```auto
var button1:Button = screenHandler.button1; 
button1.addEventListener(CustomEvent.AYUMILOVE_EVENT, triggerHandler)  

```

each instance will have to have it’s own event, how should i pass each instance its custom event?
