# Can you call a getter from a static function?

**URL:** <https://forum.kirupa.com/t/can-you-call-a-getter-from-a-static-function/276876>\
**Category:** flash\
**Created:** [December 4, 2008, 3:41pm UTC](https://forum.kirupa.com/t/can-you-call-a-getter-from-a-static-function/276876 "2008-12-04T15:41:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rustyleaf](https://avatars.discourse-cdn.com/v4/letter/r/a3d4f5/32.png) [@rustyleaf](https://forum.kirupa.com/u/rustyleaf)\
**Post date:** [December 4, 2008, 3:41pm UTC](https://forum.kirupa.com/t/can-you-call-a-getter-from-a-static-function/276876/1 "2008-12-04T15:41:22Z")

</div>

I am calling an instance of my boxes class (that draws boxes on the screen) from my document class. This class has a getter function that parses the array containing all the lines I have used to create the boxes. I can call that getter from my document class no trouble. But I have another PUBLIC STATIC class (call it my Dissolve class) that is required to dissolve these boxes from the screen. So I need to get the Array from the boxes class. I can’t seem to do it…

Here is the code for my getter function (Boxes Class):

```auto
public function get boxes():Array {
   return boxArr;
  }

```

Here is the code to get the Array from the document class where an instance of the boxes class has been created and called “box” I have turned it into a getter function to try and access it from the PUBLIC STATIC class Dissolve:

```auto
 public function get pbox():Array {
   tt = Array(box.boxes);
   return tt;
   trace("Got box from dboxesParser");
  }

```

And here finally is the DISSOLVE class I am trying to access it from:

```auto
package { 
 public class TraversePage {
  public static function st_bi():void {   
 
   var _tt:Array = Array(portfolio.pbox);
  }

```
