In actioscript 3, I can access an object instance by using a string with the instance name. For example if I have a sprite called background and it contains an object named myObj I can access it with
obj = background["myObj’];
This is very useful if there are multiple objects of the same type with names myObj1, myObj2, myObj3, etc. I can access any one of them by number with:
obj = background["myObj’ _ String(number)];
What’s the equivalent of this in OpenFl/Haxe?