# External load swf, then go?

**URL:** <https://forum.kirupa.com/t/external-load-swf-then-go/63262>\
**Category:** Uncategorized\
**Created:** [September 4, 2004, 4:11pm UTC](https://forum.kirupa.com/t/external-load-swf-then-go/63262 "2004-09-04T16:11:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![malidia](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/malidia/32/684_2.png) [@malidia](https://forum.kirupa.com/u/malidia)\
**Post date:** [September 4, 2004, 4:11pm UTC](https://forum.kirupa.com/t/external-load-swf-then-go/63262/1 "2004-09-04T16:11:22Z")

</div>

okay, i got these swf, that i am trying to load other swfs with, so far i have it so the swf are kinda preload, loading on a container off the stage and then advancing to a new frame, my problem is with this code it just stays on frame one for some reason

this is on frame one

```auto
 bytes=container.getBytesLoaded()+this.getBytesLoaded() 
total=container.getBytesTotal()+this.getBytesTotal() 
_root.createEmptyMovieClip("container",1)
container.loadMovie("01.swf")
container._x = -500 ;
container._y = -1000;
if (bytes == total) {
_root.gotoAndPlay(3)
}

```

and this is on frame two

```auto
gotoAndPlay(1) 

```

anyone know why it’s staying on frame one instead of advancing after the swf is loaded?

---

<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:** [September 4, 2004, 4:27pm UTC](https://forum.kirupa.com/t/external-load-swf-then-go/63262/2 "2004-09-04T16:27:12Z")

</div>

Hmmm, I’m not sure that this will work, but it’s worth a try:[AS]bytes = container.getBytesLoaded()+this.getBytesLoad();  
total = container.getBytesTotal()+this.getBytesTotal();  
\_root.createEmptyMovieClip(“container”, 1);  
container.loadMovie(“01.swf”);  
container.\_x = -500;  
container.\_y = -1000;  
if (bytes == total) {  
\*\*this.\*\*gotoAndPlay(3);  
}[/AS]Hope this works…

---

<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:** [September 5, 2004, 8:14pm UTC](https://forum.kirupa.com/t/external-load-swf-then-go/63262/3 "2004-09-05T20:14:04Z")

</div>

nope, didn’t work thanks though

:ne: anybody else?

---

<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:** [September 5, 2004, 8:34pm UTC](https://forum.kirupa.com/t/external-load-swf-then-go/63262/4 "2004-09-05T20:34:09Z")

</div>

The script you posted has errors in it, how about this:[AS]bytes = container.getBytesLoaded()+this.getBytesLoad();  
total = container.getBytesTotal()+this.getBytesTotal();  
\_root.createEmptyMovieClip(“container”, 1);  
container.loadMovie(“01.swf”);  
container.\_x = -500;  
container.\_y = -1000;  
if (bytes == total) {  
\_root.gotoAndPlay(3);  
}[/AS]
