# Access of undefined property error?

**URL:** <https://forum.kirupa.com/t/access-of-undefined-property-error/258498>\
**Category:** flash\
**Created:** [April 24, 2008, 3:35pm UTC](https://forum.kirupa.com/t/access-of-undefined-property-error/258498 "2008-04-24T15:35:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![vivaretro](https://avatars.discourse-cdn.com/v4/letter/v/a3d4f5/32.png) [@vivaretro](https://forum.kirupa.com/u/vivaretro)\
**Post date:** [April 24, 2008, 3:35pm UTC](https://forum.kirupa.com/t/access-of-undefined-property-error/258498/1 "2008-04-24T15:35:04Z")

</div>

I’m sure this is just a rookie mistake, but I’m getting the following error:

1119: Access of possibly undefined property scaleX through a reference with static type Function.

from the following code:  
public function zoomCounty():void  
{  
{  
var countyTweenZoomX:Tween = new Tween(selectedCounty, “scaleX”, Regular.easeInOut, selectedCounty.scaleX , (selectedCounty.scaleX +countyEndSize), framesForZoomIn, false);  
var countyTweenZoomY:Tween = new Tween(selectedCounty, “scaleY”, Regular.easeInOut, selectedCounty.scaleY , (selectedCounty.scaleY +countyEndSize), framesForZoomIn, false);  
var countyTweenPositionX:Tween = new Tween(selectedCounty, “x”, Regular.easeInOut, selectedCounty.x , countyEndPositionX, framesForZoomIn, false);  
var countyTweenPositionY:Tween = new Tween(selectedCounty, “y”, Regular.easeInOut, selectedCounty.y , countyEndPositionY, framesForZoomIn, false);

```
        }
```
