# External swf - movieclip not functioning in main movie

**URL:** https://forum.kirupa.com/t/external-swf-movieclip-not-functioning-in-main-movie/67612
**Category:** Uncategorized
**Created:** [October 18, 2004, 4:31am UTC](https://forum.kirupa.com/t/external-swf-movieclip-not-functioning-in-main-movie/67612 "2004-10-18T04:31:04Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![dw1](https://avatars.discourse-cdn.com/v4/letter/d/c6cbf5/32.png) [@dw1](https://forum.kirupa.com/u/dw1)
#### Post date: [October 18, 2004, 4:31am UTC](https://forum.kirupa.com/t/external-swf-movieclip-not-functioning-in-main-movie/67612/1 "2004-10-18T04:31:04Z")

</div>

I have loaded an external swf into an empty movie clip in my main movie.  
Movie clip works fine when I test the external swf by itself. Once I test the main movie and load the ext. swf file the movie clip stops working.

This movie clip will act as a button. It is a small folder tab that will move up once clicked and move down when it is clicked again.  
Will changing the \_root to \_parent work?

Thanks.  
DW

AS for the movieclip:

onClipEvent (load) {  
speed = \_root.variSpeed;  
}  
onClipEvent (enterFrame) {  
if (\_root.dotclicked) {  
targetY = 340;  
Ydiff = targetY-\_root.dot.\_y;  
\_root.dot.\_y += Ydiff/speed;  
}  
if(targety==int(\_root.dot.\_y)){  
\_root.dotclicked == false;  
\_root.gotoAndPlay(“speedUp”);  
}  
}
