# Problems targeting a loaded swf

**URL:** <https://forum.kirupa.com/t/problems-targeting-a-loaded-swf/308169>\
**Category:** Uncategorized\
**Created:** [April 18, 2010, 6:23am UTC](https://forum.kirupa.com/t/problems-targeting-a-loaded-swf/308169 "2010-04-18T06:23:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dtrace](https://avatars.discourse-cdn.com/v4/letter/d/59ef9b/32.png) [@dtrace](https://forum.kirupa.com/u/dtrace)\
**Post date:** [April 18, 2010, 6:23am UTC](https://forum.kirupa.com/t/problems-targeting-a-loaded-swf/308169/1 "2010-04-18T06:23:47Z")

</div>

When you click the about button on my site, I am using this function to load in an external swf, about.swf.

When I click on another nav button, I want to communicate with the about.swf and call a function within that swf called bailout().

But how do I target it?

Nothing I try works. I’ve messed with getChildAt but don’t know how it works.  
Would it be … theholder.aboutLoad.bailout()??? That doesn’t work.

How do i target the function within the about.swf file? Thanks.

function aboutGo(){

var aboutLoad = new Loader();

[//theholder.removeChildAt](https://theholder.removeChildAt)(0);  
if(theholder.numChildren){

```
theholder.removeChildAt(0);
}

```

theholder.addChild(aboutLoad);  
aboutLoad.load(new URLRequest(“about.swf”));

```
}
```
