home *** CD-ROM | disk | FTP | other *** search
- function addBird()
- {
- speed = random(10) / 9 + 0.1;
- speed_x = random(10) / 9 + 0.2;
- b = 0;
- while(b < random(2) + 3)
- {
- birds_mc.inst_bird_mc.duplicateMovieClip("bird_" + birds + "_mc",birds);
- new_bird_mc = eval("birds_mc.bird_" + birds + "_mc");
- bird_scale = random(20) + 60;
- new_bird_mc._xscale = bird_scale;
- new_bird_mc._yscale = bird_scale;
- new_bird_mc._x = 200 + random(50);
- new_bird_mc._y = random(100) + 50;
- new_bird_mc.speed = speed + random(5) / 9;
- new_bird_mc.speed_x = speed_x + random(5) / 9;
- new_bird_mc._visible = true;
- birds++;
- b++;
- }
- }
- stop();
- birds = 0;
- times = 0;
- birds_mc.onEnterFrame = function()
- {
- if(times == 300)
- {
- addBird();
- times = 0;
- }
- times++;
- };
- addBird();
-