# Using the return vaiable

**URL:** <https://forum.kirupa.com/t/using-the-return-vaiable/285704>\
**Category:** Uncategorized\
**Created:** [April 4, 2009, 10:45am UTC](https://forum.kirupa.com/t/using-the-return-vaiable/285704 "2009-04-04T10:45:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![RossKidd](https://avatars.discourse-cdn.com/v4/letter/r/53a042/32.png) [@RossKidd](https://forum.kirupa.com/u/RossKidd)\
**Post date:** [April 4, 2009, 10:45am UTC](https://forum.kirupa.com/t/using-the-return-vaiable/285704/1 "2009-04-04T10:45:13Z")

</div>

Hi,

I call my method with this in my maintimeline

midBox.expand();

and in my class

public function expand()

```
    {
        
        trace('hello');
        
        var testVar:String = "this is my test";
        return testVar;
        
    }

```

How do I then access the testVar?

Thanks,

RK
