# AS 3: can a child call a function in its parent

**URL:** https://forum.kirupa.com/t/as-3-can-a-child-call-a-function-in-its-parent/283554
**Category:** flash
**Created:** [March 8, 2009, 12:05am UTC](https://forum.kirupa.com/t/as-3-can-a-child-call-a-function-in-its-parent/283554 "2009-03-08T00:05:30Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![eforblue](https://avatars.discourse-cdn.com/v4/letter/e/c4cdca/32.png) [@eforblue](https://forum.kirupa.com/u/eforblue)
#### Post date: [March 8, 2009, 12:05am UTC](https://forum.kirupa.com/t/as-3-can-a-child-call-a-function-in-its-parent/283554/1 "2009-03-08T00:05:30Z")

</div>

Hi:

I have a function (let’s call it testFunction for right now ) on the actions layer in the main timeline  
There is a movie clip with 15 frames long in the library

i want to add a child of the movie clip on the stage, and call testFunction when it finishes playing

how can i do?  
i tried to call it in the child but nothing works

Or, is there any way to show child on the stage for only a period of time like 1 second and then remove it automaticly??
