# Fancy changable destination goto action

**URL:** <https://forum.kirupa.com/t/fancy-changable-destination-goto-action/112829>\
**Category:** Uncategorized\
**Created:** [June 11, 2004, 6:39pm UTC](https://forum.kirupa.com/t/fancy-changable-destination-goto-action/112829 "2004-06-11T18:39:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![imported\_FlashFish](https://avatars.discourse-cdn.com/v4/letter/i/c57346/32.png) [@imported\_FlashFish](https://forum.kirupa.com/u/imported_FlashFish)\
**Post date:** [June 11, 2004, 6:39pm UTC](https://forum.kirupa.com/t/fancy-changable-destination-goto-action/112829/1 "2004-06-11T18:39:11Z")

</div>

I have been told that i can use something like

on (release) {  
gotoAndPlay(“two”, 1);  
destination = profile;  
}

and then when it gets there.

gotoAndPlay(“destination”);

So it should bascially mean  
gotoAndPlay(“profile”); when it gets there. Ive been fiddling and i cant get it to work. Am I doing something wrong? Or was it a lie? Thanks in advance.

---

<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:** [June 11, 2004, 6:42pm UTC](https://forum.kirupa.com/t/fancy-changable-destination-goto-action/112829/2 "2004-06-11T18:42:12Z")

</div>

Some errors in your script.

[FONT=Courier New]on (release) {  
gotoAndPlay(“two”, 1);  
destination = **“profile”** ;//with quotes, since profile is a frame label  
}[/FONT]

[FONT=Courier New]gotoAndPlay( **destination** );//without quotes since destination is a variable[/FONT]

---

<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:** [June 11, 2004, 6:48pm UTC](https://forum.kirupa.com/t/fancy-changable-destination-goto-action/112829/3 "2004-06-11T18:48:35Z")

</div>

Ah thank you soo much. Speedy response too! Have a lolly.

---

<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:** [June 11, 2004, 6:49pm UTC](https://forum.kirupa.com/t/fancy-changable-destination-goto-action/112829/4 "2004-06-11T18:49:47Z")

</div>

Welcome 😉
