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.