# Target problem in external swfs

**URL:** <https://forum.kirupa.com/t/target-problem-in-external-swfs/212968>\
**Category:** flash\
**Created:** [January 16, 2007, 12:54am UTC](https://forum.kirupa.com/t/target-problem-in-external-swfs/212968 "2007-01-16T00:54:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![friggingmick](https://avatars.discourse-cdn.com/v4/letter/f/58956e/32.png) [@friggingmick](https://forum.kirupa.com/u/friggingmick)\
**Post date:** [January 16, 2007, 12:54am UTC](https://forum.kirupa.com/t/target-problem-in-external-swfs/212968/1 "2007-01-16T00:54:43Z")

</div>

I have 3 swfs, main.swf, test.swf and sliders5.swf. The test.swf and sliders5.swf will be loaded into the main.swf with MovieClipLoader function. The sliders5.swf contains the actionscripts that peform some effects via rollover/rollout. The question is how do I proper target (path reference e.g. _root.this._ etc) the certain object that is located in test.swf via the rollover/rollout function from the sliders5.swf? I have tried various paths I could come up but nothing works, any hint (below’s MovieClipLoader function in main.swf I use to load external swfs)?

Frame 1:

```auto
stop();

var newMC:MovieClipLoader = new MovieClipLoader();
var mCListener:Object = new Object();

newMC.addListener(mCListener);

mCListener.onLoadProgress = function(target_mc:MovieClip, loadedBytes:Number, totalBytes:Number) {
	_level50._visible = true;
	var preloadPercent:Number = Math.round((loadedBytes / totalBytes) * 100);
	_level50.preloader.gotoAndStop(preloadPercent);
}

mCListener.onLoadComplete = function(target_mc:MovieClip) {
	_level50._visible = false;
}

newMC.loadClip("trigger.swf", 5);
newMC.loadClip("preloader.swf", 50);

```

Frame 10:

```auto
stop();
newMC.loadClip("sliders5.swf", 5);
newMC.loadClip("test.swf", 10);

```

Friggin’ Mick!
