# Event listener for Group

**URL:** <https://phaser.discourse.group/t/event-listener-for-group/3992>\
**Category:** Phaser 3\
**Created:** [October 18, 2019, 7:09am UTC](https://phaser.discourse.group/t/event-listener-for-group/3992 "2019-10-18T07:09:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![knighter](https://avatars.discourse-cdn.com/v4/letter/k/71e660/32.png) [@knighter](https://phaser.discourse.group/u/knighter)\
**Post date:** [October 18, 2019, 7:09am UTC](https://phaser.discourse.group/t/event-listener-for-group/3992/1 "2019-10-18T07:09:10Z")

</div>

How to attach mouse events listeners to `Phaser.GameObjects.Group` child class?  
Group consist of objects instantiated via `create` method inside the `Phaser.GameObjects.Group` class.

---

<div class="post-metadata">

**Author:** ![samme](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/samme/32/5275_2.png) [@samme](https://phaser.discourse.group/u/samme)\
**Post date:** [October 18, 2019, 8:48pm UTC](https://phaser.discourse.group/t/event-listener-for-group/3992/2 "2019-10-18T20:48:38Z")

</div>

> [@Group of interactive objects (v3)](https://phaser.discourse.group/t/group-of-interactive-objects-v3/971):
>
> Here are two ways to make a group of interactive objects. This uses the hitArea and hitAreaCallback properties of the [GroupCreateConfig](https://photonstorm.github.io/phaser3-docs/global.html#GroupCreateConfig), in [createMultiple()](https://photonstorm.github.io/phaser3-docs/Phaser.GameObjects.Group.html#createMultiple__anchor). Each group member will use a distinct hit area shape identical to the others, positioned on itself. This uses the [SetHitArea](https://photonstorm.github.io/phaser3-docs/Phaser.Actions.html#.SetHitArea__anchor) action. That action also takes hitArea and hitAreaCallback arguments, but you can omit them; in that case it works just like [setInteractive()](https://photonstorm.github.io/phaser3-docs/Phaser.GameObjects.GameObject.html#setInteractive__anchor) and uses each object’s texture frame as a hit area.
