Groups | Blog | Home
all groups > flash (macromedia) > april 2007 >

flash (macromedia) : movie button issue


hutch-diggens
4/17/2007 11:24:27 PM
hey there all,
I have a movie clip that has a few layers and a button on one of the layers.
on the button I have this code:
on(rollOver){
gotoAndPlay("over");
}
on(rollOut){
gotoAndPlay("out");
}

Now, this mc is on the Main timeline and has an istance name "home_btn". I
have a sliding menu type navagation going on and have some code for the
"home_btn" on the main timeline:
home_btn.onRelease = function(){
menuSlide(contentHold.content1);
}

WHen I try to use the code on the maintime line and the code on the button
inside the mc--it ofcourse doesn't work.
How can I reference the rollover actions on the inside of the mc from the main
timeline?
Or, is there an easy away around this?

thanks,
h

kglad
4/18/2007 3:24:51 AM
you can't expect mouse events to be detected by a button inside a movieclip
where the movieclip has mouse handlers assigned. the movieclip will interecept
the mouse events so the child buttons cannot respond.

to remedy, either assign all mouse handlers on the youngest generation or use
a hitTest() for one of the generations.
AddThis Social Bookmark Button