home *** CD-ROM | disk | FTP | other *** search
- stop();
- this.onEnterFrame = function()
- {
- Type = Math.round(Math.random() * 3 + 1);
- CO = Math.random() * 50;
- CT = Math.round(Math.random() * 50);
- A = new Array();
- if(CO >= 1 && CO <= 2 && CT >= 1 && CT <= 2 && _root.UGeneration == true)
- {
- if(Type == 1)
- {
- this.attachMovie("MissilePowerUPID","MissilePowerUPID" + MovD,MovD);
- A[MovD] = this["MissilePowerUPID" + MovD];
- A[MovD]._x = Math.random() * 500 + 150;
- MovD++;
- }
- else if(Type == 2)
- {
- this.attachMovie("LifeUpID","LifeUpID" + MovD,MovD);
- A[MovD] = this["LifeUpID" + MovD];
- A[MovD]._x = Math.random() * 500 + 150;
- MovD++;
- }
- else if(Type == 3)
- {
- this.attachMovie("CrossPowerUPID","CrossPowerUP" + MovD,MovD);
- A[MovD] = this["CrossPowerUP" + MovD];
- A[MovD]._x = Math.random() * 500 + 150;
- MovD++;
- }
- else if(Type == 4)
- {
- this.attachMovie("DestroyerPowerUPID","DestroyerPowerUP" + MovD,MovD);
- A[MovD] = this["DestroyerPowerUP" + MovD];
- A[MovD]._x = Math.random() * 500 + 150;
- MovD++;
- }
- }
- if(MovD >= 4500)
- {
- MovD = 4001;
- }
- };
-