# Loading SWF and gotoandStop action in one onRelease action?

**URL:** https://forum.kirupa.com/t/loading-swf-and-gotoandstop-action-in-one-onrelease-action/19888
**Category:** Uncategorized
**Created:** [May 2, 2003, 1:58pm UTC](https://forum.kirupa.com/t/loading-swf-and-gotoandstop-action-in-one-onrelease-action/19888 "2003-05-02T13:58:00Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![ericinho](https://avatars.discourse-cdn.com/v4/letter/e/9dc877/32.png) [@ericinho](https://forum.kirupa.com/u/ericinho)
#### Post date: [May 2, 2003, 1:58pm UTC](https://forum.kirupa.com/t/loading-swf-and-gotoandstop-action-in-one-onrelease-action/19888/1 "2003-05-02T13:58:00Z")

</div>

flash5

i want to do this:

on (release) {   
\_root.nextMovie = “externalmovie.swf”;  
\_root.cover.gotoAndPlay(“close”);  
\_root.content.gotoAndStop(20)

}

line 1 sets VAR nextMovie

line 2 tells a coverMC to start playing (it includes a loader and a loadMovie action which pretty much says “loadMovie (\_root.nextMovie, \_root.content);”. Oh the content it refers to is the placeholder in which the external SWF loads.  
In the external SWF there is the rest of the loading part.

but anyhow, how can I trigger that after the SWF is loaded, it automatically moves to frame 20 and stops (instead of now just playing the \*\*\*\* thing 🙂 ).

thanks!

---

<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: [May 3, 2003, 12:52am UTC](https://forum.kirupa.com/t/loading-swf-and-gotoandstop-action-in-one-onrelease-action/19888/2 "2003-05-03T00:52:22Z")

</div>

im a newbie, but why dont u just put in frame 1 of the new movie

gotoAndStop(20);

?? that should work, unless im being ignorant… lol
