home *** CD-ROM | disk | FTP | other *** search
- setProperty(this, _xscale, getProperty(this, _xscale) + 25);
- setProperty(this, _yscale, getProperty(this, _yscale) + 25);
- ballnumber = 1;
- while(ballnumber < _root.totalballs)
- {
- nowtesting = "_root.ball" + ballnumber;
- if(this.hitTest(nowtesting) && eval(this add "color") eq eval(nowtesting add "color") && nowtesting != this._name)
- {
- _root.myscore += 1;
- _root.remove += 1;
- removeme += 1;
- set("_root.remove" add _root.remove,nowtesting);
- tellTarget(nowtesting)
- {
- gotoAndStop(2);
- }
- }
- ballnumber++;
- }
- setProperty(this, _xscale, getProperty(this, _xscale) - 25);
- setProperty(this, _yscale, getProperty(this, _yscale) - 25);
- if(0 < removeme)
- {
- _root.poping += 1;
- _root.dif *= 0.98;
- if(9 < getProperty(_root.roof, _Y))
- {
- lineback = 1;
- while(lineback < _root.totalballs)
- {
- setProperty("_root.ball" add lineback, _Y, getProperty("_root.ball" add lineback, _Y) - 25);
- lineback++;
- }
- setProperty(_root.roof, _Y, getProperty(_root.roof, _Y) - 25);
- setProperty(_root.roofball, _Y, getProperty(_root.roofball, _Y) - 25);
- tellTarget("_root.rooftimer")
- {
- gotoAndPlay(1);
- }
- }
- set("_root.remove" add _root.remove,this._name);
- removeMovieClip(this);
- _root.balls -= 1;
- _root.remove = 0;
- }
- _root.removelist = 0;
- gotoAndStop(1);
-