# \[AS3\] Context Sensitive Mouse

**URL:** <https://forum.kirupa.com/t/as3-context-sensitive-mouse/208947>\
**Category:** flash\
**Created:** [December 4, 2006, 4:57pm UTC](https://forum.kirupa.com/t/as3-context-sensitive-mouse/208947 "2006-12-04T16:57:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dazzer](https://avatars.discourse-cdn.com/v4/letter/d/e9a140/32.png) [@Dazzer](https://forum.kirupa.com/u/Dazzer)\
**Post date:** [December 4, 2006, 4:57pm UTC](https://forum.kirupa.com/t/as3-context-sensitive-mouse/208947/1 "2006-12-04T16:57:32Z")

</div>

This is related to a project I’m working.

Its a design application. And so, there’ll be several tools to use.

Which would be a better way to proceed to acheive context-sensitive functions?

1. global boolean values

- have boolean values that dictate whether the state is active, and check for that state whenever a mouseevent occurs?

1. single “state” value

- 1 value that mouseevent checks for to determine the state the mouse is in?

1. changing listeners to specific objects that will accept that event?

Thanks in advanced for any replies.
