# Problem with scene link button

**URL:** <https://forum.kirupa.com/t/problem-with-scene-link-button/315164>\
**Category:** Uncategorized\
**Created:** [October 19, 2010, 10:38am UTC](https://forum.kirupa.com/t/problem-with-scene-link-button/315164 "2010-10-19T10:38:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![new\_user00](https://avatars.discourse-cdn.com/v4/letter/n/3ec8ea/32.png) [@new\_user00](https://forum.kirupa.com/u/new_user00)\
**Post date:** [October 19, 2010, 10:38am UTC](https://forum.kirupa.com/t/problem-with-scene-link-button/315164/1 "2010-10-19T10:38:52Z")

</div>

i m a new user for flash, my flash version is CS3.  
i have some problem with the AS3 code.  
now my project have 3 scene and i want to link between all scene.

this common i use to go to next page and previous page for each scene,  
stop();  
function nextscene1(event:MouseEvent):void  
{  
nextScene();  
}  
function prevscene(event:MouseEvent):void  
{  
prevScene();  
}

prev.addEventListener(MouseEvent.CLICK, prevscene);  
nex1.addEventListener(MouseEvent.CLICK, nextscene1);

and this common i use to link to each scene,

stop();  
function buttonClick(event:MouseEvent):void

{  
gotoAndStop(“3”, “menu”);  
}  
page2.addEventListener(MouseEvent.CLICK,buttonClic k);

my problem is i can success with the next/prev function if i only click the “nex/prev” button, but when i click the “page2” button to link to particular page, it only can function 1 time and at some time the “nex” and “prev” function will lost
