Advertisement

08.15.2008 at 08:20AM PDT, ID: 23651547 | Points: 300
[x]
Attachment Details

Targeting nested movie clips

Asked by sailing_12 in ActionScript, Macromedia Flash

Tags:

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/browse.cfm?categoryid=218");
}Start Free Trial
[+][-]08.15.2008 at 11:39AM PDT, ID: 22240626

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 14-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.15.2008 at 11:40AM PDT, ID: 22240635

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 14-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.15.2008 at 12:01PM PDT, ID: 22240828

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 14-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.15.2008 at 03:13PM PDT, ID: 22242060

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 14-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20081112-EE-VQP-43 / EE_QW_2_20070628