Flash CS4 ignores the actions that I write...why?

Hi everyone, I’m a beginner using Flash CS4 and I have a problem with an animation that I’m trying to built. Flash seems to completely ignore all the actions that I write… for example if I write a stop(); at frame 5 the movie simply doesn’t stop…
I’ve created also 6 buttons and named each one with a different instance name (example “menudemo1”) then I’ve written the following actions on the first frame of my movie:

menudemo1.addEventListener (MouseEvent.CLICK, onClick);
function onClick(event:MouseEvent):void
{
gotoAndPlay (205); // inseriamo il frame iniziale nell’istruzione gotoAndPlay
};
menudemo2.addEventListener (MouseEvent.CLICK, pollo);
function pollo(event:MouseEvent):void
{
gotoAndPlay (445); // inseriamo il frame iniziale nell’istruzione gotoAndPlay
};
menudemo3.addEventListener (MouseEvent.CLICK, palla);
function palla(event:MouseEvent):void
{
gotoAndPlay (636); // inseriamo il frame iniziale nell’istruzione gotoAndPlay
};
menudemo4.addEventListener (MouseEvent.CLICK, pillo);
function pillo(event:MouseEvent):void
{
gotoAndPlay (958); // inseriamo il frame iniziale nell’istruzione gotoAndPlay
};
menudemo5.addEventListener (MouseEvent.CLICK, polli);
function polli(event:MouseEvent):void
{
gotoAndPlay (1154); // inseriamo il frame iniziale nell’istruzione gotoAndPlay
};
menudemo6.addEventListener (MouseEvent.CLICK, palli);
function palli(event:MouseEvent):void
{
gotoAndPlay (1242); // inseriamo il frame iniziale nell’istruzione gotoAndPlay
};

as for the “stop” function, all the above doesn’t seem to have any effect on my movie…what am I doing wrong?

Thanks a lot for any suggestions…

Ally