Praise to the flash.utils.describeType – a method that became my number one friend when I was validating parameters set by user and solving how to validate proper data types without knowing what they were.
So, what does flash.utils.describeType do? In a nutshell it converts any class into a xml that describes
- getters and setters
- parameters and variables
- access type of the former (read, write, readwrite) Jatka lukemista ”My new best friend – describeType”