# Gotoandplay Problem

**URL:** <https://forum.kirupa.com/t/gotoandplay-problem/281333>\
**Category:** flash\
**Created:** [February 7, 2009, 7:32pm UTC](https://forum.kirupa.com/t/gotoandplay-problem/281333 "2009-02-07T19:32:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cigi223](https://avatars.discourse-cdn.com/v4/letter/c/a9a28c/32.png) [@cigi223](https://forum.kirupa.com/u/cigi223)\
**Post date:** [February 7, 2009, 7:32pm UTC](https://forum.kirupa.com/t/gotoandplay-problem/281333/1 "2009-02-07T19:32:40Z")

</div>

Hi guys,

I very new to AS.

I’m getting an error with the below code:

gotoAndPlay(“scene2”, 1);

**Error:**  
1067: Implicit coercion of a value of type int to an unrelated type String.

Go I want to do at this point is jump to ‘scene2’ when the time line hits a certain frame on scene1.

Is this the correct way of doing it, if not could you advise me please.

Thanks for your help in advance
