home *** CD-ROM | disk | FTP | other *** search
- this.cacheAsBitmap = true;
- this.onEnterFrame = function()
- {
- this._x += this.Xvel;
- this._y += this.Yvel;
- this.Xvel *= 0.95;
- this.Yvel += 0.7;
- v = 0;
- while(v < this._parent._parent.allarray.length)
- {
- var veb = this._parent._parent.allarray[v];
- var veg = eval("this._parent._parent.bubs." + veb);
- if(this.hitTest(veg) && veg.grabbed != true)
- {
- p = this._parent.attachMovie("bomtoons_poof","poof",this.getNextHighestDepth());
- p._x = this._x;
- p._y = this._y;
- p._xscale = 80;
- p._yscale = p._xscale;
- veg.removeMovieClip();
- this._parent._parent.allarray[veg.id] = undefined;
- this.removeMovieClip();
- delete this.onEnterFrame;
- }
- v++;
- }
- if(Stage.height < this._y + this._parent._y)
- {
- this.removeMovieClip();
- }
- if(this._parent._parent.dude.hitTest(this._x + this._parent._x,this._y + this._parent._y,true) && this._parent._parent.dude.blink != true)
- {
- if(this._parent._parent.hp > 0 && this._parent._parent.dude.inv != true)
- {
- this._parent._parent.hp -= 1;
- this._parent._parent.dude.blink = true;
- this._parent._parent.dude.blinkcount = 0;
- }
- this.removeMovieClip();
- }
- };
-