Hey Hugo, What exactly is the 'this' instance? If it is a Royale class, then you do have the option of using the Reflection lib.
On Tue, Apr 4, 2023 at 11:25 AM Hugo Ferreira <hferreira...@gmail.com> wrote: > Hi, > > This works on debug build: > > for (var field:String in this) > { > if (Strings.endsWith(field, "_")) > field = field.substr(0, field.length - 1); > > .... > > } > > Because the value object preserves all the variables, however in release > build this does not work anymore because the build release change all > variable names > and inject and getter and setter with the original names. > > I search a lot in google and didnt find a way to iterate thru the object > with the getter names (find the getter names). >