# \[F5\] Easiest ActionScript ever!

**URL:** <https://forum.kirupa.com/t/f5-easiest-actionscript-ever/7710>\
**Category:** flash\
**Created:** [November 6, 2002, 5:00am UTC](https://forum.kirupa.com/t/f5-easiest-actionscript-ever/7710 "2002-11-06T05:00:12Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![morse](https://avatars.discourse-cdn.com/v4/letter/m/bbce88/32.png) [@morse](https://forum.kirupa.com/u/morse)\
**Post date:** [November 6, 2002, 5:00am UTC](https://forum.kirupa.com/t/f5-easiest-actionscript-ever/7710/1 "2002-11-06T05:00:12Z")

</div>

ok, i know that im retarded, but here’s the deal:

Button location:  
Scene1 : Symbol27 : Symbol 38 \<—[thats the button we’re talking about]

What i need to do:  
Play Scene1, frame 5

What doesn’t work:  
on (release) {  
gotoAndPlay (“Scene 1”, 5);  
}

What do i do?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 6, 2002, 5:08am UTC](https://forum.kirupa.com/t/f5-easiest-actionscript-ever/7710/2 "2002-11-06T05:08:59Z")

</div>

That you button is in the same scene all you need do is assign this AS to the button.

on (release) {  
gotoAndPlay(5);  
}

Hope this helps

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 6, 2002, 5:33am UTC](https://forum.kirupa.com/t/f5-easiest-actionscript-ever/7710/3 "2002-11-06T05:33:52Z")

</div>

i tried that [again], and it just replays the movie clip that the button is in.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 6, 2002, 5:41am UTC](https://forum.kirupa.com/t/f5-easiest-actionscript-ever/7710/4 "2002-11-06T05:41:23Z")

</div>

Have you created an actions layer with stop() actions on it? One for the frame your button is on and another for frame 5 where you want the movie to stop once the button has taken you there.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 6, 2002, 9:20pm UTC](https://forum.kirupa.com/t/f5-easiest-actionscript-ever/7710/5 "2002-11-06T21:20:18Z")

</div>

lets see…

Scene1, frame 1:  
stop()

Scene1 :: Frame 1 :: Symbol 27 :: Symbol 38 \<–[the button]

Symbol 27,frame 15: \<–[Symbol 38 exists in this frame]  
stop()

doesn’t work

Symbol 38 [this symbol’s location is scene 1, frame 1, symbol 27]  
on (release) {  
gotoAndPlay (“Scene 1”, 5);  
}  
also doesn’t work  
on (release) {  
gotoAndPlay (5);  
}

this is probobly more confusing, if you would like i cant try to explain it differently, but that would take a while…

I can post the swf that doesnt work, but i dont think that would help.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 6, 2002, 9:25pm UTC](https://forum.kirupa.com/t/f5-easiest-actionscript-ever/7710/6 "2002-11-06T21:25:59Z")

</div>

\_root.gotoAndPlay(5)
