5 Replies Latest reply on May 10, 2010 9:25 PM by kiran7881

    How to call setter Method of ActionScript class with in a Flex Application

    kiran7881 Level 1

      Hi

       

      I have Action class as shown :

       

      public class MyClass
      {
      private var name:String 
      public function get name():String {
          return _initialCount;
      }
      public function set name(name:String):void {
          name = name;
      }
      }

       

      Now please let me know how can i access this Action class under my Flex Application and call the setter Method of it to set the value for the name .
      For example on entering some data in a TextInput and  click of a submit Button , on to the Event Listener , i want to call the set name method of my ActionScript class .

       


      Please share your ideas on this .