# Function...errr help please with get in Actionscript3

**URL:** <https://forum.kirupa.com/t/function-errr-help-please-with-get-in-actionscript3/330161>\
**Category:** flash\
**Created:** [December 7, 2012, 11:25pm UTC](https://forum.kirupa.com/t/function-errr-help-please-with-get-in-actionscript3/330161 "2012-12-07T23:25:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![FJW](https://avatars.discourse-cdn.com/v4/letter/f/ee59a6/32.png) [@FJW](https://forum.kirupa.com/u/FJW)\
**Post date:** [December 7, 2012, 11:25pm UTC](https://forum.kirupa.com/t/function-errr-help-please-with-get-in-actionscript3/330161/1 "2012-12-07T23:25:54Z")

</div>

I have this setup on 2 classes where I am trying to get an array of Data back from a function call in class A.  
Could anyone help me with this please? best regards FJW

package  
{  
public class A  
{  
private var thefront:TheFront;  
private var theData:Array;  
public function A()  
{  
}  
public function needData():void  
{  
thefront = new TheFront();  
theFront.test();

}  
}

package  
{

```
public class TheFront 
{
    private var bArray:Array;
    
    public function TheFront()
    {
        trace("TheFront called");
                        
        bArray = new Array("A","B","C","D","E","F");
                            
    }
        
        public function set test():Array
        {
        trace("Testcalled");
        return (bArray);
        }
        
}//End Cons

```

}//End Package
