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: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]