A simple mouse over / mouse out button
Hello everybody,
i am trying to create a simple button that on mouseover has this code on the main timeline:
var frequency = 3;
stage.enableMouseOver(frequency);
this.btn_test.addEventListener("mouseover", fl_MouseOverHandler_2);
function fl_MouseOverHandler_2()
{
this.btn_test.play(2);
}while at mouseout it has this code:
var frequency = 3;
stage.enableMouseOver(frequency);
this.btn_test.addEventListener("mouseout", fl_MouseOutHandler_2);
function fl_MouseOutHandler_2()
{
alert("fuori")
}The problem is that the mouseout alert works fine but the mouseover does not.
If I could get the mouseover to work correctly I could replace the alert with the correct code.
The "btn_test" clip looks like this:

with a stop on the first frame and another stop on frame 10.
How can I fix the code for play on mouseover from frame 1 to frame 10 and play on mouseout from frame 11 to frame 20?
Thanks to anyone who can help me!

