# Heirarchy of empty clips

**URL:** https://forum.kirupa.com/t/heirarchy-of-empty-clips/115026
**Category:** Uncategorized
**Created:** [July 4, 2004, 8:16pm UTC](https://forum.kirupa.com/t/heirarchy-of-empty-clips/115026 "2004-07-04T20:16:10Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![cowboy71](https://avatars.discourse-cdn.com/v4/letter/c/cc9497/32.png) [@cowboy71](https://forum.kirupa.com/u/cowboy71)
#### Post date: [July 4, 2004, 8:16pm UTC](https://forum.kirupa.com/t/heirarchy-of-empty-clips/115026/1 "2004-07-04T20:16:10Z")

</div>

I’m having trouble w/ external SWF’s functions once loaded into empty mc’s. I have my main stage w/ an empty movie clip sitting on the stage. I load external parts of the site into this clip. Now I have a swf which is the photo section. within that section I a empty clip sitting on that stage. I have buttons on that stage which call upon the external swf’s which hold the main photos. When I preview the main photo swf everything works fine. When I load that onto the main stage of the site, nothing works. here is the code I’m using within the main photo section. The rollovers are not working either. I know it’s a bit more info I need to add but not sure how to go about it.  
on (rollOver, dragOver){  
\_root.thumbs.heart.gotoAndPlay(2);  
}  
on (rollOut, dragOut){  
\_root.thumbs.heart.gotoAndPlay(9);  
}  
on(release){  
unloadMovie("\_root.photoloader")

loadMovie(“mary.swf”,"\_root.photoloader");  
}  
Really need some advice or a point in the right direction w/ this.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [July 4, 2004, 11:12pm UTC](https://forum.kirupa.com/t/heirarchy-of-empty-clips/115026/2 "2004-07-04T23:12:39Z")

</div>

Maybe it would be better if you just remove the whole photoloader, and than create a new one with your new external \*.swf in it.

//--------------------------------------------------------\>  
// this is a function that you must place on your main timeline:  
function loadMyMovie(externalMovieName,oldHolderName,newHolderName){  
\_root.removeMovie(oldHolderName);  
\_root.createEmptyMovieClip(newHolderName);  
loadMovie(externalMovieName,newHolderName);  
}  
// the action on your button:  
on(release){  
\_root.loadMyMovie(“mary.swf”,“photoloader”,“photoloader”);  
}  
//--------------------------------------------------------\>

Good luck,  
Martijn Himpers
