# MovieClip(scrollpane.content).gotoAndStop(2);

**URL:** <https://forum.kirupa.com/t/movieclip-scrollpane-content-gotoandstop-2/313703>\
**Category:** flash\
**Created:** [September 7, 2010, 6:21pm UTC](https://forum.kirupa.com/t/movieclip-scrollpane-content-gotoandstop-2/313703 "2010-09-07T18:21:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bamben](https://avatars.discourse-cdn.com/v4/letter/b/a183cd/32.png) [@bamben](https://forum.kirupa.com/u/bamben)\
**Post date:** [September 7, 2010, 6:21pm UTC](https://forum.kirupa.com/t/movieclip-scrollpane-content-gotoandstop-2/313703/1 "2010-09-07T18:21:12Z")

</div>

I need to get my main swf A to tell the swf B (swfB is my scrollpane content or source) to gotoAndStop at frame 2 but it doesn’t communicate.

Here is my code on my main swfA:

```auto
function xbutton (e:MouseEvent):void {gotoAndStop("p1");MovieClip(sp.content).gotoAndStop(2);}
button.addEventListener (MouseEvent.CLICK, xbutton);

```

Here is my code on frame 2 in swfB:

```auto
stop();
SoundMixer.stopAll();

```

to better visualise what i am doing; swfA is my website with lots of pages, swfA has one page\* that holds my scrollpane, inside my scrollpane is swfB with a flPlayback (\*this page is the tv page). when I exit the tv page to another page on my website the tv must stop. swfB has my flPlayBack on frame 1, frame 2 is blank (no tv).

Ps: The code in swfB works fine independently! I know this because tested it by adding a button (when pressed it goes to frame 2 and the code does stop the tv).
