# Referencing other swf movies

**URL:** <https://forum.kirupa.com/t/referencing-other-swf-movies/22820>\
**Category:** flash\
**Created:** [June 9, 2003, 9:52am UTC](https://forum.kirupa.com/t/referencing-other-swf-movies/22820 "2003-06-09T09:52:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![easytiger](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/easytiger/32/232_2.png) [@easytiger](https://forum.kirupa.com/u/easytiger)\
**Post date:** [June 9, 2003, 9:52am UTC](https://forum.kirupa.com/t/referencing-other-swf-movies/22820/1 "2003-06-09T09:52:05Z")

</div>

Hi there, i’m quite new to flash and actionscript, so hope my questions aren’t too daft.

What it is, i’m loading external swf files into my main movie, but then from with in these loaded movies i want to be able to click a button which references the main movie to tell it to go to the next frame. So i attached the following to the button:

on (release) {  
\_root.gotoAndStop(1);  
}

But it’s not working, does this only work with different movieclips within the main movie?

Any help apreciated.

Thank u!

---

<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 9, 2003, 10:01am UTC](https://forum.kirupa.com/t/referencing-other-swf-movies/22820/2 "2003-06-09T10:01:45Z")

</div>

If you’ve loaded a new movie onto another level, then to reference the original movie, you’ll need to include the level number in your dot notation. At the moment, if you’re using \_root.gotoAndStop, it thinks you’re talking about the root of the new movie. Try using level0.\_root.gotoAndStop()…
