# AS2.0 Calling functions in MovieClips

**URL:** <https://forum.kirupa.com/t/as2-0-calling-functions-in-movieclips/229387>\
**Category:** flash\
**Created:** [June 16, 2007, 4:22pm UTC](https://forum.kirupa.com/t/as2-0-calling-functions-in-movieclips/229387 "2007-06-16T16:22:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dan0](https://avatars.discourse-cdn.com/v4/letter/d/97f17d/32.png) [@Dan0](https://forum.kirupa.com/u/Dan0)\
**Post date:** [June 16, 2007, 4:22pm UTC](https://forum.kirupa.com/t/as2-0-calling-functions-in-movieclips/229387/1 "2007-06-16T16:22:39Z")

</div>

Hey  
I have this REALLY wierd problem. I have a MovieClip that is attached onto the stage. In this MovieClip I have the init() function. When I try and call this function, after the MovieClip has been attached on stage it doesn’t work! I can’t belive it!

MovieClip Frame 1  
function init(){  
trace(“bleh”);  
}  
Root Frame 1  
this.attachMovie(“wipe”,“wipe”,1000);  
wipe.init();

Nothing is traced!!!  
Sorry to ask such a dumb question, I thought I knew better, if it doesn’t work I will just write the functions on the root. Meh  
Thanks for your help,  
Dan
