Every DisplayObject instance has a property called [FONT=“courier New”]transform[/FONT], whose properties include a Matrix and a ColorTransform object. These classes are very versatile when you instantiate them yourself, but the Transform class does not allow you to edit its properties’ properties. For instance, you can get [FONT=“Courier New”]mySprite.transform.colorTransform.redMultiplier[/FONT], but you can’t set it, not while it’s a property of a Transform object. The same goes for [FONT=“courier New”]transform[/FONT]'s other properties.
What’s the deal? What’s the motivation behind this limitation? And if I’m motivated to do the same thing with one of my classes, how would I implement this? (I’m guessing that the ColorTransform class has an internal variable that lets it refer to a Transform object, and if it finds one, its setters don’t assign new values to its properties.)