home *** CD-ROM | disk | FTP | other *** search
- bug.cables = [];
- i = 0;
- while(i < 4)
- {
- m = "c" + i;
- bug.cables[i] = new Object();
- bug.cables[i].pos = new Array();
- bug.cables[i].scale = this[m].scale;
- bug.cables[i].rotation = this[m].rotation;
- bug.cables[i].label = this[m].label;
- f = 0;
- while(f < this[m]._totalFrames)
- {
- this[m].gotoAndStop(f + 1);
- b = this[m].getBounds(this);
- bug.cables[i].pos[f] = new Object();
- bug.cables[i].pos[f].x = b.xMin + (b.xMax - b.Xmin) / 2;
- bug.cables[i].pos[f].y = b.yMin + (b.yMax - b.ymin) / 2;
- f++;
- }
- this[m].removeMovieClip();
- i++;
- }
- i = 0;
- while(i < 16)
- {
- m = "bird" + i;
- attachMovie("bird",m,i + 17);
- this[m]._x = -100;
- this[m]._y = -100;
- this[m].gotoAndStop(1);
- this[m]._visible = false;
- i++;
- }
- crow = [];
- i = 0;
- while(i < 7)
- {
- m = "p" + i;
- b = "b" + i;
- crow[i] = new Object();
- crow[i].u = new Array();
- crow[i].pos = new Array();
- crow[i].back = new Array();
- crow[i].r = 0;
- crow[i].strikeFrom = this[m].strikeFrom;
- crow[i].strikeTo = this[m].strikeTo;
- crow[i].pathLow = this[m].pathLow;
- crow[i].birdLow = this[m].birdLow;
- crow[i].scale = this[m].scale;
- f = 0;
- while(f < this[m]._totalFrames)
- {
- this[m].gotoAndStop(f + 1);
- crow[i].pos[f] = new Object();
- if(this[m]._width == 0)
- {
- crow[i].pos[f].x = crow[i].pos[f].y = crow[i].pos[f].c = 0;
- }
- else
- {
- b = this[m].getBounds(this);
- crow[i].pos[f].x = b.xMin;
- crow[i].pos[f].y = b.yMin + (b.yMax - b.ymin) / 2;
- crow[i].pos[f].c = (b.xMax - b.xmin) / 3;
- }
- f++;
- }
- f = 0;
- while(f < this[b]._totalFrames)
- {
- this[b].gotoAndStop(f + 1);
- crow[i].back[f] = new Object();
- if(this[b]._width == 0)
- {
- crow[i].back[f].x = crow[i].back[f].y = crow[i].back[f].c = 0;
- }
- else
- {
- b = this[b].getBounds(this);
- crow[i].back[f].x = b.xMin;
- crow[i].back[f].y = b.yMin + (b.yMax - b.ymin) / 2;
- crow[i].back[f].c = (b.xMax - b.xmin) / 3;
- }
- f++;
- }
- this[b].removeMovieClip();
- this[m].removeMovieClip();
- i++;
- }
-