frozenpeas
Technical User
Hi everyone,
I have four seperate swfs, each containing one button. Each button should load different content into a seperate, main swf.
Each button contains the code:
My main swf with is receiving these commands contains the following code on the first frame:
I need to be able to press the four buttons, in any order, to load the content into the main swf.
The trouble is that it works for only the first button press. Then nothing is loaded on subsequent button presses.
Any ideas? Thanks!
frozenpeas
I have four seperate swfs, each containing one button. Each button should load different content into a seperate, main swf.
Each button contains the code:
Code:
on (press){
outgoing_lc = new LocalConnection();
outgoing_lc.send("lc","moduleLoad","module01.swf");
delete outgoing_lc;
}
My main swf with is receiving these commands contains the following code on the first frame:
Code:
// receive command from button and load module
var incoming_lc = new LocalConnection();
incoming_lc.moduleLoad = function(moduleToLoad){
loadMovieNum(moduleToLoad,0);
// the following two lines are not required but it is something I have tried to remedy my problem
incoming_lc.close("lc");
incoming_lc.connect("lc");
}
incoming_lc.connect("lc");
stop();
I need to be able to press the four buttons, in any order, to load the content into the main swf.
The trouble is that it works for only the first button press. Then nothing is loaded on subsequent button presses.
Any ideas? Thanks!
frozenpeas