# Controlling the MC of an external SWF

**URL:** <https://forum.kirupa.com/t/controlling-the-mc-of-an-external-swf/281889>\
**Category:** flash\
**Created:** [February 14, 2009, 1:14pm UTC](https://forum.kirupa.com/t/controlling-the-mc-of-an-external-swf/281889 "2009-02-14T13:14:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![damonlee3](https://avatars.discourse-cdn.com/v4/letter/d/ecd19e/32.png) [@damonlee3](https://forum.kirupa.com/u/damonlee3)\
**Post date:** [February 14, 2009, 1:14pm UTC](https://forum.kirupa.com/t/controlling-the-mc-of-an-external-swf/281889/1 "2009-02-14T13:14:14Z")

</div>

uuggg, I thought I had this solved…

I’ve loaded my external SWF, now I want to animate a MC within that external swf, however, when i try, the animation freezes (or won’t start at all), but the external SWF DOES load.

Here is my loader code

```auto
var _externalMovie:MovieClip

var _url1:URLRequest = new URLRequest("intro.swf")

var _swfContainer:Loader = new Loader()
stage.addChild(_swfContainer);
_swfContainer.contentLoaderInfo.addEventListener(flash.events.Event.COMPLETE, finishedLoading);

// This is done after the swf is loaded
function finishedLoading (e:Event)
{
	
    _externalMovie = MovieClip(_swfContainer.content);
	
}

```

Then I write a simple function to load a chosen external SWF and control the external SWF’s MC (animate using the Tweener class):

```auto
function loadVideo(e:MouseEvent){
		_swfContainer.load(_url1)
		Tweener.addTween(_externalMovie.myMC, {x:340, alpha:1, time:1, delay:0, transition:"easeInOutExpo"}); //this is the code that is supposed to animate "myMC" within the external SWF

	}

```

Any help would be appreciated  
D3
