# Controlling main swf from loaded swf

**URL:** https://forum.kirupa.com/t/controlling-main-swf-from-loaded-swf/274481
**Category:** Uncategorized
**Created:** [October 30, 2008, 3:45pm UTC](https://forum.kirupa.com/t/controlling-main-swf-from-loaded-swf/274481 "2008-10-30T15:45:58Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![bottleHeD](https://avatars.discourse-cdn.com/v4/letter/b/7ea924/32.png) [@bottleHeD](https://forum.kirupa.com/u/bottleHeD)
#### Post date: [October 30, 2008, 3:45pm UTC](https://forum.kirupa.com/t/controlling-main-swf-from-loaded-swf/274481/1 "2008-10-30T15:45:58Z")

</div>

My root swf loads an external swf using the following code:

```auto
on (release) {
	_root.c1_mc.loadMovie("mask.swf");
}

```

…where c1\_mc is the instance name of an empty movieclip container.

Now, i tried loading a second swf into the root swf via a command in the first loaded swf:

```auto
_level0.c2_mc.loadmovie("bio.swf");

```

…where c2\_mc is the instance name of another empty movieclip container, but it doesn’t work.

Is there something wrong with the code, or does flash not support this?
