2 Replies Latest reply on Sep 13, 2010 3:40 PM by Flex harUI

    Method name call at runtime

    J D Flex

      Is there a way to call the method name at runtime. For example my actionscript has the following

      private var comboId:String;


      comboId == "nameGridComboId" or comboId == "addressGridComboId"


      value = lastNameEditor.selectedItem.nameGridComboId;

      value = lastNameEditor.selectedItem.addressGridComboId;


      instead can I use reflection to call something like


      value = lastNameEditor.selectedItem.METHODNAMEDEFINED(comboId)