I have a class (Wall) that inherits from Sprite.
Sprite already has width and height properties. But for the wall, I need to do some other additional calculations when the properties change (i.e. make sure that the new size does not make it overlap any other walls).
So, how do I set the width property inherited from the Sprite class from the wall width set? (or maybe there is an alternative way to check my border when setting the width?)
public override function set width(w:Number):void {
//make sure it is a valid size
//if it is, then set the width of the *Sprite* to w. How?
}
source
share