# Action script gurus, I need your help

**URL:** <https://forum.kirupa.com/t/action-script-gurus-i-need-your-help/217409>\
**Category:** flash\
**Created:** [February 26, 2007, 7:53pm UTC](https://forum.kirupa.com/t/action-script-gurus-i-need-your-help/217409 "2007-02-26T19:53:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tokolosh](https://avatars.discourse-cdn.com/v4/letter/t/6de8d8/32.png) [@tokolosh](https://forum.kirupa.com/u/tokolosh)\
**Post date:** [February 26, 2007, 7:53pm UTC](https://forum.kirupa.com/t/action-script-gurus-i-need-your-help/217409/1 "2007-02-26T19:53:42Z")

</div>

[LEFT]  
Hi all,

I started my site from a flash template that loads its pages from the library (the pages are not on the time line).In this template there are 5 buttons in the first page (main) that link to the pages from the library.[/LEFT]  
[LEFT]The action script that links the original buttons to the pages(in the library) is :

[/LEFT]  
[LEFT]on (rollOver) {[/LEFT]  
[LEFT] gotoAndPlay(“s1”);[/LEFT]  
[LEFT]}[/LEFT]  
[LEFT]on (releaseOutside, rollOut) {[/LEFT]  
[LEFT] gotoAndPlay(“s2”);[/LEFT]  
[LEFT]}[/LEFT]  
[LEFT]on (release) {[/LEFT]  
[LEFT] gotoAndStop(“studio”);[/LEFT]  
[LEFT]}

[/LEFT]  
[LEFT](BTW, S1 and S2 are in a layer which roles over the button when the mouse rolls over it)[/LEFT]  
[LEFT]

Up to here it all makes sense to me, Well sort of 😛  
[/LEFT]  
[LEFT]Here comes my problem: [/LEFT]  
[LEFT]I add a new keyframe on the main timeline with a new page and modified the action script of one of the original buttons to :

[/LEFT]  
[LEFT]on (rollOver) {[/LEFT]  
[LEFT] gotoAndPlay(“s1”);[/LEFT]  
[LEFT]}[/LEFT]  
[LEFT]on (releaseOutside, rollOut) {[/LEFT]  
[LEFT] gotoAndPlay(“s2”);[/LEFT]  
[LEFT]}[/LEFT]  
[LEFT]on (release) {[/LEFT]  
[LEFT] gotoAndStop(“page2”);[/LEFT]  
[LEFT]}

[/LEFT]  
[LEFT]For some the button will not link to the frame “page2”

[/LEFT]  
[LEFT]What am I doing wrong here??

[/LEFT]  
[LEFT](BTW, I created a new simple button(in the main page) with a simple script which worked fine.

[/LEFT]  
[LEFT]on (release) {[/LEFT]  
[LEFT] gotoAndStop(“page2”);[/LEFT]  
[LEFT]}[/LEFT]  
[LEFT]

[/LEFT]  
[LEFT]I hope what I wrote here makes sense

[/LEFT]  
[LEFT]Thanks :-)[/LEFT]
