# Call main swf from external swf's timeline

**URL:** <https://forum.kirupa.com/t/call-main-swf-from-external-swfs-timeline/257804>\
**Category:** Uncategorized\
**Created:** [April 17, 2008, 8:47am UTC](https://forum.kirupa.com/t/call-main-swf-from-external-swfs-timeline/257804 "2008-04-17T08:47:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![aaleks](https://avatars.discourse-cdn.com/v4/letter/a/dec6dc/32.png) [@aaleks](https://forum.kirupa.com/u/aaleks)\
**Post date:** [April 17, 2008, 8:47am UTC](https://forum.kirupa.com/t/call-main-swf-from-external-swfs-timeline/257804/1 "2008-04-17T08:47:53Z")

</div>

Hi!  
I’ve got a movie with a few buttons in it. When you click on one of the buttons an external swf opens. At the same time a large, quare, white movieclip opens at the back of the external swf (the white mc is in the main movie). Okay, so for so good.  
In the external swf there is a close button. When you click the button, the external swf goes to frame 14 to show a short closing animation. The last frame contains the following code:

TweenLite.to(\_level0.contentback\_mc,1,{\_alpha:0});  
this.unloadMovie();

The first line is to make shure the large white mc becomes transparent again. The second line is - ofcourse - to unload the external swf.

The problem is that the first line doens’t work.  
When I trace the first line from the main movie, the output contains '\_level0.contentback\_mc;

Oh, and the external swf is loaded in an actionscript generation container (contentback\_mc).

Any suggestions how to make this work?

Thanks in advance!
