Controlling a movieclip with buttons

Hello everyone,
I am almost new to actionscript 3 but I did something like little games and other stuff .

This Class I am writing it’s not working in a strange way.

I leave the code here and would like an explanation on why using a button the gotoAndStop is ignored and getting rid of the button name is making it work.

I really need in my project this controls, to manage windows and menù:

I have a main movieclip in which I need the buttons (or nested movieclips) make something happens or memorize settings. Question is that I putted a trace and I see the frame flow, is like the initPanel() function is working the first time but it is ignored the second time I call it within the Button listener function. Just if I use some nested element it is not working but with a this target it is.

You will see the output

f1

after click

f1
f2

after clicking the button is sopposed to initialize again the panel

f1
f2
f1
f2

as if the initPanel() was not working and skips the

gotoAndStop(1);

Where is my mistake?