# Recieving events from the currently activ scenes

**URL:** <https://phaser.discourse.group/t/recieving-events-from-the-currently-activ-scenes/9232>\
**Category:** Phaser 3\
**Created:** [April 2, 2021, 7:15am UTC](https://phaser.discourse.group/t/recieving-events-from-the-currently-activ-scenes/9232 "2021-04-02T07:15:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kiroho](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/kiroho/32/5004_2.png) [@Kiroho](https://phaser.discourse.group/u/Kiroho)\
**Post date:** [April 2, 2021, 7:15am UTC](https://phaser.discourse.group/t/recieving-events-from-the-currently-activ-scenes/9232/1 "2021-04-02T07:15:30Z")

</div>

Hi,  
I just started with UI scenes and how to get events from other scenes via scene.get() and events.on().

Maybe I searched for the wrong things, but is there a way to listen to events from (all) currently active scenes? Or from “the scene that started this (the UI scene)”?

The reason is that I want to make a single UI scene class and use it on all level scenes, but by using scene.get(“sceneName”) I would have to write the same code only with different scene keys to listen to all possible scenes.  
I try to avoid that.

---

<div class="post-metadata">

**Author:** ![Milton](https://avatars.discourse-cdn.com/v4/letter/m/87869e/32.png) [@Milton](https://phaser.discourse.group/u/Milton)\
**Post date:** [April 2, 2021, 8:00am UTC](https://phaser.discourse.group/t/recieving-events-from-the-currently-activ-scenes/9232/2 "2021-04-02T08:00:51Z")

</div>

You could create a global eventEmitter.

`var eventEmitter = new Phaser.Events.EventEmitter();`

Then every scene can just use eventEmitter.emit() and on().

---

<div class="post-metadata">

**Author:** ![Kiroho](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/kiroho/32/5004_2.png) [@Kiroho](https://phaser.discourse.group/u/Kiroho)\
**Post date:** [April 2, 2021, 10:33am UTC](https://phaser.discourse.group/t/recieving-events-from-the-currently-activ-scenes/9232/3 "2021-04-02T10:33:01Z")

</div>

Works fine, thanks. 🙂
