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:
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:
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
Thanks!