Classes in ExtendScript ( Object Orientation)
Is it possible to work with "true" Object Orientation in ExtendScript? I've tried to create classes and Objects with JS Synthax, but that won't work:
class Person {
constructor(name, surname) {
this.name = name;
this.surname = surname;
}
}
var person = new Person('Jack', 'Smith');
alert(person);
This only returns "invalid use of reserved word class".
What I am actually trying to do in the long run is to build an UI based on Objects. So, speaking in Pseudocode:
Class myUI {
constructor(group , dropdown1, text1 )
this.group = group (parameter)
this.dropdown1 = group.add(dropdownlist (parameter))
this.text1 = group.add(edittext (parameter))
}
...etc
myUI(group,dropdown,text);
Any Idea how something like this could work?
