Hi everybody,
I am having a problem trying to target movieclips, I have a Main movieclip, in which I load an external movieclip. Once I load that movieclip, it contains a button (btn1_mc) that will allow the loading of another external movie (resume.swf) also into the Main movie. Each of the movies has only one frame. In the main movie I create a Color object (my_color), to modify a movieclip (sectionBg_mc) inside that Main movieclip. The movieclip that is loaded second includes a button that should be able to act modifiying the color of the sectionBg_mc movieclip inside the Main movieclip. It’s just not working. Could anyone please help me figuring this out?
//Creates the Color object to modify the movie clip sectionBg_mc
var my_color:Color = new Color(sectionBg_mc);
//Created a movieClipLoader to load the first external movieclip
var movieLoader:MovieClipLoader=new MovieClipLoader();
var loaderL:Object = new Object();
loaderL.onLoadInit= function(target:MovieClip){
//When this first movieclip is loaded, there is a button inside of it
target.btn1_mc.onPress=function(){
//Loads a second external movieclip using a movieclip named sectionHolder, and that is in the Main movie
sectionHolder_mc.loadMovie("resume.swf");
//Change the color. This works
my_color.setRGB(0x999900);
}
}
movieLoader.addListener(loaderL);
movieLoader.loadClip("menu.swf", menuHolder_mc);
//Once the the resume.swf is loaded,
//This code is in the loaded movie. Close_btn is a button symbol
close_btn.onPress=function(){
//This should change the color of the sectionBg_mc in the Main movie. But it does not work
this._parent._parent.my_color.setRGB(0x990000);
}