# Problems targeting swf loaded with loadClip()

**URL:** https://forum.kirupa.com/t/problems-targeting-swf-loaded-with-loadclip/305202
**Category:** flash
**Created:** [February 21, 2010, 6:11am UTC](https://forum.kirupa.com/t/problems-targeting-swf-loaded-with-loadclip/305202 "2010-02-21T06:11:52Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![rickibarnes](https://avatars.discourse-cdn.com/v4/letter/r/cab0a1/32.png) [@rickibarnes](https://forum.kirupa.com/u/rickibarnes)
#### Post date: [February 21, 2010, 6:11am UTC](https://forum.kirupa.com/t/problems-targeting-swf-loaded-with-loadclip/305202/1 "2010-02-21T06:11:52Z")

</div>

Hi everyone,

I’ve posted this problem in a couple of different forums now, and while I’ve received a fair bit of help on it, none of the suggestions given to me have actually worked.

I’m having a really weird problem with loadClip(), using Actionscript 2.0.

Basically, I have a main .swf, into which I am loading another .swf using loadClip(), on the click of a button. It loads into an empty movie clip on the timeline of the main .swf called _container\_mc_. So far so good, this works.

The problem comes when I am trying to control a movie clip instance that lives on the timeline of the external .swf. This clip has the instance name _test\_mc_, and I’m trying to control it using the reference _\_level0.container\_mc.test\_mc_. I have also tried just plain old _container\_mc.test\_mc_.

Neither of these work, though when I apply a trace to _test\_mc_ on the timeline of the external swf (test\_mc.onRelease = function () { trace(this); }), it returns the path _\_level0.container\_mc.test\_mc_ (when clicked on after being loaded into the main movie, obviously).

I’ve attached a couple of files demonstrating the problem I’m having. It seems to me that the problem is probably something a little amiss with my code, as in theory I’m pretty sure what I’m trying to do is perfectly possible.

If anyone can shed any light on this situation, I would be eternally grateful. Cheers for any assistance!
