Movie Clip Button inside a Movie clip Button
Ok so I'm going crazy with creating a movie clip button inside a movie clip.
I have it working well for onRollover, but onRollout the Header_mc looks like it is not looking at the code. It is driving me crazy. Here is my Action Script code to control the two movieclip buttons.
I basicly want the Header_mc to stop when over the B_photo and on Rollout of the B_photo. I don't know why it is not working. I have attached screenshots of my Header_mc and the SWF so you can see what frame I'm calling.
/*--------------Photographers Button------------*/
this.B_photo.onRollOver = function() {
Header_mc.gotoAndPlay("_stop");
B_photo.gotoAndPlay("_over");
}
this.B_photo.onRollOut = function() {
Header_mc.stop("_stop");
B_photo.gotoAndPlay("_out");
}
this.B_photo.onRelease = function() {
B_photo.getURL("http://www.macromedia.com", "_parent");
}
/*--------------Main Header---------------------*/
this.Header_mc.onRollOver = function() {
Header_mc.gotoAndPlay("_over");
}
this.Header_mc.onRollOut = function() {
Header_mc.gotoAndPlay("_out");
}
this.Header_mc.onRelease = function() {
Header_mc.gotoAndStop("_out");
}
|