# "goToAndPlay" goes to a blank screen!

**URL:** <https://forum.kirupa.com/t/gotoandplay-goes-to-a-blank-screen/49179>\
**Category:** flash\
**Created:** [April 20, 2004, 5:30pm UTC](https://forum.kirupa.com/t/gotoandplay-goes-to-a-blank-screen/49179 "2004-04-20T17:30:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![artane](https://avatars.discourse-cdn.com/v4/letter/a/c68b51/32.png) [@artane](https://forum.kirupa.com/u/artane)\
**Post date:** [April 20, 2004, 5:30pm UTC](https://forum.kirupa.com/t/gotoandplay-goes-to-a-blank-screen/49179/1 "2004-04-20T17:30:23Z")

</div>

I’m going insane!!!

All I want to do is go to frame 20 when the timer gets to zero. Instead, I go to a blank screen! I can replace “goToAndPlay” with “getURL” and it works (I go to the specified url) but, I want to go to frame 20! What in the world is wrong with this script?

Please help!

// This tells text field “sec2” to count down by subtracting one  
set("/:sec2", (/:sec2-1));  
// This states that if text field “sec2” is less than 0 then tell text field “sec1” to subtract one and add a nine in text field “sec2”, hence completeing the seconds countdown.  
if (/:sec2\<0) {  
set("/:sec1", (/:sec1-1));  
/:sec2 = “9”;  
}  
// This tells text field “min” to subtract one when text field “sec1” is less than zero, hence counting down the minutes then setting text fields “sec1” and “sec2” to 5 and 9 reseting the seconds  
if (/:sec1\<0) {  
set("/:min", (/:min-1));  
/:sec1 = “5”;  
/:sec2 = “9”;  
}  
timeUp = (/:sec1 == 0) && (/:sec2 == 0);  
if (timeUp) {  
stop();  
gotoAndPlay(20);  
} else {  
gotoAndPlay(“restart”);  
}
