Click to See Complete Forum and Search --> : flash as3, movie clip listener, mouse event, annoying child help


tslice
09-16-2008, 01:08 PM
controls_mc.addEventListener( MouseEvent.MOUSE_OVER, controls_over );
controls_mc.addEventListener( MouseEvent.MOUSE_OUT, controls_out );
function controls_over( e:MouseEvent ):void {
var showTween:Tween = new Tween(controls_mc, 'alpha', None.easeOut, .5, 1, .15, true);
}
function controls_out( e:MouseEvent ):void {
var hideTween:Tween = new Tween(controls_mc, 'alpha', None.easeIn, 1, .5, .15, true);
}

Within controls_mc there is a child movie clip called timer_mc that displays the amount of time before the slides will switch. Anytime I mouse over the timer_mc within the controls_mc it calls the MOUSE_OVER and MOUSE_OUT handlers. Obviously this is undesirable.

timer_mc has no handlers of any-kind at the moment (it just loops through its frames) and controls_mc is directly on the stage.

r4gn0
09-22-2008, 10:43 AM
why dont you change the events to "MouseEvent.ROLL_OVER" and "MouseEvent.ROLL_OUT" ??? maybe it wolud help

tslice
09-22-2008, 03:34 PM
Well, I already gave up on that idea and made the controls static. When time allows I'll work on it further.