# External swf loading incorrectly

**URL:** https://forum.kirupa.com/t/external-swf-loading-incorrectly/264997
**Category:** flash
**Created:** [July 2, 2008, 8:47pm UTC](https://forum.kirupa.com/t/external-swf-loading-incorrectly/264997 "2008-07-02T20:47:21Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![mooing\_fish](https://avatars.discourse-cdn.com/v4/letter/m/6f9a4e/32.png) [@mooing\_fish](https://forum.kirupa.com/u/mooing_fish)
#### Post date: [July 2, 2008, 8:47pm UTC](https://forum.kirupa.com/t/external-swf-loading-incorrectly/264997/1 "2008-07-02T20:47:21Z")

</div>

Hey guys,

I’m relatively new to flash. I’m working on a portfolio site, and I wanted to show a flash video I made inside my Flash website. So I wrote some code for it, nothing fancy…

but.onPress = function () {  
createEmptyMovieClip (“container”, 1);  
loadMovie (“thiscolorfulworld.swf”, “container”);  
container.\_x = -50 ;  
container.\_y = -50 ;  
}

…and the code seemed to work fine, movie loaded where I wanted it to, blah blah, except when my video appears, the movie runs way faster than it’s supposed to. Anyone know why? I tried this with another .swf, and the sound is fine, but again, the visuals are just racing through.

Thanks a bunch,  
JM

---

<div class="post-metadata">

### Author: ![danielthelion](https://avatars.discourse-cdn.com/v4/letter/d/8c91f0/32.png) [@danielthelion](https://forum.kirupa.com/u/danielthelion)
#### Post date: [July 2, 2008, 9:24pm UTC](https://forum.kirupa.com/t/external-swf-loading-incorrectly/264997/2 "2008-07-02T21:24:16Z")

</div>

are your frames per second all correct? also, i know flash sometimes screws up audio and video sync in actual videos that you import INTO flash and embed in a swf. when you watch thiscolorfulworld.swf by itself, does everything play correctly?

---

<div class="post-metadata">

### Author: ![mooing\_fish](https://avatars.discourse-cdn.com/v4/letter/m/6f9a4e/32.png) [@mooing\_fish](https://forum.kirupa.com/u/mooing_fish)
#### Post date: [July 3, 2008, 2:34am UTC](https://forum.kirupa.com/t/external-swf-loading-incorrectly/264997/3 "2008-07-03T02:34:37Z")

</div>

“also, i know flash sometimes screws up audio and video sync in actual videos that you import INTO flash and embed in a swf.”

Ahhh ok. I’ll be aware of that. It plays just fine on its own, but I’ve tried 2 vids and they both screw up when I place them in Flash…maybe I’ll just link to a new window and not place it inside something else.

Thanks a bunch,  
JM
