Hmm...Complex buttons with _root.container?!

Hi there,

I’m in the process of creating 2 websites. In the first, I used buttons on my main menu and used the tutorial on loading external swf files into a container movie clip (http://www.kirupa.com/developer/mx2004/transitions2.htm) and this worked a treat!

However, I’m onto another website now and am using the complex rollover/rollout effects button tutorial (http://www.kirupa.com/developer/mx2004/button_effect.htm) and am trying to combine both.

However, I can’t get a swf to load into the container movie clip.

Any advice?? I’ll be super grateful to anyone who can help!

Thanks!

Better post some code or something, we don’t have anything to go on :slight_smile:

Hi there,

Thanks for taking the time to look into this with me! This is the code that I am trying to use on the complex rollout/rollover button/movieclip:

on (release, releaseOutside) {
_root.container.loadMovie(“comingsoon.swf”)
}

I get the feeling that because the rest of the code:

*stop();

this.onEnterFrame = function(){
if(rewind == true){
prevFrame();
}
}

this.onRollOver = function(){
rewind = false;
play();
}

this.onRollOut = function(){
rewind = true;
}
*
…is embedded within the movieclip on the first frame, that this is where I should put my “onRelease” code. However, I’ve tried that and I can’t seem to get it to work!

I’m just not sure how to tweak the “onRelease” code to make it work to load an external swf file into a “container” movie clip. Is it because of where the code is or simply becasue that code is only suitable for buttons rather than movieclips?

Thanks in advance!!!