# Var to another function

**URL:** <https://forum.kirupa.com/t/var-to-another-function/236497>\
**Category:** flash\
**Created:** [August 21, 2007, 2:48pm UTC](https://forum.kirupa.com/t/var-to-another-function/236497 "2007-08-21T14:48:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ancide](https://avatars.discourse-cdn.com/v4/letter/a/57b2e6/32.png) [@Ancide](https://forum.kirupa.com/u/Ancide)\
**Post date:** [August 21, 2007, 2:48pm UTC](https://forum.kirupa.com/t/var-to-another-function/236497/1 "2007-08-21T14:48:49Z")

</div>

Alright, real quick and basic question. I have a var in one function and want to send that var to another function. Looked in flash help but didn’t get any smarter. This is what I got so far:

```php

        private var currentPos:int;
        
        public function Objects()
        {    
            trace(currentPos);
        }
        
        public function set easeAmount(e:int):void {
            currentPos = 122;
        }
       
        public function get easeAmount():int {
            return currentPos;
        }

```

Thanks for any help I can get
