# Calling a child function

**URL:** https://forum.kirupa.com/t/calling-a-child-function/304446
**Category:** Uncategorized
**Created:** [February 8, 2010, 7:46am UTC](https://forum.kirupa.com/t/calling-a-child-function/304446 "2010-02-08T07:46:43Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![dillpickle102](https://avatars.discourse-cdn.com/v4/letter/d/3d9bf3/32.png) [@dillpickle102](https://forum.kirupa.com/u/dillpickle102)
#### Post date: [February 8, 2010, 7:46am UTC](https://forum.kirupa.com/t/calling-a-child-function/304446/1 "2010-02-08T07:46:43Z")

</div>

Hello!

I’m a newbie with actionscript so bear with me plz 🙂

I’m trying to call a function from a parent to a child, and it’s not working out. It returns:  
TypeError: Error #1006: value is not a function.  
at as3::Fdotty/frameLoop()

Here’s the code

> for (var l:int=0; l\<objectsOnBoard; l++)  
> {  
> objectArray[l].moveDot(xPosArray[l],yPosArray[l]);  
> }

it calls this function in the child class

> public function moveDot(x1:Number, y1:Number) :void{  
> x = x1;  
> y = y1;  
> }

Any help greatly appreciated!!
