Hi
I am trying to figure out how to call a function in one swf from another swf both of which are loaded into the same master swf.
This is my function in workPhoto.swf which is loaded into level 5 of the master.swf:
function killThumbs() {
image_mcl.unloadClip(thumbnail_mc);
}
I want to call this function when I click on a menu item in another swf called listMenu.swf
curr_item.onPress = function(){
//I want to call the function from here
};
curr_item.onRelease = function(){
Actions[this.action](this.variables);
};
I want to call the function from the onPress so that the onRelease can perform the XML load (which currently works fine).
I tried sticking _level5.image_mcl.unloadClip(thumbnail_mc); into the onPress function, but to no avail. It seems that the function needs to be run from inside the movie.
Any suggestions?