topical media & game development

talk show tell print

graphic-flex-animation-bubbles-Ball.ax

graphic-flex-animation-bubbles-Ball.ax [swf] flex


  package 
  {
          import mx.controls.Image;
          public class @ax-graphic-flex-animation-bubbles-Ball extends Base
          {
                  public function @ax-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() : @ax-graphic-flex-animation-bubbles-Ball {
                          var newId : Image = new Image();
                          newId.source = this._id.source;
                          this._id.parent.addChild(newId);
                          return new @ax-graphic-flex-animation-bubbles-Ball(newId);
                  }
                  
                  public function remove() : void {
                          this._id.parent.removeChild(this._id);
                  }
          }
  }
  


(C) Æliens 27/08/2009

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.