# dispatchEvent troubles

**URL:** <https://forum.kirupa.com/t/dispatchevent-troubles/299675>\
**Category:** flash\
**Created:** [November 9, 2009, 3:04pm UTC](https://forum.kirupa.com/t/dispatchevent-troubles/299675 "2009-11-09T15:04:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![zoooom](https://avatars.discourse-cdn.com/v4/letter/z/9dc877/32.png) [@zoooom](https://forum.kirupa.com/u/zoooom)\
**Post date:** [November 9, 2009, 3:04pm UTC](https://forum.kirupa.com/t/dispatchevent-troubles/299675/1 "2009-11-09T15:04:08Z")

</div>

Hi there,

having a few problems with transferring values from one class to another via dispatchEvent.

main.fla  
code/main.as (Doc class)  
code/game/card.as  
code/game/board.as

I can communicate an event between any of them fine using a dispatchEvent and addEventListener, and I can get values from the card & board actionscript files into main.as using e.target.\*

However for some reason I just cannot get a value to send from main.as to the card or board classes using this same method. And I’m literally stumped as to why. Any help would be massively appreciated, cheers!
