# Parent functions!

**URL:** <https://forum.kirupa.com/t/parent-functions/306178>\
**Category:** flash\
**Created:** [March 10, 2010, 9:49pm UTC](https://forum.kirupa.com/t/parent-functions/306178 "2010-03-10T21:49:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nyx722](https://avatars.discourse-cdn.com/v4/letter/n/b4bc9f/32.png) [@nyx722](https://forum.kirupa.com/u/nyx722)\
**Post date:** [March 10, 2010, 9:49pm UTC](https://forum.kirupa.com/t/parent-functions/306178/1 "2010-03-10T21:49:11Z")

</div>

I’ve got my main fla file, which loads a swf into its content.

The loaded swf is an image scroller which loads images from a XML file.  
What I’m trying to do is: when an image is clicked within the loaded swf the clicked image enlarges over the whole fla. file not just the swf.

What I have at the moment is:  
///////CODE/////////in scroller file.

function clickScrollerItem(e:MouseEvent):void {  
trace("clicked item " + e.currentTarget.itemNum + " - visit url: " + e.currentTarget.link);  
var urlRequest:URLRequest = new URLRequest(e.currentTarget.link);  
var testLoader:Loader = new Loader();  
scroller\_holder.addChild(testLoader);

//navigateToURL(urlRequest); //open in new window  
testLoader.load(urlRequest); // open in current window

}  
/////////////////

scroller\_holder is a holder on the main stage of the swf.

I know it’s something to do with MovieClip(parent) and sending data via a function but struggling some what.

Any help would make me very happy 😃
