# Script for linking?

**URL:** <https://forum.kirupa.com/t/script-for-linking/152101>\
**Category:** flash\
**Created:** [June 21, 2005, 6:39am UTC](https://forum.kirupa.com/t/script-for-linking/152101 "2005-06-21T06:39:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hotaru](https://avatars.discourse-cdn.com/v4/letter/h/c57346/32.png) [@Hotaru](https://forum.kirupa.com/u/Hotaru)\
**Post date:** [June 21, 2005, 6:39am UTC](https://forum.kirupa.com/t/script-for-linking/152101/1 "2005-06-21T06:39:30Z")

</div>

I am having a major problem with an action script. Though I have been told scenes are evil I used them anyway because I have found in the past it helped me to organize my movie better. I have a button and I have been trying to write a script so when I click on it, it goes to scene 4 and plays it. The code I have been using is:

ButtonName.onPress = gotoAndPlay(“scene 4”, frame 1);

Although I don’t get any errors this doesn’t work at all so if anyone can tell me the right code for the operation or tell me how to fix the one I have been trying to use I would really appreciate the help.
