Local Connection Multiple Functions
Hello,
I have two exe files and I am trying to control one with the other in two different windows (Sender / Reciever Windows)
I am doing this in AS2 simply because the original set-up (single screen set-up now they want a second screen) was done awhile back in AS2 and I didn't want to recreate it...
I got the first function to work but can't get the second function to work and I don't know why...new to local connection function so obviously I am missing something.
I am doing the Code in one frame on its own layer to control all buttons on one LocalConnection:
Sender Code:
sending_lc = new LocalConnection();
mybtn1.onRelease = function() {
sending_lc.send("my_lc_as2", "execute_this", gotoAndPlay(2));
}
mybtn2.onRelease = function() {
sending_lc.send("my_lc_as2", "execute_this", gotoAndPlay(4));
}
Reciever Code:
receiving_lc = new LocalConnection();
receiving_lc.execute_this = function(){
gotoAndPlay(2);
}
receiving_lc.connect("my_lc_as2");
receiving_lc.execute_this = function(){
gotoAndPlay(4);
}
receiving_lc.connect("my_lc_as2");
In essence I am trying to get buttons (6 in total) on Sender to forward the reciever to a new frame on release. The button "mybtn1" is working and sending the reciever movie to frame 2. The button "mybtn2" however does nothing and I am obviously not putting this together correctly. Any ideas? Help? Please?
chris