# Simple code not working

**URL:** <https://forum.kirupa.com/t/simple-code-not-working/289771>\
**Category:** Uncategorized\
**Created:** [June 4, 2009, 2:37pm UTC](https://forum.kirupa.com/t/simple-code-not-working/289771 "2009-06-04T14:37:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![marcelomdsc](https://avatars.discourse-cdn.com/v4/letter/m/aca169/32.png) [@marcelomdsc](https://forum.kirupa.com/u/marcelomdsc)\
**Post date:** [June 4, 2009, 2:37pm UTC](https://forum.kirupa.com/t/simple-code-not-working/289771/1 "2009-06-04T14:37:57Z")

</div>

Hello, is there anything wrong with this code…

PlayButton.onRelease = function(){  
PlayButton.gotoAndStop(2);  
stopAllSounds();  
Radio01.gotoAndPlay(“Play”);  
};  
StopButton.onRelease = function(){  
\_root.PlayButton.gotoAndStop(2);  
stopAllSounds();  
};

I have that code on frame 5 of my project in an actions layer.  
Then I have on a different layer on the same frame (5) the two movieClips  
that have the instance names of PlayButton & StopButton.

I can´t figure out why it isnt working. Any ideas?

Thanks.

Flash CS3/AS2
