# Detecting activity on the stage

**URL:** <https://forum.kirupa.com/t/detecting-activity-on-the-stage/264331>\
**Category:** flash\
**Created:** [June 25, 2008, 3:12am UTC](https://forum.kirupa.com/t/detecting-activity-on-the-stage/264331 "2008-06-25T03:12:11Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![cosmicloverocks](https://avatars.discourse-cdn.com/v4/letter/c/dfb087/32.png) [@cosmicloverocks](https://forum.kirupa.com/u/cosmicloverocks)\
**Post date:** [June 25, 2008, 3:12am UTC](https://forum.kirupa.com/t/detecting-activity-on-the-stage/264331/1 "2008-06-25T03:12:11Z")

</div>

how do i detect if there is no activity going on the stage.

---

<div class="post-metadata">

**Author:** ![Fidodo](https://avatars.discourse-cdn.com/v4/letter/f/779978/32.png) [@Fidodo](https://forum.kirupa.com/u/Fidodo)\
**Post date:** [June 25, 2008, 5:40am UTC](https://forum.kirupa.com/t/detecting-activity-on-the-stage/264331/2 "2008-06-25T05:40:21Z")

</div>

Be more specific.

---

<div class="post-metadata">

**Author:** ![Felixz](https://avatars.discourse-cdn.com/v4/letter/f/ecb155/32.png) [@Felixz](https://forum.kirupa.com/u/Felixz)\
**Post date:** [June 25, 2008, 11:46am UTC](https://forum.kirupa.com/t/detecting-activity-on-the-stage/264331/3 "2008-06-25T11:46:46Z")

</div>

U can use Timer, Event.MOUSE\_LEAVE, Event.MOUSE\_MOVE.

---

<div class="post-metadata">

**Author:** ![cosmicloverocks](https://avatars.discourse-cdn.com/v4/letter/c/dfb087/32.png) [@cosmicloverocks](https://forum.kirupa.com/u/cosmicloverocks)\
**Post date:** [June 25, 2008, 6:02pm UTC](https://forum.kirupa.com/t/detecting-activity-on-the-stage/264331/4 "2008-06-25T18:02:24Z")

</div>

User Interaction Mouse move and Mouse press

---

<div class="post-metadata">

**Author:** ![Fidodo](https://avatars.discourse-cdn.com/v4/letter/f/779978/32.png) [@Fidodo](https://forum.kirupa.com/u/Fidodo)\
**Post date:** [June 26, 2008, 1:19am UTC](https://forum.kirupa.com/t/detecting-activity-on-the-stage/264331/5 "2008-06-26T01:19:20Z")

</div>

Ok, I wasn’t sure if you meant input activity or any activity. That latter would be a much harder question. So to elaborate on felixz answer: You probably don’t mean any time when there is no activity because that would happen constantly as the user naturally pauses. You probably want this event to happen after there’s no activity for a second or two. So create a timer, and every time a mouse event dispatches, reset the timer to zero. Whatever no activity reaction you want will be put in the timer dispatch event.
