My actionscript is a little rusty- Can someone explain why the following doesn't work for me?
There is a parent movie which will load external .swf's into one of two movie clip holders, named movieTarget_mc and movieTarget2_mc. This script is located on the first frame of thi parent. I am trying to apply behavior to the movieTarget_mc instance so that clicking on it will load the specified URL, but I can't get this to work no matter how I refer to the instance, I have tried _root.movieTarget_mc, this.movieTarget_mc but no joy.
//hide flash menu
Stage.showMenu = false;
filename = ["imaging_solutions.swf"];
i = filename.length;
k = Math.floor(Math.random()*i
);
loadMovie(path+filename[k]
, movieTarget_mc);
filename = ["new_product_a.swf", "new_product_b.swf", "new_product_c.swf", "new_product_d.swf"];
i = filename.length;
k = Math.floor(Math.random()*i
);
loadMovie(path+filename[k]
, movieTarget2_mc);
movieTarget_mc.onMouseDown
=function(
) {
getURL("../onlinecatalog/b
rowse.cfm?
categoryid
=218");
}
Start Free Trial