# Can't call a function

**URL:** <https://forum.kirupa.com/t/cant-call-a-function/243996>\
**Category:** Uncategorized\
**Created:** [November 13, 2007, 12:44pm UTC](https://forum.kirupa.com/t/cant-call-a-function/243996 "2007-11-13T12:44:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![djflame](https://avatars.discourse-cdn.com/v4/letter/d/db5fbb/32.png) [@djflame](https://forum.kirupa.com/u/djflame)\
**Post date:** [November 13, 2007, 12:44pm UTC](https://forum.kirupa.com/t/cant-call-a-function/243996/1 "2007-11-13T12:44:37Z")

</div>

Hello again,

so i have that on the stage:  
\*\*mc  
mc1 (child of mc)  
mc2 (child of mc)  
function “init(\_aParam:Array)” in mc1

\*\*I am in **mc2** and i wanna call **init(someArray)**.  
I’m doing this with: \*\*MovieClip(parent).mc1.init(theArray);  
\*\*and it says: \*\*TypeError: Error #1009: Cannot access a property or method of a null object reference.

\*\*So … how can i call this function …  
Please help … :crying:
