# Movie Clip button in "open" position onLoad

**URL:** <https://forum.kirupa.com/t/movie-clip-button-in-open-position-onload/227880>\
**Category:** flash\
**Created:** [June 3, 2007, 2:05pm UTC](https://forum.kirupa.com/t/movie-clip-button-in-open-position-onload/227880 "2007-06-03T14:05:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![small\_guy](https://avatars.discourse-cdn.com/v4/letter/s/51bf81/32.png) [@small\_guy](https://forum.kirupa.com/u/small_guy)\
**Post date:** [June 3, 2007, 2:05pm UTC](https://forum.kirupa.com/t/movie-clip-button-in-open-position-onload/227880/1 "2007-06-03T14:05:18Z")

</div>

I have a series of 5 main buttons. The code below is for the home button and works fine.

There is also a rollover and rollout function attached to this which also works fine. (When you rollover any of the 5 main buttons the button being rolled over animates downward. When rolled out it animates back to its original position.)

btnHome\_mc.onRelease = function () {  
stick(“btnHome\_mc”);  
home2\_mc.attachMovie(“home\_mc”, “homePage”, this.getNextHighestDepth());  
porfolio\_mc.\_visible = false;  
mcLoader.unloadClip(harcup);  
mcLoader.unloadClip(galvette);  
mcLoader.unloadClip(wreck);  
mcLoader.unloadClip(trivia);  
mcLoader.unloadClip(jigsaw);  
gamesMenu\_mc.\_visible = false;  
mcLoader.unloadClip(contact);  
mcLoader.unloadClip(empty);  
}

What I would like to have happen, however, is that when the site first loads the home button is already in its open (rolled out) position, displaying the initial greeting.

I thought that this would work:

btnHome\_mc.onLoad = function () {  
stick(“btnHome\_mc”);  
home2\_mc.attachMovie(“home\_mc”, “homePage”, this.getNextHighestDepth());  
porfolio\_mc.\_visible = false;  
mcLoader.unloadClip(harcup);  
mcLoader.unloadClip(galvette);  
mcLoader.unloadClip(wreck);  
mcLoader.unloadClip(trivia);  
mcLoader.unloadClip(jigsaw);  
gamesMenu\_mc.\_visible = false;  
mcLoader.unloadClip(contact);  
mcLoader.unloadClip(empty);  
}

but it does not.

Any ideas/thoughts are appreciated.
