# Linking problems

**URL:** <https://forum.kirupa.com/t/linking-problems/14056>\
**Category:** flash\
**Created:** [February 21, 2003, 1:48pm UTC](https://forum.kirupa.com/t/linking-problems/14056 "2003-02-21T13:48:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![weedon](https://avatars.discourse-cdn.com/v4/letter/w/e495f1/32.png) [@weedon](https://forum.kirupa.com/u/weedon)\
**Post date:** [February 21, 2003, 1:48pm UTC](https://forum.kirupa.com/t/linking-problems/14056/1 "2003-02-21T13:48:45Z")

</div>

aight, here it goes

i’ve done some links deep down in some graphics symbols, and when i press the link it is supposed to go to a frame on the MAINtimeline

now i’ve writen  
on (release) {  
gotoAndPlay(2);  
}

which means that when i press the button it goes to the second frame in the graphic symbol (where i store the buttons)  
but as i’ve tried to explain.i want the link to go to frame 2 in the maintimeline (if that’s what it’s called)

i hope u understand my bad english and my even worse explanation.

many 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:** [February 21, 2003, 3:17pm UTC](https://forum.kirupa.com/t/linking-problems/14056/2 "2003-02-21T15:17:10Z")

</div>

hmm…if you have you buttons inside a graphics symbol then how is it suppose to work? If I’m not mistaken then they should be in MovieClips instead.

---

<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:** [February 21, 2003, 3:36pm UTC](https://forum.kirupa.com/t/linking-problems/14056/3 "2003-02-21T15:36:29Z")

</div>

nested in GRAPHIC symbols, there should be no change in scope since graphics arent themselves objects but more like groups which are associated with a common library item. However, if in that nesting you are within a MOVIECLIP symbol, the scope then changes to be part of the main timeline -\> movieclip. Then, any gotos will reference the timeline of that movieclip and not the main timeline. Thats when you have to tell the main timeline specifically to goto where ever. In script, the name of the main timeline is \_root. So to tell \_root to go to a frame, precede the gotoAndPlay command with the prefix \_root. ie

\_root.gotoAndPlay(2)

Then, you will be sure that you are telling the main timeline that you want IT to goto and play some frame.

---

<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:** [February 21, 2003, 4:26pm UTC](https://forum.kirupa.com/t/linking-problems/14056/4 "2003-02-21T16:26:37Z")

</div>

ohh, thanks m8 it workt out perfectly!!!

/peace
