# Start external SWF when movie clip gets to Y position

**URL:** <https://forum.kirupa.com/t/start-external-swf-when-movie-clip-gets-to-y-position/253661>\
**Category:** flash\
**Created:** [March 3, 2008, 10:28pm UTC](https://forum.kirupa.com/t/start-external-swf-when-movie-clip-gets-to-y-position/253661 "2008-03-03T22:28:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![showerx](https://avatars.discourse-cdn.com/v4/letter/s/22d042/32.png) [@showerx](https://forum.kirupa.com/u/showerx)\
**Post date:** [March 3, 2008, 10:28pm UTC](https://forum.kirupa.com/t/start-external-swf-when-movie-clip-gets-to-y-position/253661/1 "2008-03-03T22:28:28Z")

</div>

Hi,  
I have one movie clip that when clicked on moves to the left of the screen, after it gets there I want another and exteral swf to load. But I dont know how to get the external clip to load after the movie clip gets to the left side of the screen…  
Here is what I got so far…

square\_mc.onRelease = function()  
{ square\_mc.\_x = 30;  
square\_mc.\_y = 180;  
}  
square\_mc.onEnterFrame = function()  
if(square\_mc.\_y = 180)  
{ \_parent.createEmptyMovieClip(“container\_mc”, \_parent.getNextHighestDepth());  
container\_mc.loadMovie(“slideshow.swf”);  
}

Baicly the idea is when square\_mc get to the Y position of 180, run the external clip.

Any ideas, thank you.  
Adrien
