# Question about loadMovie within onClipEvent

**URL:** <https://forum.kirupa.com/t/question-about-loadmovie-within-onclipevent/255220>\
**Category:** Uncategorized\
**Created:** [March 20, 2008, 5:49am UTC](https://forum.kirupa.com/t/question-about-loadmovie-within-onclipevent/255220 "2008-03-20T05:49:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Juhanthus](https://avatars.discourse-cdn.com/v4/letter/j/f07891/32.png) [@Juhanthus](https://forum.kirupa.com/u/Juhanthus)\
**Post date:** [March 20, 2008, 5:49am UTC](https://forum.kirupa.com/t/question-about-loadmovie-within-onclipevent/255220/1 "2008-03-20T05:49:19Z")

</div>

Hi guys having a lil’ problem with my flash homework hope ya all can help me out a abit.

So I have 2 movieclips - [COLOR=Blue]control\_mc[/COLOR] and [COLOR=Blue]container\_mc[/COLOR]. [COLOR=Blue]container\_mc[/COLOR] was given the instance name “[COLOR=DarkRed]container1[/COLOR]”.

What I’m trying to do is to load an external swf, [COLOR=Red]myMovie.swf[/COLOR] into [COLOR=Blue]container\_mc[/COLOR] using actionscripts from within [COLOR=Blue]control\_mc[/COLOR].

So in [COLOR=Blue]control\_mc[/COLOR], i have these:

onClipEvent(load){  
loadMovie(“myMovie.swf”,"[COLOR=DarkRed]container1[/COLOR]");  
}

But it won’t work… i double checked the names and file names nothing wrong with them. And I actually try using

loadMovie(“myMovie.swf”,"[COLOR=DarkRed]container1[/COLOR]");

on the normal timeline and the swf can be loaded. But not when I moved it into onClipEvent(load) parameter within [COLOR=Blue]control\_mc[/COLOR]…

is there a special way in using loadMovie with onClipEvent()? or there’s just something wrong with my script?

Many many thx in advance.

P/S: made a little amendments, i forgot to mention bout the instance name earlier. =\
