package { import mx.controls.Image; public class graphic_flex_animation_bubbles_Ball extends Base { public function graphic_flex_animation_bubbles_Ball(id : Image) { super(); this._id = id; //this._elem = mx.collections.; this.move(); } private var _id : Image; public override function move() : void { super.move(); this._id.x = this._x; this._id.y = this._y; } public function clone() : graphic_flex_animation_bubbles_Ball { var newId : Image = new Image(); newId.source = this._id.source; this._id.parent.addChild(newId); return new graphic_flex_animation_bubbles_Ball(newId); } public function remove() : void { this._id.parent.removeChild(this._id); } } }