6 Replies Latest reply on Jun 21, 2006 1:25 AM by Newsgroup_User

    How do you set a variable using a setter function

    Level 7
      The class mx.messaging.Producer has a property called resendAttempts
      which is read/write.

      It is implemented as follows:

      public function get resendAttempts():int
      public function set resendAttempts(value:int):void

      How do I set this value to say 5?

      pro = new mx.messaging.Producer();
      pro.resendAttempts(5);//Doesn't work. What should it be?