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

**URL:** https://forum.kirupa.com/t/flash-cs4-ignores-the-actions-that-i-write-why/295832
**Category:** Uncategorized
**Created:** [September 5, 2009, 11:23am UTC](https://forum.kirupa.com/t/flash-cs4-ignores-the-actions-that-i-write-why/295832 "2009-09-05T11:23:04Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![ally\_fog](https://avatars.discourse-cdn.com/v4/letter/a/7ea924/32.png) [@ally\_fog](https://forum.kirupa.com/u/ally_fog)
#### Post date: [September 5, 2009, 11:23am UTC](https://forum.kirupa.com/t/flash-cs4-ignores-the-actions-that-i-write-why/295832/1 "2009-09-05T11:23:04Z")

</div>

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
