# Asfunction - \_root.shouldBeEasy

**URL:** <https://forum.kirupa.com/t/asfunction--root-shouldbeeasy/182876>\
**Category:** Uncategorized\
**Created:** [March 22, 2006, 4:44am UTC](https://forum.kirupa.com/t/asfunction--root-shouldbeeasy/182876 "2006-03-22T04:44:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![quandary23](https://avatars.discourse-cdn.com/v4/letter/q/f04885/32.png) [@quandary23](https://forum.kirupa.com/u/quandary23)\
**Post date:** [March 22, 2006, 4:44am UTC](https://forum.kirupa.com/t/asfunction--root-shouldbeeasy/182876/1 "2006-03-22T04:44:58Z")

</div>

I just need to know where to reference \_root to load a swf into an empty mc using an asfunction.

Canadian helped me out with this previous question, and the trace seems to be working, however my clips aren’t loading.

There needs to be a reference to root somewhere right?

Everywhere I try to add it yields the same lack of result.

Here’s Canadian’s code:

> Something like this is all you need to do:  
> HTML Code:

```auto
You can <a href='asfunction:loadMovieProxy,0506.swf'>press me</a> to load 0506.swf or <a href='asfunction:loadMovieProxy,0406.swf'>me</a> to load 0406.swf.

```

ActionScript Code:

```auto
function loadMovieProxy(target:String):Void {
 trace(target);
 pathTo.empty.loadMovie(target);
}

```

If you press press me, it will load 0506.swf whereas pressing the second me, you will load 0406.swf

My source files are at the end of the former thread: [kirupaForum](http://www.kirupa.com/forum/showthread.php?t=212934)

Thanks!

---

<div class="post-metadata">

**Author:** ![quandary23](https://avatars.discourse-cdn.com/v4/letter/q/f04885/32.png) [@quandary23](https://forum.kirupa.com/u/quandary23)\
**Post date:** [March 22, 2006, 9:51am UTC](https://forum.kirupa.com/t/asfunction--root-shouldbeeasy/182876/2 "2006-03-22T09:51:21Z")

</div>

Found the answer elsewhere:  
[http://www.thecodebehind.com/code/flash/actionscript/loading-external-swfs-from-an-external.aspx](http://www.thecodebehind.com/code/flash/actionscript/loading-external-swfs-from-an-external.aspx)

Thanks to Canadian for his help in clearing up the concept, allowing my googling to bear results!
