home *** CD-ROM | disk | FTP | other *** search
- stop();
- this.onEnterFrame = function()
- {
- CO = Math.random() * 40;
- CT = Math.round(Math.random() * 1);
- if(CO >= 39 && CO <= 40 && _root.PGeneration == true)
- {
- if(CT == 0)
- {
- this.attachMovie("GoodTargetTopID","GoodTargetTop" + MovD,MovD);
- this["GoodTargetTop" + MovD]._x = Math.random() * 500 + 150;
- MovD++;
- }
- else if(CT == 1)
- {
- this.attachMovie("BadTargetTopID","BadTargetTop" + MovD,MovD);
- this["BadTargetTop" + MovD]._x = Math.random() * 500 + 150;
- MovD++;
- }
- }
- else if(CO >= 0 && CO <= 1 && _root.PGeneration == true)
- {
- if(CT == 0)
- {
- this.attachMovie("GoodTargetBottomID","GoodTargetBottom" + MovD,MovD);
- this["GoodTargetBottom" + MovD]._x = Math.random() * 500 + 150;
- this["GoodTargetBottom" + MovD]._y = 650;
- MovD++;
- }
- else if(CT == 1)
- {
- this.attachMovie("BadTargetBottomID","BadTargetBottom" + MovD,MovD);
- this["BadTargetBottom" + MovD]._x = Math.random() * 500 + 150;
- this["BadTargetBottom" + MovD]._y = 650;
- MovD++;
- }
- }
- else if(CO >= 5 && CO <= 6 && _root.PGeneration == true)
- {
- if(CT == 0 && _root.StageLevel >= 4)
- {
- this.attachMovie("GoodTargetBlueBottomID","GoodTargetBlueBottom" + MovD,MovD);
- this["GoodTargetBlueBottom" + MovD]._x = Math.random() * 500 + 150;
- this["GoodTargetBlueBottom" + MovD]._y = 650;
- MovD++;
- }
- else if(CT == 1 && _root.StageLevel >= 10)
- {
- this.attachMovie("GoodTargetPurpleBottomID","GoodTargetPurpleBottom" + MovD,MovD);
- this["GoodTargetPurpleBottom" + MovD]._x = Math.random() * 500 + 150;
- this["GoodTargetPurpleBottom" + MovD]._y = 650;
- MovD++;
- }
- }
- else if(CO >= 7 && CO <= 8 && _root.PGeneration == true)
- {
- if(CT == 0 && _root.StageLevel >= 7)
- {
- this.attachMovie("GoodTargetBlueTopID","GoodTargetBlueTop" + MovD,MovD);
- this["GoodTargetBlueTop" + MovD]._x = Math.random() * 500 + 150;
- this["GoodTargetBlueTop" + MovD]._y = 650;
- MovD++;
- }
- else if(CT == 1 && _root.StageLevel >= 12)
- {
- this.attachMovie("GoodTargetPurpleTopID","GoodTargetPurpleTop" + MovD,MovD);
- this["GoodTargetPurpleTop" + MovD]._x = Math.random() * 500 + 150;
- this["GoodTargetPurpleTop" + MovD]._y = 650;
- MovD++;
- }
- }
- if(MovD >= 250)
- {
- MovD = 200;
- }
- if(_root.StageLevel >= 4)
- {
- if(Key.isDown(37))
- {
- _root.BeamColor = "0x9933CC";
- }
- else if(Key.isDown(39))
- {
- _root.BeamColor = "0x0000FF";
- }
- }
- };
-