# Passing value to different class problem

**URL:** https://forum.kirupa.com/t/passing-value-to-different-class-problem/300522
**Category:** Uncategorized
**Created:** [November 23, 2009, 5:49am UTC](https://forum.kirupa.com/t/passing-value-to-different-class-problem/300522 "2009-11-23T05:49:57Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![n000bie](https://avatars.discourse-cdn.com/v4/letter/n/7993a0/32.png) [@n000bie](https://forum.kirupa.com/u/n000bie)
#### Post date: [November 23, 2009, 5:49am UTC](https://forum.kirupa.com/t/passing-value-to-different-class-problem/300522/1 "2009-11-23T05:49:57Z")

</div>

Hi,  
I have those 2 function inside a class named MenuScreen.as, What I want to do is send a value true or false to another class named Game.as

If the user clicked mouse icon the value must be true and if user clicked keyboard icon it must be false.

```auto
public function onClickStartKeyControl( event:MouseEvent):void
        {
            dispatchEvent( new NavigationEvent( NavigationEvent.START ) );
            
        }
        
        public function onClickStartMouseControl( event:MouseEvent):void
        {
            dispatchEvent( new NavigationEvent( NavigationEvent.START ) );
        }

```

Can some one help me please…
