# Communication between embeded swfs

**URL:** https://forum.kirupa.com/t/communication-between-embeded-swfs/303751
**Category:** flash
**Created:** [January 26, 2010, 3:33pm UTC](https://forum.kirupa.com/t/communication-between-embeded-swfs/303751 "2010-01-26T15:33:11Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![jdsflash](https://avatars.discourse-cdn.com/v4/letter/j/3ec8ea/32.png) [@jdsflash](https://forum.kirupa.com/u/jdsflash)
#### Post date: [January 26, 2010, 3:33pm UTC](https://forum.kirupa.com/t/communication-between-embeded-swfs/303751/1 "2010-01-26T15:33:11Z")

</div>

I have a main swf that embeds another swf. I want to be able to tell the embed swf to do something. Is that possible?  
The area in red is my issue. Thanks!  
Main.swf  
[AS]  
//Creates new image loader  
var imageLoader:Loader;  
//Holder variable for the image to load  
var ImageID:String = new String();  
function loadImage([url:String):void](http://www.kirupa.com/forum/String):void) {  
// Set properties on my Loader object  
imageLoader = new Loader();  
imageLoader.load(new URLRequest(url));  
imageLoader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, imageLoading);  
imageLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, imageLoaded);  
ImgLoaded++  
trace(ImgLoaded)  
}  
loadImage(“fvtctour3.swf”);  
function imageLoaded(e:Event):void {  
// Load Image  
imageArea.addChild(imageLoader);  
}  
//This function needs to tell the embeded swf to do something  
mapI\_mc.addEventListener(MouseEvent.MOUSE\_UP, mapbtn);  
function mapbtn(event:MouseEvent):void {  
//How do i refrence the embed swf. I want to turn the captions off from the main swf.  
imageArea.Captions.visible = false  
}  
[/AS]
