# External SWF / Movie Clip Problem

**URL:** <https://forum.kirupa.com/t/external-swf-movie-clip-problem/185032>\
**Category:** flash\
**Created:** [April 10, 2006, 1:59pm UTC](https://forum.kirupa.com/t/external-swf-movie-clip-problem/185032 "2006-04-10T13:59:32Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Flaevo](https://avatars.discourse-cdn.com/v4/letter/f/bbce88/32.png) [@Flaevo](https://forum.kirupa.com/u/Flaevo)\
**Post date:** [April 10, 2006, 1:59pm UTC](https://forum.kirupa.com/t/external-swf-movie-clip-problem/185032/1 "2006-04-10T13:59:32Z")

</div>

So to explain  
I have backFootage.swf it has two movie clips inside of it one instanced named to blur, and once instanced named to reg. It has no actions at all. The stage has the two movie clips dropped on it in different layers and each has been instance named

in loader.swf I have this in the actionscripting

```auto
this.createEmptyMovieClip("backFootage", 2);
backFootage.loadMovie("backFootage.swf");

```

Now using the debugger it the objects lists look like this

```auto

_level0-
     _level0.backFootage
     _level0.backFootage.blur
     _level0.backFootage.reg

```

When I use

```auto
backFootage.reg._x = 100; 

```

It doesn’t work, I think I’m having a cross-swf problem here but does anyone know a solution? Thanks 🙂

---

<div class="post-metadata">

**Author:** ![stringy](https://avatars.discourse-cdn.com/v4/letter/s/919ad9/32.png) [@stringy](https://forum.kirupa.com/u/stringy)\
**Post date:** [April 10, 2006, 2:20pm UTC](https://forum.kirupa.com/t/external-swf-movie-clip-problem/185032/2 "2006-04-10T14:20:34Z")

</div>

> [@xfuzion](#):
>
> So to explain  
> I have backFootage.swf it has two movie clips inside of it one instanced named to blur, and once instanced named to reg. It has no actions at all. The stage has the two movie clips dropped on it in different layers and each has been instance named
> 
> in loader.swf I have this in the actionscripting
> 
> ```auto
> this.createEmptyMovieClip("backFootage", 2);
> backFootage.loadMovie("backFootage.swf");
> 
> ```
> 
> Now using the debugger it the objects lists look like this
> 
> ```auto
> 
> _level0-
> _level0.backFootage
> _level0.backFootage.blur
> _level0.backFootage.reg
> 
> ```
> 
> When I use
> 
> ```auto
> backFootage.reg._x = 100; 
> 
> ```
> 
> It doesn’t work, I think I’m having a cross-swf problem here but does anyone know a solution? Thanks 🙂

you need to wait until it loads.Try something like this

```auto
this.createEmptyMovieClip("backFootage", 2);
backFootage.loadMovie("backFootage.swf");
this.onEnterFrame = function() {
	if (backFootage._width) {
		backFootage.reg._x = 100;
		delete this.onEnterFrame;
	}
};

```

---

<div class="post-metadata">

**Author:** ![Flaevo](https://avatars.discourse-cdn.com/v4/letter/f/bbce88/32.png) [@Flaevo](https://forum.kirupa.com/u/Flaevo)\
**Post date:** [April 10, 2006, 2:24pm UTC](https://forum.kirupa.com/t/external-swf-movie-clip-problem/185032/3 "2006-04-10T14:24:34Z")

</div>

hmm I’m testing it on my own machine though and it should load instantly no?

I’ll try that just a minute 🙂

---

<div class="post-metadata">

**Author:** ![Flaevo](https://avatars.discourse-cdn.com/v4/letter/f/bbce88/32.png) [@Flaevo](https://forum.kirupa.com/u/Flaevo)\
**Post date:** [April 10, 2006, 2:25pm UTC](https://forum.kirupa.com/t/external-swf-movie-clip-problem/185032/4 "2006-04-10T14:25:49Z")

</div>

it works, crazy I thought since I was testing locally it would be instant! thanks 🙂

---

<div class="post-metadata">

**Author:** ![stringy](https://avatars.discourse-cdn.com/v4/letter/s/919ad9/32.png) [@stringy](https://forum.kirupa.com/u/stringy)\
**Post date:** [April 10, 2006, 2:42pm UTC](https://forum.kirupa.com/t/external-swf-movie-clip-problem/185032/5 "2006-04-10T14:42:35Z")

</div>

> [@xfuzion](#):
>
> it works, crazy I thought since I was testing locally it would be instant! thanks 🙂

welcome

---

<div class="post-metadata">

**Author:** ![Flaevo](https://avatars.discourse-cdn.com/v4/letter/f/bbce88/32.png) [@Flaevo](https://forum.kirupa.com/u/Flaevo)\
**Post date:** [April 11, 2006, 2:33am UTC](https://forum.kirupa.com/t/external-swf-movie-clip-problem/185032/6 "2006-04-11T02:33:34Z")

</div>

```auto
duplicateMovieClip(_root.container, "backContainer", _root.d++);
backContainer.loadMovie("backFootage.swf");

backContainer.onEnterFrame = function () {
	backContainer.totalBytes = backContainer.getBytesTotal();
	trace(backContainer.totalBytes);
	backContainer.blur._x = 100;
	delete backContainer.onEnterFrame;
}

```

Should that not work as well? It seems to not be :(. I’m trying to use identifiers rather than stacking properties with this.
