I read a lot about accessors or getters/setters, but to date I cannot really understand what they do. The language describing their use is just beyond my comprehension, not being any type of developer nor an advanced AS3 user.
Can someone provide, or point me in the direction of, a VERY SIMPLE getter/setter example that includes WHY it would be used as well as HOW to use it? I would really appreciate something small that doesn’t use just comments within functions (like “// here is where you do xyz”), but actual code (the actual doing of xyz). That way if I want to play with it and build on it I can.
Much appreciated!