# Calling a function of a parent?

**URL:** https://forum.kirupa.com/t/calling-a-function-of-a-parent/253950
**Category:** Uncategorized
**Created:** [March 6, 2008, 7:06pm UTC](https://forum.kirupa.com/t/calling-a-function-of-a-parent/253950 "2008-03-06T19:06:27Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![activa](https://avatars.discourse-cdn.com/v4/letter/a/8491ac/32.png) [@activa](https://forum.kirupa.com/u/activa)
#### Post date: [March 6, 2008, 7:06pm UTC](https://forum.kirupa.com/t/calling-a-function-of-a-parent/253950/1 "2008-03-06T19:06:27Z")

</div>

I have a function on the main timeline of a movie:

function somefunction (whichObject) {  
some action;  
}

My program loads a child swf. In that child swf, I have code to call the function in the parent:

parent.somefunction (someObject);

but AS3 gives me the error:

ReferenceError: Error #1069: Property somefunction not found on flash.display.Stage and there is no default value.  
at MethodInfo-7()

It’s easy to call functions in children, and I’m sure I’ve called a parent’s function before… what am I missing?
