# HELP! problem loading a swf into a container mc

**URL:** https://forum.kirupa.com/t/help-problem-loading-a-swf-into-a-container-mc/235142
**Category:** flash
**Created:** [August 8, 2007, 7:50pm UTC](https://forum.kirupa.com/t/help-problem-loading-a-swf-into-a-container-mc/235142 "2007-08-08T19:50:53Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![agentparas](https://avatars.discourse-cdn.com/v4/letter/a/b5e925/32.png) [@agentparas](https://forum.kirupa.com/u/agentparas)
#### Post date: [August 8, 2007, 7:50pm UTC](https://forum.kirupa.com/t/help-problem-loading-a-swf-into-a-container-mc/235142/1 "2007-08-08T19:50:53Z")

</div>

Hi there  
I am having an issue with a site I am working on. Basically I have a “shell” movie that contains the nav bar and an empty container movie clip (“container\_1\_mc”) that I load and unload external swf movies into.

The problem:

At times the loaded swfs start to play erratically and then the main shell starts to screw up and all sorts of mayhem ensues:

This is the code I am using on one of the buttons:

\_root.photos\_btn.onRelease = function() {  
stopAllSounds();

```
// moves the current loaded swf off screen to the left

var tween_handler:Tween = new Tween(contain_1_mc, "_x", Bounce.easeOut, 0, -1000, 50, false);
tween_handler.onMotionFinished = function() {

// loads a new swf into the continer_mc

	_root.contain_1_mc.loadMovie("photos.swf");

// moves the newly loaded container_mc onto the screen from the right
	new Tween(contain_1_mc, "_x", Bounce.easeOut, 1000, 0, 20, false);

```

};

Can anyone figure this out or at least point me in the right direction? Any help would be great

Many thanks

-A
