PHP Code://Sender//
sending_lc = new LocalConnection();
mybtn1.onRelease = function() {
var command="F_2";
sending_lc.send("Sender","execute_received",command);//gotoAndPlay(2));
};
PHP Code://Receiver//
receiving_lc = new LocalConnection();
receiving_lc.execute_received = function(str:String) {
if(str=="F_2"){
mc.gotoAndStop(2);
}
};
receiving_lc.connect("Sender");
You can make in 2 way communication.
Read for more about this:
http://help.adobe.com/en_US/FlashPla...onnection.html
arkitx




Reply With Quote
