# Events eventsdispatcher

**URL:** <https://forum.kirupa.com/t/events-eventsdispatcher/315263>\
**Category:** Uncategorized\
**Created:** [October 21, 2010, 9:45am UTC](https://forum.kirupa.com/t/events-eventsdispatcher/315263 "2010-10-21T09:45:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jagguy](https://avatars.discourse-cdn.com/v4/letter/j/b487fb/32.png) [@jagguy](https://forum.kirupa.com/u/jagguy)\
**Post date:** [October 21, 2010, 9:45am UTC](https://forum.kirupa.com/t/events-eventsdispatcher/315263/1 "2010-10-21T09:45:19Z")

</div>

To dispatch an event with custom paramaters to be picked up in a parent class what do I do to this?  
say I want to pass an integer

```auto

package {
 
 import flash.events.Event;
 import flash.events.EventDispatcher;
 public class Watcher extends EventDispatcher {
  
  public static const VALUE_REACHED:String = "valueReached";
  
  private var _value:Number = 0;
  
  public function Watcher():void { }
  
  public function get Value():Number {
   return _value;
  }
  
  public function set Value(num:Number):void {
   _value = num;
   if (_value == 4) {
    var event:Event = new Event(Watcher.VALUE_REACHED);
    dispatchEvent(event);
   }
   
  }
    
 }

```
