A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Local Connection Multiple Functions

Threaded View

  1. #2
    Senior Member
    Join Date
    Jan 2011
    Posts
    171
    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
    Last edited by arkitx; 07-23-2013 at 07:15 AM.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center