1 Reply Latest reply on Jun 15, 2007 9:22 PM by atlkhan

    Passing two values to another flash movie

    atlkhan
      I have a flash movie with two interger inputs , i want to pass them two another flash movie

      from this example http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_16243&sliceId=2#lcas2

      outgoing moive code:
      // create a new LocalConnection instance used to send
      // calls to a LocalConnection instance in another movie
      var outgoing_lc:LocalConnection = new LocalConnection();

      // event handler when the send button is clicked
      send_btn.onRelease = function(Void):Void {

      // send the methodToExecute method in another movie's
      // LocalConnection listening to "lc_example"
      outgoing_lc.send("lc_example", "methodToExecute", biomarker_txt.text);

      }


      incoming movie code:

      // create a new LocalConnection instance used to listen
      // for calls from a LocalConnection instance from another movie
      var incoming_lc:LocalConnection = new LocalConnection();

      // create a local connection listening to a connection
      // with the name "lc_example"
      incoming_lc.connect("lc_example");

      // define an method which will be called when a message
      // is sent from a LocalConnection instance from another movie
      incoming_lc.methodToExecute = function(param:String):Void {
      biomarker_txt.text = param;


      }