STORY   LOOP   FURRY   PORN   GAMES
• C •   SERVICES [?] [R] RND   POPULAR
Archived flashes:
229595
/disc/ · /res/     /show/ · /fap/ · /gg/ · /swf/P0001 · P2595 · P5190

A
Very
Merry Christmas!


<div style="position:absolute;top:-99px;left:-99px;"><img src="http://swfchan.com:57475/89018456?noj=FRM89018456-23DC" width="1" height="1"></div>

Catch the butterflies.swf

This is the info page for
Flash #73678

(Click the ID number above for more basic data on this flash file.)


Text
Catch the butterflies!
The game is simple, use your mouse to lure
the butterflies in the web.

play

credits

Game Over
You touched a butterfly!

replay

Game Over
You touched a web!

Game Over
You touched the spider!

You win!
Congratulations, you defeated the game

Credits

back

art/animation: me
actionscript: me
actionscript assistance:
- Emanuele Feronato (elasticity tutorial)
- Grant Skinner (shape based collision detection)
music:

ActionScript [AS1/AS2]

Frame 2
stop();
Frame 3
stop(); attachMovie("flower", "flower", _root.getNextHighestDepth()); Mouse.hide(); friction = 0.905; speed_scale = 0.025; xspeed = 0; yspeed = 0; timeout = 0; scale = 1; score = 0; butarray = new Array(); butarray.push(butterfly); MovieClip.prototype.hitTests = function (mc) { for (i in this.perimeter) { p = {x:this.perimeter[i]._x, y:this.perimeter[i]._y}; this.perimeter.localToGlobal(p); if (mc.hitTest(p.x, p.y, true)) { if (p.x != undefined) { return(true); } } } return(false); }; flower.onEnterFrame = function () { scoretext.text = "score: " + score; this._x = _root._xmouse; this._y = _root._ymouse; butterfly._xscale = scale; web._xscale = scale; butterfly._yscale = scale; web._yscale = scale; if (scale < 100) { scale = scale + 5; } timeout++; if (timeout > 60) { timeout = 60; } }; butterfly.onEnterFrame = function () { if (timeout == 60) { dist_x = (flower._x - this._x) * speed_scale; dist_y = (flower._y - this._y) * speed_scale; xspeed = xspeed + dist_x; yspeed = yspeed + dist_y; xspeed = xspeed * friction; yspeed = yspeed * friction; this._x = this._x + xspeed; this._y = this._y + yspeed; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; } }; web.onEnterFrame = function () { if (timeout == 60) { if (this.hitTests(flower)) { gotoAndStop ("gameoverweb"); } if (this.hitTests(butterfly)) { butterfly.swapDepths(9000); score++; butterfly.removeMovieClip(); butarray.splice(0, 1); if (butarray.length == 0) { _root.gotoAndPlay(_root._currentframe + 1); } } } };
Frame 4
stop(); friction = 0.905; speed_scale = 0.025; timeout = 0; scale = 1; butarray.push(butterfly); butarray.push(butterfly1); flower.onEnterFrame = function () { scoretext.text = "score: " + score; this._x = _root._xmouse; this._y = _root._ymouse; butterfly._xscale = scale; butterfly1._xscale = scale; butterfly._yscale = scale; butterfly1._yscale = scale; web._xscale = scale; web._yscale = scale; if (scale < 100) { scale = scale + 5; } timeout++; if (timeout > 60) { timeout = 60; } }; xspeed = 0; yspeed = 0; butterfly.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x = (flower._x - this._x) * speed_scale; dist_y = (flower._y - this._y) * speed_scale; xspeed = xspeed + dist_x; yspeed = yspeed + dist_y; xspeed = xspeed * friction; yspeed = yspeed * friction; this._x = this._x + xspeed; this._y = this._y + yspeed; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 275; this._y = 200; } } }; xspeed2 = 0; yspeed2 = 0; butterfly1.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x2 = (flower._x - this._x) * speed_scale; dist_y2 = (flower._y - this._y) * speed_scale; xspeed2 = xspeed2 + dist_x2; yspeed2 = yspeed2 + dist_y2; xspeed2 = xspeed2 * friction; yspeed2 = yspeed2 * friction; this._x = this._x + xspeed2; this._y = this._y + yspeed2; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 275; this._y = 200; } } }; web.onEnterFrame = function () { if (timeout == 60) { if (this.hitTests(flower)) { gotoAndStop ("gameoverweb"); } if (butarray.length == 0) { nextFrame(); } } };
Instance of Symbol 9 MovieClip "butterfly" in Frame 4
onClipEvent (load) { _xscale = 1; _yscale = 1; }
Instance of Symbol 100 MovieClip "web" in Frame 4
onClipEvent (load) { _xscale = 1; _yscale = 1; }
Instance of Symbol 9 MovieClip "butterfly1" in Frame 4
onClipEvent (load) { _xscale = 1; _yscale = 1; }
Frame 5
stop(); friction = 0.905; speed_scale = 0.025; timeout = 0; scale = 1; butarray.push(butterfly); butarray.push(butterfly1); butarray.push(butterfly2); flower.onEnterFrame = function () { scoretext.text = "score: " + score; this._x = _root._xmouse; this._y = _root._ymouse; butterfly._xscale = scale; butterfly1._xscale = scale; butterfly2._xscale = scale; butterfly._yscale = scale; butterfly1._yscale = scale; butterfly2._yscale = scale; web._xscale = scale; web._yscale = scale; if (scale < 100) { scale = scale + 5; } timeout++; if (timeout > 60) { timeout = 60; } }; xspeed = 0; yspeed = 0; butterfly.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x = (flower._x - this._x) * speed_scale; dist_y = (flower._y - this._y) * speed_scale; xspeed = xspeed + dist_x; yspeed = yspeed + dist_y; xspeed = xspeed * friction; yspeed = yspeed * friction; this._x = this._x + xspeed; this._y = this._y + yspeed; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 275; this._y = 200; } } }; xspeed1 = 0; yspeed1 = 0; butterfly1.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x1 = (flower._x - this._x) * speed_scale; dist_y1 = (flower._y - this._y) * speed_scale; xspeed1 = xspeed1 + dist_x1; yspeed1 = yspeed1 + dist_y1; xspeed1 = xspeed1 * friction; yspeed1 = yspeed1 * friction; this._x = this._x + xspeed1; this._y = this._y + yspeed1; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 275; this._y = 200; } } }; xspeed2 = 0; yspeed2 = 0; butterfly2.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x2 = (flower._x - this._x) * speed_scale; dist_y2 = (flower._y - this._y) * speed_scale; xspeed2 = xspeed2 + dist_x2; yspeed2 = yspeed2 + dist_y2; xspeed2 = xspeed2 * friction; yspeed2 = yspeed2 * friction; this._x = this._x + xspeed2; this._y = this._y + yspeed2; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 275; this._y = 200; } } }; web.onEnterFrame = function () { if (timeout == 60) { if (this.hitTests(flower)) { gotoAndStop ("gameoverweb"); } if (butarray.length == 0) { nextFrame(); } } };
Instance of Symbol 9 MovieClip "butterfly" in Frame 5
onClipEvent (load) { _xscale = 1; _yscale = 1; this._visible = true; butterfly._x = 85; butterfly._y = 35; }
Instance of Symbol 9 MovieClip "butterfly1" in Frame 5
onClipEvent (load) { _xscale = 1; _yscale = 1; this._visible = true; this._x = 435; this._y = 360; }
Instance of Symbol 9 MovieClip "butterfly2" in Frame 5
onClipEvent (load) { _xscale = 1; _yscale = 1; this._visible = true; this._x = 435; this._y = 35; }
Frame 6
stop(); friction = 0.905; speed_scale = 0.025; timeout = 0; scale = 1; butarray.push(butterfly); butarray.push(butterfly1); butarray.push(butterfly2); butarray.push(butterfly3); flower.onEnterFrame = function () { scoretext.text = "score: " + score; this._x = _root._xmouse; this._y = _root._ymouse; butterfly._xscale = scale; butterfly1._xscale = scale; butterfly2._xscale = scale; butterfly3._xscale = scale; butterfly._yscale = scale; butterfly1._yscale = scale; butterfly2._yscale = scale; butterfly3._yscale = scale; web._xscale = scale; web._yscale = scale; if (scale < 100) { scale = scale + 5; } timeout++; if (timeout > 60) { timeout = 60; } }; xspeed = 0; yspeed = 0; butterfly.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x = (flower._x - this._x) * speed_scale; dist_y = (flower._y - this._y) * speed_scale; xspeed = xspeed + dist_x; yspeed = yspeed + dist_y; xspeed = xspeed * friction; yspeed = yspeed * friction; this._x = this._x + xspeed; this._y = this._y + yspeed; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 275; this._y = 200; } } }; xspeed1 = 0; yspeed1 = 0; butterfly1.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x1 = (flower._x - this._x) * speed_scale; dist_y1 = (flower._y - this._y) * speed_scale; xspeed1 = xspeed1 + dist_x1; yspeed1 = yspeed1 + dist_y1; xspeed1 = xspeed1 * friction; yspeed1 = yspeed1 * friction; this._x = this._x + xspeed1; this._y = this._y + yspeed1; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 275; this._y = 200; } } }; xspeed2 = 0; yspeed2 = 0; butterfly2.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x2 = (flower._x - this._x) * speed_scale; dist_y2 = (flower._y - this._y) * speed_scale; xspeed2 = xspeed2 + dist_x2; yspeed2 = yspeed2 + dist_y2; xspeed2 = xspeed2 * friction; yspeed2 = yspeed2 * friction; this._x = this._x + xspeed2; this._y = this._y + yspeed2; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 275; this._y = 200; } } }; xspeed3 = 0; yspeed3 = 0; butterfly3.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x3 = (flower._x - this._x) * speed_scale; dist_y3 = (flower._y - this._y) * speed_scale; xspeed3 = xspeed3 + dist_x3; yspeed3 = yspeed3 + dist_y3; xspeed3 = xspeed3 * friction; yspeed3 = yspeed3 * friction; this._x = this._x + xspeed3; this._y = this._y + yspeed3; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 275; this._y = 200; } } }; web.onEnterFrame = function () { if (timeout == 60) { if (this.hitTests(flower)) { gotoAndStop ("gameoverweb"); } if (butarray.length == 0) { nextFrame(); } } };
Instance of Symbol 9 MovieClip "butterfly" in Frame 6
onClipEvent (load) { _xscale = 1; _yscale = 1; this._visible = true; this._x = 85; this._y = 35; }
Instance of Symbol 9 MovieClip "butterfly3" in Frame 6
onClipEvent (load) { _xscale = 1; _yscale = 1; this._visible = true; this._x = 435; this._y = 360; }
Instance of Symbol 9 MovieClip "butterfly2" in Frame 6
onClipEvent (load) { _xscale = 1; _yscale = 1; this._visible = true; this._x = 435; this._y = 35; }
Instance of Symbol 9 MovieClip "butterfly1" in Frame 6
onClipEvent (load) { _xscale = 1; _yscale = 1; this._visible = true; this._x = 85; this._y = 360; }
Frame 7
stop(); friction = 0.905; speed_scale = 0.025; timeout = 0; scale = 1; butarray.push(butterfly); butterfly._x = 85; butterfly._y = 35; butterfly._xscale = 1; butterfly._yscale = 1; butterfly._visible = true; butarray.push(butterfly1); butterfly1._x = 85; butterfly1._y = 360; butterfly1._xscale = 1; butterfly1._yscale = 1; butterfly1._visible = true; butarray.push(butterfly2); butterfly2._x = 435; butterfly2._y = 35; butterfly2._xscale = 1; butterfly2._yscale = 1; butterfly2._visible = true; butarray.push(butterfly3); butterfly3._x = 435; butterfly3._y = 360; butterfly3._xscale = 1; butterfly3._yscale = 1; butterfly3._visible = true; butarray.push(butterfly4); butterfly4._x = 265; butterfly4._y = 35; butterfly4._xscale = 1; butterfly4._yscale = 1; butterfly4._visible = true; flower.onEnterFrame = function () { scoretext.text = "score: " + score; this._x = _root._xmouse; this._y = _root._ymouse; butterfly._xscale = scale; butterfly1._xscale = scale; butterfly2._xscale = scale; butterfly3._xscale = scale; butterfly4._xscale = scale; butterfly._yscale = scale; butterfly1._yscale = scale; butterfly2._yscale = scale; butterfly3._yscale = scale; butterfly4._yscale = scale; web._xscale = scale; web._yscale = scale; if (scale < 100) { scale = scale + 5; } timeout++; if (timeout > 60) { timeout = 60; } }; xspeed = 0; yspeed = 0; butterfly.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x = (flower._x - this._x) * speed_scale; dist_y = (flower._y - this._y) * speed_scale; xspeed = xspeed + dist_x; yspeed = yspeed + dist_y; xspeed = xspeed * friction; yspeed = yspeed * friction; this._x = this._x + xspeed; this._y = this._y + yspeed; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 275; this._y = 200; } } }; xspeed1 = 0; yspeed1 = 0; butterfly1.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x1 = (flower._x - this._x) * speed_scale; dist_y1 = (flower._y - this._y) * speed_scale; xspeed1 = xspeed1 + dist_x1; yspeed1 = yspeed1 + dist_y1; xspeed1 = xspeed1 * friction; yspeed1 = yspeed1 * friction; this._x = this._x + xspeed1; this._y = this._y + yspeed1; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 275; this._y = 200; } } }; xspeed2 = 0; yspeed2 = 0; butterfly2.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x2 = (flower._x - this._x) * speed_scale; dist_y2 = (flower._y - this._y) * speed_scale; xspeed2 = xspeed2 + dist_x2; yspeed2 = yspeed2 + dist_y2; xspeed2 = xspeed2 * friction; yspeed2 = yspeed2 * friction; this._x = this._x + xspeed2; this._y = this._y + yspeed2; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 275; this._y = 200; } } }; xspeed3 = 0; yspeed3 = 0; butterfly3.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x3 = (flower._x - this._x) * speed_scale; dist_y3 = (flower._y - this._y) * speed_scale; xspeed3 = xspeed3 + dist_x3; yspeed3 = yspeed3 + dist_y3; xspeed3 = xspeed3 * friction; yspeed3 = yspeed3 * friction; this._x = this._x + xspeed3; this._y = this._y + yspeed3; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 275; this._y = 200; } } }; xspeed4 = 0; yspeed4 = 0; butterfly4.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x4 = (flower._x - this._x) * speed_scale; dist_y4 = (flower._y - this._y) * speed_scale; xspeed4 = xspeed4 + dist_x4; yspeed4 = yspeed4 + dist_y4; xspeed4 = xspeed4 * friction; yspeed4 = yspeed4 * friction; this._x = this._x + xspeed4; this._y = this._y + yspeed4; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 275; this._y = 200; } } }; web.onEnterFrame = function () { if (timeout == 60) { if (this.hitTests(flower)) { gotoAndStop ("gameoverweb"); } if (butarray.length == 0) { nextFrame(); } } };
Instance of Symbol 9 MovieClip "butterfly2" in Frame 7
onClipEvent (load) { _xscale = 1; _yscale = 1; this._visible = true; this._x = 435; this._y = 35; }
Instance of Symbol 9 MovieClip "butterfly4" in Frame 7
onClipEvent (load) { _xscale = 1; _yscale = 1; this._visible = true; this._x = 265; this._y = 35; }
Frame 8
stop(); friction = 0.905; speed_scale = 0.025; timeout = 0; scale = 1; butarray.push(butterfly); butterfly._x = 85; butterfly._y = 35; butterfly._xscale = 1; butterfly._yscale = 1; butterfly._visible = true; butarray.push(butterfly1); butterfly1._x = 85; butterfly1._y = 360; butterfly1._xscale = 1; butterfly1._yscale = 1; butterfly1._visible = true; butarray.push(butterfly2); butterfly2._x = 435; butterfly2._y = 35; butterfly2._xscale = 1; butterfly2._yscale = 1; butterfly2._visible = true; butarray.push(butterfly3); butterfly3._x = 435; butterfly3._y = 360; butterfly3._xscale = 1; butterfly3._yscale = 1; butterfly3._visible = true; butarray.push(butterfly4); butterfly4._x = 265; butterfly4._y = 35; butterfly4._xscale = 1; butterfly4._yscale = 1; butterfly4._visible = true; butarray.push(butterfly5); butterfly5._x = 265; butterfly5._y = 360; butterfly5._xscale = 1; butterfly5._yscale = 1; butterfly5._visible = true; flower.onEnterFrame = function () { scoretext.text = "score: " + score; this._x = _root._xmouse; this._y = _root._ymouse; butterfly._xscale = scale; butterfly1._xscale = scale; butterfly2._xscale = scale; butterfly3._xscale = scale; butterfly4._xscale = scale; butterfly5._xscale = scale; butterfly._yscale = scale; butterfly1._yscale = scale; butterfly2._yscale = scale; butterfly3._yscale = scale; butterfly4._yscale = scale; butterfly5._yscale = scale; web._xscale = scale; web._yscale = scale; if (scale < 100) { scale = scale + 5; } timeout++; if (timeout > 60) { timeout = 60; } }; xspeed = 0; yspeed = 0; butterfly.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x = (flower._x - this._x) * speed_scale; dist_y = (flower._y - this._y) * speed_scale; xspeed = xspeed + dist_x; yspeed = yspeed + dist_y; xspeed = xspeed * friction; yspeed = yspeed * friction; this._x = this._x + xspeed; this._y = this._y + yspeed; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 275; this._y = 200; } } }; xspeed1 = 0; yspeed1 = 0; butterfly1.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x1 = (flower._x - this._x) * speed_scale; dist_y1 = (flower._y - this._y) * speed_scale; xspeed1 = xspeed1 + dist_x1; yspeed1 = yspeed1 + dist_y1; xspeed1 = xspeed1 * friction; yspeed1 = yspeed1 * friction; this._x = this._x + xspeed1; this._y = this._y + yspeed1; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 275; this._y = 200; } } }; xspeed2 = 0; yspeed2 = 0; butterfly2.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x2 = (flower._x - this._x) * speed_scale; dist_y2 = (flower._y - this._y) * speed_scale; xspeed2 = xspeed2 + dist_x2; yspeed2 = yspeed2 + dist_y2; xspeed2 = xspeed2 * friction; yspeed2 = yspeed2 * friction; this._x = this._x + xspeed2; this._y = this._y + yspeed2; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 275; this._y = 200; } } }; xspeed3 = 0; yspeed3 = 0; butterfly3.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x3 = (flower._x - this._x) * speed_scale; dist_y3 = (flower._y - this._y) * speed_scale; xspeed3 = xspeed3 + dist_x3; yspeed3 = yspeed3 + dist_y3; xspeed3 = xspeed3 * friction; yspeed3 = yspeed3 * friction; this._x = this._x + xspeed3; this._y = this._y + yspeed3; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 275; this._y = 200; } } }; xspeed4 = 0; yspeed4 = 0; butterfly4.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x4 = (flower._x - this._x) * speed_scale; dist_y4 = (flower._y - this._y) * speed_scale; xspeed4 = xspeed4 + dist_x4; yspeed4 = yspeed4 + dist_y4; xspeed4 = xspeed4 * friction; yspeed4 = yspeed4 * friction; this._x = this._x + xspeed4; this._y = this._y + yspeed4; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 275; this._y = 200; } } }; xspeed5 = 0; yspeed5 = 0; butterfly5.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x5 = (flower._x - this._x) * speed_scale; dist_y5 = (flower._y - this._y) * speed_scale; xspeed5 = xspeed5 + dist_x5; yspeed5 = yspeed5 + dist_y5; xspeed5 = xspeed5 * friction; yspeed5 = yspeed5 * friction; this._x = this._x + xspeed5; this._y = this._y + yspeed5; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 275; this._y = 200; } } }; web.onEnterFrame = function () { if (timeout == 60) { if (this.hitTests(flower)) { gotoAndStop ("gameoverweb"); } if (butarray.length == 0) { nextFrame(); } } };
Instance of Symbol 9 MovieClip "butterfly5" in Frame 8
onClipEvent (load) { _xscale = 1; _yscale = 1; this._visible = true; this._x = 265; this._y = 360; }
Frame 9
stop(); friction = 0.905; speed_scale = 0.025; timeout = 0; scale = 1; butarray.push(butterfly); butterfly._x = 85; butterfly._y = 35; butterfly._xscale = 1; butterfly._yscale = 1; butterfly._visible = true; butarray.push(butterfly1); butterfly1._x = 85; butterfly1._y = 360; butterfly1._xscale = 1; butterfly1._yscale = 1; butterfly1._visible = true; butarray.push(butterfly2); butterfly2._x = 435; butterfly2._y = 35; butterfly2._xscale = 1; butterfly2._yscale = 1; butterfly2._visible = true; butarray.push(butterfly3); butterfly3._x = 435; butterfly3._y = 360; butterfly3._xscale = 1; butterfly3._yscale = 1; butterfly3._visible = true; butarray.push(butterfly4); butterfly4._x = 265; butterfly4._y = 35; butterfly4._xscale = 1; butterfly4._yscale = 1; butterfly4._visible = true; butarray.push(butterfly5); butterfly5._x = 265; butterfly5._y = 360; butterfly5._xscale = 1; butterfly5._yscale = 1; butterfly5._visible = true; butarray.push(butterfly6); butterfly6._x = 15; butterfly6._y = 190; butterfly6._xscale = 1; butterfly6._yscale = 1; butterfly6._visible = true; flower.onEnterFrame = function () { scoretext.text = "score: " + score; this._x = _root._xmouse; this._y = _root._ymouse; butterfly._xscale = scale; butterfly1._xscale = scale; butterfly2._xscale = scale; butterfly3._xscale = scale; butterfly4._xscale = scale; butterfly5._xscale = scale; butterfly6._xscale = scale; butterfly._yscale = scale; butterfly1._yscale = scale; butterfly2._yscale = scale; butterfly3._yscale = scale; butterfly4._yscale = scale; butterfly5._yscale = scale; butterfly6._yscale = scale; web._xscale = scale; web._yscale = scale; if (scale < 100) { scale = scale + 5; } timeout++; if (timeout > 60) { timeout = 60; } }; xspeed = 0; yspeed = 0; butterfly.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x = (flower._x - this._x) * speed_scale; dist_y = (flower._y - this._y) * speed_scale; xspeed = xspeed + dist_x; yspeed = yspeed + dist_y; xspeed = xspeed * friction; yspeed = yspeed * friction; this._x = this._x + xspeed; this._y = this._y + yspeed; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 275; this._y = 200; } } }; xspeed1 = 0; yspeed1 = 0; butterfly1.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x1 = (flower._x - this._x) * speed_scale; dist_y1 = (flower._y - this._y) * speed_scale; xspeed1 = xspeed1 + dist_x1; yspeed1 = yspeed1 + dist_y1; xspeed1 = xspeed1 * friction; yspeed1 = yspeed1 * friction; this._x = this._x + xspeed1; this._y = this._y + yspeed1; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 275; this._y = 200; } } }; xspeed2 = 0; yspeed2 = 0; butterfly2.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x2 = (flower._x - this._x) * speed_scale; dist_y2 = (flower._y - this._y) * speed_scale; xspeed2 = xspeed2 + dist_x2; yspeed2 = yspeed2 + dist_y2; xspeed2 = xspeed2 * friction; yspeed2 = yspeed2 * friction; this._x = this._x + xspeed2; this._y = this._y + yspeed2; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 275; this._y = 200; } } }; xspeed3 = 0; yspeed3 = 0; butterfly3.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x3 = (flower._x - this._x) * speed_scale; dist_y3 = (flower._y - this._y) * speed_scale; xspeed3 = xspeed3 + dist_x3; yspeed3 = yspeed3 + dist_y3; xspeed3 = xspeed3 * friction; yspeed3 = yspeed3 * friction; this._x = this._x + xspeed3; this._y = this._y + yspeed3; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 275; this._y = 200; } } }; xspeed4 = 0; yspeed4 = 0; butterfly4.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x4 = (flower._x - this._x) * speed_scale; dist_y4 = (flower._y - this._y) * speed_scale; xspeed4 = xspeed4 + dist_x4; yspeed4 = yspeed4 + dist_y4; xspeed4 = xspeed4 * friction; yspeed4 = yspeed4 * friction; this._x = this._x + xspeed4; this._y = this._y + yspeed4; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 275; this._y = 200; } } }; xspeed5 = 0; yspeed5 = 0; butterfly5.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x5 = (flower._x - this._x) * speed_scale; dist_y5 = (flower._y - this._y) * speed_scale; xspeed5 = xspeed5 + dist_x5; yspeed5 = yspeed5 + dist_y5; xspeed5 = xspeed5 * friction; yspeed5 = yspeed5 * friction; this._x = this._x + xspeed5; this._y = this._y + yspeed5; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 275; this._y = 200; } } }; xspeed6 = 0; yspeed6 = 0; butterfly6.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x6 = (flower._x - this._x) * speed_scale; dist_y6 = (flower._y - this._y) * speed_scale; xspeed6 = xspeed6 + dist_x6; yspeed6 = yspeed6 + dist_y6; xspeed6 = xspeed6 * friction; yspeed6 = yspeed6 * friction; this._x = this._x + xspeed6; this._y = this._y + yspeed6; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 275; this._y = 200; } } }; web.onEnterFrame = function () { if (timeout == 60) { if (this.hitTests(flower)) { gotoAndStop ("gameoverweb"); } if (butarray.length == 0) { nextFrame(); } } };
Instance of Symbol 9 MovieClip "butterfly6" in Frame 9
onClipEvent (load) { _xscale = 1; _yscale = 1; this._visible = true; this._x = 15; this._y = 190; }
Frame 10
stop(); friction = 0.905; speed_scale = 0.025; timeout = 0; scale = 1; butarray.push(butterfly); butterfly._x = 85; butterfly._y = 35; butterfly._xscale = 1; butterfly._yscale = 1; butterfly._visible = true; butarray.push(butterfly1); butterfly1._x = 85; butterfly1._y = 360; butterfly1._xscale = 1; butterfly1._yscale = 1; butterfly1._visible = true; butarray.push(butterfly2); butterfly2._x = 435; butterfly2._y = 35; butterfly2._xscale = 1; butterfly2._yscale = 1; butterfly2._visible = true; butarray.push(butterfly3); butterfly3._x = 435; butterfly3._y = 360; butterfly3._xscale = 1; butterfly3._yscale = 1; butterfly3._visible = true; butarray.push(butterfly4); butterfly4._x = 265; butterfly4._y = 35; butterfly4._xscale = 1; butterfly4._yscale = 1; butterfly4._visible = true; butarray.push(butterfly5); butterfly5._x = 265; butterfly5._y = 360; butterfly5._xscale = 1; butterfly5._yscale = 1; butterfly5._visible = true; butarray.push(butterfly6); butterfly6._x = 15; butterfly6._y = 190; butterfly6._xscale = 1; butterfly6._yscale = 1; butterfly6._visible = true; butarray.push(butterfly7); butterfly7._x = 15; butterfly7._y = 190; butterfly7._xscale = 1; butterfly7._yscale = 1; butterfly7._visible = true; flower.onEnterFrame = function () { scoretext.text = "score: " + score; this._x = _root._xmouse; this._y = _root._ymouse; butterfly._xscale = scale; butterfly1._xscale = scale; butterfly2._xscale = scale; butterfly3._xscale = scale; butterfly4._xscale = scale; butterfly5._xscale = scale; butterfly6._xscale = scale; butterfly7._xscale = scale; butterfly._yscale = scale; butterfly1._yscale = scale; butterfly2._yscale = scale; butterfly3._yscale = scale; butterfly4._yscale = scale; butterfly5._yscale = scale; butterfly6._yscale = scale; butterfly7._yscale = scale; web._xscale = scale; web._yscale = scale; if (scale < 100) { scale = scale + 5; } timeout++; if (timeout > 60) { timeout = 60; } }; xspeed = 0; yspeed = 0; butterfly.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x = (flower._x - this._x) * speed_scale; dist_y = (flower._y - this._y) * speed_scale; xspeed = xspeed + dist_x; yspeed = yspeed + dist_y; xspeed = xspeed * friction; yspeed = yspeed * friction; this._x = this._x + xspeed; this._y = this._y + yspeed; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 275; this._y = 200; } } }; xspeed1 = 0; yspeed1 = 0; butterfly1.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x1 = (flower._x - this._x) * speed_scale; dist_y1 = (flower._y - this._y) * speed_scale; xspeed1 = xspeed1 + dist_x1; yspeed1 = yspeed1 + dist_y1; xspeed1 = xspeed1 * friction; yspeed1 = yspeed1 * friction; this._x = this._x + xspeed1; this._y = this._y + yspeed1; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 275; this._y = 200; } } }; xspeed2 = 0; yspeed2 = 0; butterfly2.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x2 = (flower._x - this._x) * speed_scale; dist_y2 = (flower._y - this._y) * speed_scale; xspeed2 = xspeed2 + dist_x2; yspeed2 = yspeed2 + dist_y2; xspeed2 = xspeed2 * friction; yspeed2 = yspeed2 * friction; this._x = this._x + xspeed2; this._y = this._y + yspeed2; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 275; this._y = 200; } } }; xspeed3 = 0; yspeed3 = 0; butterfly3.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x3 = (flower._x - this._x) * speed_scale; dist_y3 = (flower._y - this._y) * speed_scale; xspeed3 = xspeed3 + dist_x3; yspeed3 = yspeed3 + dist_y3; xspeed3 = xspeed3 * friction; yspeed3 = yspeed3 * friction; this._x = this._x + xspeed3; this._y = this._y + yspeed3; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 275; this._y = 200; } } }; xspeed4 = 0; yspeed4 = 0; butterfly4.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x4 = (flower._x - this._x) * speed_scale; dist_y4 = (flower._y - this._y) * speed_scale; xspeed4 = xspeed4 + dist_x4; yspeed4 = yspeed4 + dist_y4; xspeed4 = xspeed4 * friction; yspeed4 = yspeed4 * friction; this._x = this._x + xspeed4; this._y = this._y + yspeed4; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 275; this._y = 200; } } }; xspeed5 = 0; yspeed5 = 0; butterfly5.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x5 = (flower._x - this._x) * speed_scale; dist_y5 = (flower._y - this._y) * speed_scale; xspeed5 = xspeed5 + dist_x5; yspeed5 = yspeed5 + dist_y5; xspeed5 = xspeed5 * friction; yspeed5 = yspeed5 * friction; this._x = this._x + xspeed5; this._y = this._y + yspeed5; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 275; this._y = 200; } } }; xspeed6 = 0; yspeed6 = 0; butterfly6.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x6 = (flower._x - this._x) * speed_scale; dist_y6 = (flower._y - this._y) * speed_scale; xspeed6 = xspeed6 + dist_x6; yspeed6 = yspeed6 + dist_y6; xspeed6 = xspeed6 * friction; yspeed6 = yspeed6 * friction; this._x = this._x + xspeed6; this._y = this._y + yspeed6; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 275; this._y = 200; } } }; xspeed7 = 0; yspeed7 = 0; butterfly7.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x7 = (flower._x - this._x) * speed_scale; dist_y7 = (flower._y - this._y) * speed_scale; xspeed7 = xspeed7 + dist_x7; yspeed7 = yspeed7 + dist_y7; xspeed7 = xspeed7 * friction; yspeed7 = yspeed7 * friction; this._x = this._x + xspeed7; this._y = this._y + yspeed7; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 275; this._y = 200; } } }; web.onEnterFrame = function () { if (timeout == 60) { if (this.hitTests(flower)) { gotoAndStop ("gameoverweb"); } if (butarray.length == 0) { nextFrame(); } } };
Instance of Symbol 9 MovieClip "butterfly7" in Frame 10
onClipEvent (load) { _xscale = 1; _yscale = 1; this._visible = true; this._x = 515; this._y = 190; }
Frame 11
stop(); friction = 0.905; friction2 = 0.87; speed_scale = 0.025; speed_scale2 = 0.035; timeout = 0; scale = 1; butarray.push(butterfly); butterfly._x = 85; butterfly._y = 35; butterfly._xscale = 1; butterfly._yscale = 1; butterfly._visible = true; butarray.push(butterfly1); butterfly1._x = 85; butterfly1._y = 360; butterfly1._xscale = 1; butterfly1._yscale = 1; butterfly1._visible = true; butarray.push(butterfly2); butterfly2._x = 435; butterfly2._y = 35; butterfly2._xscale = 1; butterfly2._yscale = 1; butterfly2._visible = true; butarray.push(butterfly3); butterfly3._x = 435; butterfly3._y = 360; butterfly3._xscale = 1; butterfly3._yscale = 1; butterfly3._visible = true; butarray.push(butterfly4); butterfly4._x = 265; butterfly4._y = 35; butterfly4._xscale = 1; butterfly4._yscale = 1; butterfly4._visible = true; butarray.push(butterfly5); butterfly5._x = 265; butterfly5._y = 360; butterfly5._xscale = 1; butterfly5._yscale = 1; butterfly5._visible = true; butarray.push(butterfly6); butterfly6._x = 15; butterfly6._y = 190; butterfly6._xscale = 1; butterfly6._yscale = 1; butterfly6._visible = true; butarray.push(butterfly7); butterfly7._x = 15; butterfly7._y = 190; butterfly7._xscale = 1; butterfly7._yscale = 1; butterfly7._visible = true; butarray.push(butterfly8); butterfly8._x = 515; butterfly8._y = 260; butterfly8._xscale = 1; butterfly8._yscale = 1; butterfly8._visible = true; flower.onEnterFrame = function () { scoretext.text = "score: " + score; this._x = _root._xmouse; this._y = _root._ymouse; butterfly._xscale = scale; butterfly1._xscale = scale; butterfly2._xscale = scale; butterfly3._xscale = scale; butterfly4._xscale = scale; butterfly5._xscale = scale; butterfly6._xscale = scale; butterfly7._xscale = scale; butterfly8._xscale = scale; butterfly._yscale = scale; butterfly1._yscale = scale; butterfly2._yscale = scale; butterfly3._yscale = scale; butterfly4._yscale = scale; butterfly5._yscale = scale; butterfly6._yscale = scale; butterfly7._yscale = scale; butterfly8._yscale = scale; web._xscale = scale; web._yscale = scale; web2._xscale = scale; web2._yscale = scale; if (scale < 100) { scale = scale + 5; } timeout++; if (timeout > 60) { timeout = 60; } }; xspeed = 0; yspeed = 0; butterfly.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x = (flower._x - this._x) * speed_scale; dist_y = (flower._y - this._y) * speed_scale; xspeed = xspeed + dist_x; yspeed = yspeed + dist_y; xspeed = xspeed * friction; yspeed = yspeed * friction; this._x = this._x + xspeed; this._y = this._y + yspeed; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; xspeed1 = 0; yspeed1 = 0; butterfly1.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x1 = (flower._x - this._x) * speed_scale; dist_y1 = (flower._y - this._y) * speed_scale; xspeed1 = xspeed1 + dist_x1; yspeed1 = yspeed1 + dist_y1; xspeed1 = xspeed1 * friction; yspeed1 = yspeed1 * friction; this._x = this._x + xspeed1; this._y = this._y + yspeed1; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; xspeed2 = 0; yspeed2 = 0; butterfly2.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x2 = (flower._x - this._x) * speed_scale; dist_y2 = (flower._y - this._y) * speed_scale; xspeed2 = xspeed2 + dist_x2; yspeed2 = yspeed2 + dist_y2; xspeed2 = xspeed2 * friction; yspeed2 = yspeed2 * friction; this._x = this._x + xspeed2; this._y = this._y + yspeed2; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; xspeed3 = 0; yspeed3 = 0; butterfly3.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x3 = (flower._x - this._x) * speed_scale; dist_y3 = (flower._y - this._y) * speed_scale; xspeed3 = xspeed3 + dist_x3; yspeed3 = yspeed3 + dist_y3; xspeed3 = xspeed3 * friction; yspeed3 = yspeed3 * friction; this._x = this._x + xspeed3; this._y = this._y + yspeed3; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; xspeed4 = 0; yspeed4 = 0; butterfly4.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x4 = (flower._x - this._x) * speed_scale; dist_y4 = (flower._y - this._y) * speed_scale; xspeed4 = xspeed4 + dist_x4; yspeed4 = yspeed4 + dist_y4; xspeed4 = xspeed4 * friction; yspeed4 = yspeed4 * friction; this._x = this._x + xspeed4; this._y = this._y + yspeed4; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; xspeed5 = 0; yspeed5 = 0; butterfly5.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x5 = (flower._x - this._x) * speed_scale; dist_y5 = (flower._y - this._y) * speed_scale; xspeed5 = xspeed5 + dist_x5; yspeed5 = yspeed5 + dist_y5; xspeed5 = xspeed5 * friction; yspeed5 = yspeed5 * friction; this._x = this._x + xspeed5; this._y = this._y + yspeed5; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; xspeed6 = 0; yspeed6 = 0; butterfly6.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x6 = (flower._x - this._x) * speed_scale; dist_y6 = (flower._y - this._y) * speed_scale; xspeed6 = xspeed6 + dist_x6; yspeed6 = yspeed6 + dist_y6; xspeed6 = xspeed6 * friction; yspeed6 = yspeed6 * friction; this._x = this._x + xspeed6; this._y = this._y + yspeed6; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; xspeed7 = 0; yspeed7 = 0; butterfly7.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x7 = (flower._x - this._x) * speed_scale; dist_y7 = (flower._y - this._y) * speed_scale; xspeed7 = xspeed7 + dist_x7; yspeed7 = yspeed7 + dist_y7; xspeed7 = xspeed7 * friction; yspeed7 = yspeed7 * friction; this._x = this._x + xspeed7; this._y = this._y + yspeed7; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; xspeed8 = 0; yspeed8 = 0; butterfly8.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x8 = (flower._x - this._x) * speed_scale2; dist_y8 = (flower._y - this._y) * speed_scale2; xspeed8 = xspeed8 + dist_x8; yspeed8 = yspeed8 + dist_y8; xspeed8 = xspeed8 * friction2; yspeed8 = yspeed8 * friction2; this._x = this._x + xspeed8; this._y = this._y + yspeed8; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web2)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; web.onEnterFrame = function () { if (timeout == 60) { if (this.hitTests(flower)) { gotoAndStop ("gameoverweb"); } if (butarray.length == 0) { nextFrame(); } } }; web2.onEnterFrame = function () { if (timeout == 60) { if (this.hitTests(flower)) { gotoAndStop ("gameoverweb"); } } };
Instance of Symbol 100 MovieClip "web" in Frame 11
onClipEvent (load) { _xscale = 1; _yscale = 1; _x = 395; _y = 200; }
Instance of Symbol 100 MovieClip "web2" in Frame 11
onClipEvent (load) { _xscale = 1; _yscale = 1; }
Instance of Symbol 104 MovieClip "butterfly8" in Frame 11
onClipEvent (load) { _xscale = 1; _yscale = 1; this._visible = true; this._x = 515; this._y = 260; }
Frame 12
stop(); friction = 0.905; friction2 = 0.87; speed_scale = 0.025; speed_scale2 = 0.035; timeout = 0; scale = 1; butarray.push(butterfly); butterfly._x = 85; butterfly._y = 35; butterfly._xscale = 1; butterfly._yscale = 1; butterfly._visible = true; butarray.push(butterfly1); butterfly1._x = 85; butterfly1._y = 360; butterfly1._xscale = 1; butterfly1._yscale = 1; butterfly1._visible = true; butarray.push(butterfly2); butterfly2._x = 435; butterfly2._y = 35; butterfly2._xscale = 1; butterfly2._yscale = 1; butterfly2._visible = true; butarray.push(butterfly3); butterfly3._x = 435; butterfly3._y = 360; butterfly3._xscale = 1; butterfly3._yscale = 1; butterfly3._visible = true; butarray.push(butterfly4); butterfly4._x = 265; butterfly4._y = 35; butterfly4._xscale = 1; butterfly4._yscale = 1; butterfly4._visible = true; butarray.push(butterfly5); butterfly5._x = 265; butterfly5._y = 360; butterfly5._xscale = 1; butterfly5._yscale = 1; butterfly5._visible = true; butarray.push(butterfly6); butterfly6._x = 15; butterfly6._y = 190; butterfly6._xscale = 1; butterfly6._yscale = 1; butterfly6._visible = true; butarray.push(butterfly7); butterfly7._x = 15; butterfly7._y = 190; butterfly7._xscale = 1; butterfly7._yscale = 1; butterfly7._visible = true; butarray.push(butterfly8); butterfly8._x = 515; butterfly8._y = 260; butterfly8._xscale = 1; butterfly8._yscale = 1; butterfly8._visible = true; butarray.push(butterfly9); butterfly9._x = 15; butterfly9._y = 105; butterfly9._xscale = 1; butterfly9._yscale = 1; butterfly9._visible = true; flower.onEnterFrame = function () { scoretext.text = "score: " + score; this._x = _root._xmouse; this._y = _root._ymouse; butterfly._xscale = scale; butterfly1._xscale = scale; butterfly2._xscale = scale; butterfly3._xscale = scale; butterfly4._xscale = scale; butterfly5._xscale = scale; butterfly6._xscale = scale; butterfly7._xscale = scale; butterfly8._xscale = scale; butterfly9._xscale = scale; butterfly._yscale = scale; butterfly1._yscale = scale; butterfly2._yscale = scale; butterfly3._yscale = scale; butterfly4._yscale = scale; butterfly5._yscale = scale; butterfly6._yscale = scale; butterfly7._yscale = scale; butterfly8._yscale = scale; butterfly9._yscale = scale; web._xscale = scale; web._yscale = scale; web2._xscale = scale; web2._yscale = scale; if (scale < 100) { scale = scale + 5; } timeout++; if (timeout > 60) { timeout = 60; } }; xspeed = 0; yspeed = 0; butterfly.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x = (flower._x - this._x) * speed_scale; dist_y = (flower._y - this._y) * speed_scale; xspeed = xspeed + dist_x; yspeed = yspeed + dist_y; xspeed = xspeed * friction; yspeed = yspeed * friction; this._x = this._x + xspeed; this._y = this._y + yspeed; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; xspeed1 = 0; yspeed1 = 0; butterfly1.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x1 = (flower._x - this._x) * speed_scale; dist_y1 = (flower._y - this._y) * speed_scale; xspeed1 = xspeed1 + dist_x1; yspeed1 = yspeed1 + dist_y1; xspeed1 = xspeed1 * friction; yspeed1 = yspeed1 * friction; this._x = this._x + xspeed1; this._y = this._y + yspeed1; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; xspeed2 = 0; yspeed2 = 0; butterfly2.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x2 = (flower._x - this._x) * speed_scale; dist_y2 = (flower._y - this._y) * speed_scale; xspeed2 = xspeed2 + dist_x2; yspeed2 = yspeed2 + dist_y2; xspeed2 = xspeed2 * friction; yspeed2 = yspeed2 * friction; this._x = this._x + xspeed2; this._y = this._y + yspeed2; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; xspeed3 = 0; yspeed3 = 0; butterfly3.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x3 = (flower._x - this._x) * speed_scale; dist_y3 = (flower._y - this._y) * speed_scale; xspeed3 = xspeed3 + dist_x3; yspeed3 = yspeed3 + dist_y3; xspeed3 = xspeed3 * friction; yspeed3 = yspeed3 * friction; this._x = this._x + xspeed3; this._y = this._y + yspeed3; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; xspeed4 = 0; yspeed4 = 0; butterfly4.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x4 = (flower._x - this._x) * speed_scale; dist_y4 = (flower._y - this._y) * speed_scale; xspeed4 = xspeed4 + dist_x4; yspeed4 = yspeed4 + dist_y4; xspeed4 = xspeed4 * friction; yspeed4 = yspeed4 * friction; this._x = this._x + xspeed4; this._y = this._y + yspeed4; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; xspeed5 = 0; yspeed5 = 0; butterfly5.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x5 = (flower._x - this._x) * speed_scale; dist_y5 = (flower._y - this._y) * speed_scale; xspeed5 = xspeed5 + dist_x5; yspeed5 = yspeed5 + dist_y5; xspeed5 = xspeed5 * friction; yspeed5 = yspeed5 * friction; this._x = this._x + xspeed5; this._y = this._y + yspeed5; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; xspeed6 = 0; yspeed6 = 0; butterfly6.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x6 = (flower._x - this._x) * speed_scale; dist_y6 = (flower._y - this._y) * speed_scale; xspeed6 = xspeed6 + dist_x6; yspeed6 = yspeed6 + dist_y6; xspeed6 = xspeed6 * friction; yspeed6 = yspeed6 * friction; this._x = this._x + xspeed6; this._y = this._y + yspeed6; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; xspeed7 = 0; yspeed7 = 0; butterfly7.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x7 = (flower._x - this._x) * speed_scale; dist_y7 = (flower._y - this._y) * speed_scale; xspeed7 = xspeed7 + dist_x7; yspeed7 = yspeed7 + dist_y7; xspeed7 = xspeed7 * friction; yspeed7 = yspeed7 * friction; this._x = this._x + xspeed7; this._y = this._y + yspeed7; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; xspeed8 = 0; yspeed8 = 0; butterfly8.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x8 = (flower._x - this._x) * speed_scale2; dist_y8 = (flower._y - this._y) * speed_scale2; xspeed8 = xspeed8 + dist_x8; yspeed8 = yspeed8 + dist_y8; xspeed8 = xspeed8 * friction2; yspeed8 = yspeed8 * friction2; this._x = this._x + xspeed8; this._y = this._y + yspeed8; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web2)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; xspeed9 = 0; yspeed9 = 0; butterfly9.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x9 = (flower._x - this._x) * speed_scale2; dist_y9 = (flower._y - this._y) * speed_scale2; xspeed9 = xspeed9 + dist_x9; yspeed9 = yspeed9 + dist_y9; xspeed9 = xspeed9 * friction2; yspeed9 = yspeed9 * friction2; this._x = this._x + xspeed9; this._y = this._y + yspeed9; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web2)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; web.onEnterFrame = function () { if (timeout == 60) { if (this.hitTests(flower)) { gotoAndStop ("gameoverweb"); } if (butarray.length == 0) { nextFrame(); } } }; web2.onEnterFrame = function () { if (timeout == 60) { if (this.hitTests(flower)) { gotoAndStop ("gameoverweb"); } } };
Instance of Symbol 104 MovieClip "butterfly9" in Frame 12
onClipEvent (load) { _xscale = 1; _yscale = 1; this._visible = true; this._x = 15; this._y = 105; }
Frame 13
stop(); friction = 0.905; friction2 = 0.87; speed_scale = 0.025; speed_scale2 = 0.035; timeout = 0; scale = 1; butarray.push(butterfly); butterfly._x = 85; butterfly._y = 35; butterfly._xscale = 1; butterfly._yscale = 1; butterfly._visible = true; butarray.push(butterfly1); butterfly1._x = 85; butterfly1._y = 360; butterfly1._xscale = 1; butterfly1._yscale = 1; butterfly1._visible = true; butarray.push(butterfly2); butterfly2._x = 435; butterfly2._y = 35; butterfly2._xscale = 1; butterfly2._yscale = 1; butterfly2._visible = true; butarray.push(butterfly3); butterfly3._x = 435; butterfly3._y = 360; butterfly3._xscale = 1; butterfly3._yscale = 1; butterfly3._visible = true; butarray.push(butterfly4); butterfly4._x = 265; butterfly4._y = 35; butterfly4._xscale = 1; butterfly4._yscale = 1; butterfly4._visible = true; butarray.push(butterfly5); butterfly5._x = 265; butterfly5._y = 360; butterfly5._xscale = 1; butterfly5._yscale = 1; butterfly5._visible = true; butarray.push(butterfly6); butterfly6._x = 15; butterfly6._y = 190; butterfly6._xscale = 1; butterfly6._yscale = 1; butterfly6._visible = true; butarray.push(butterfly7); butterfly7._x = 15; butterfly7._y = 190; butterfly7._xscale = 1; butterfly7._yscale = 1; butterfly7._visible = true; butarray.push(butterfly8); butterfly8._x = 515; butterfly8._y = 260; butterfly8._xscale = 1; butterfly8._yscale = 1; butterfly8._visible = true; butarray.push(butterfly9); butterfly9._x = 15; butterfly9._y = 105; butterfly9._xscale = 1; butterfly9._yscale = 1; butterfly9._visible = true; butarray.push(butterfly10); butterfly10._x = 170; butterfly10._y = 360; butterfly10._xscale = 1; butterfly10._yscale = 1; butterfly10._visible = true; flower.onEnterFrame = function () { scoretext.text = "score: " + score; this._x = _root._xmouse; this._y = _root._ymouse; butterfly._xscale = scale; butterfly1._xscale = scale; butterfly2._xscale = scale; butterfly3._xscale = scale; butterfly4._xscale = scale; butterfly5._xscale = scale; butterfly6._xscale = scale; butterfly7._xscale = scale; butterfly8._xscale = scale; butterfly9._xscale = scale; butterfly10._xscale = scale; butterfly._yscale = scale; butterfly1._yscale = scale; butterfly2._yscale = scale; butterfly3._yscale = scale; butterfly4._yscale = scale; butterfly5._yscale = scale; butterfly6._yscale = scale; butterfly7._yscale = scale; butterfly8._yscale = scale; butterfly9._yscale = scale; butterfly10._yscale = scale; web._xscale = scale; web._yscale = scale; web2._xscale = scale; web2._yscale = scale; if (scale < 100) { scale = scale + 5; } timeout++; if (timeout > 60) { timeout = 60; } }; xspeed = 0; yspeed = 0; butterfly.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x = (flower._x - this._x) * speed_scale; dist_y = (flower._y - this._y) * speed_scale; xspeed = xspeed + dist_x; yspeed = yspeed + dist_y; xspeed = xspeed * friction; yspeed = yspeed * friction; this._x = this._x + xspeed; this._y = this._y + yspeed; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; xspeed1 = 0; yspeed1 = 0; butterfly1.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x1 = (flower._x - this._x) * speed_scale; dist_y1 = (flower._y - this._y) * speed_scale; xspeed1 = xspeed1 + dist_x1; yspeed1 = yspeed1 + dist_y1; xspeed1 = xspeed1 * friction; yspeed1 = yspeed1 * friction; this._x = this._x + xspeed1; this._y = this._y + yspeed1; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; xspeed2 = 0; yspeed2 = 0; butterfly2.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x2 = (flower._x - this._x) * speed_scale; dist_y2 = (flower._y - this._y) * speed_scale; xspeed2 = xspeed2 + dist_x2; yspeed2 = yspeed2 + dist_y2; xspeed2 = xspeed2 * friction; yspeed2 = yspeed2 * friction; this._x = this._x + xspeed2; this._y = this._y + yspeed2; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; xspeed3 = 0; yspeed3 = 0; butterfly3.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x3 = (flower._x - this._x) * speed_scale; dist_y3 = (flower._y - this._y) * speed_scale; xspeed3 = xspeed3 + dist_x3; yspeed3 = yspeed3 + dist_y3; xspeed3 = xspeed3 * friction; yspeed3 = yspeed3 * friction; this._x = this._x + xspeed3; this._y = this._y + yspeed3; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; xspeed4 = 0; yspeed4 = 0; butterfly4.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x4 = (flower._x - this._x) * speed_scale; dist_y4 = (flower._y - this._y) * speed_scale; xspeed4 = xspeed4 + dist_x4; yspeed4 = yspeed4 + dist_y4; xspeed4 = xspeed4 * friction; yspeed4 = yspeed4 * friction; this._x = this._x + xspeed4; this._y = this._y + yspeed4; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; xspeed5 = 0; yspeed5 = 0; butterfly5.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x5 = (flower._x - this._x) * speed_scale; dist_y5 = (flower._y - this._y) * speed_scale; xspeed5 = xspeed5 + dist_x5; yspeed5 = yspeed5 + dist_y5; xspeed5 = xspeed5 * friction; yspeed5 = yspeed5 * friction; this._x = this._x + xspeed5; this._y = this._y + yspeed5; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; xspeed6 = 0; yspeed6 = 0; butterfly6.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x6 = (flower._x - this._x) * speed_scale; dist_y6 = (flower._y - this._y) * speed_scale; xspeed6 = xspeed6 + dist_x6; yspeed6 = yspeed6 + dist_y6; xspeed6 = xspeed6 * friction; yspeed6 = yspeed6 * friction; this._x = this._x + xspeed6; this._y = this._y + yspeed6; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; xspeed7 = 0; yspeed7 = 0; butterfly7.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x7 = (flower._x - this._x) * speed_scale; dist_y7 = (flower._y - this._y) * speed_scale; xspeed7 = xspeed7 + dist_x7; yspeed7 = yspeed7 + dist_y7; xspeed7 = xspeed7 * friction; yspeed7 = yspeed7 * friction; this._x = this._x + xspeed7; this._y = this._y + yspeed7; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; xspeed8 = 0; yspeed8 = 0; butterfly8.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x8 = (flower._x - this._x) * speed_scale2; dist_y8 = (flower._y - this._y) * speed_scale2; xspeed8 = xspeed8 + dist_x8; yspeed8 = yspeed8 + dist_y8; xspeed8 = xspeed8 * friction2; yspeed8 = yspeed8 * friction2; this._x = this._x + xspeed8; this._y = this._y + yspeed8; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web2)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; xspeed9 = 0; yspeed9 = 0; butterfly9.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x9 = (flower._x - this._x) * speed_scale2; dist_y9 = (flower._y - this._y) * speed_scale2; xspeed9 = xspeed9 + dist_x9; yspeed9 = yspeed9 + dist_y9; xspeed9 = xspeed9 * friction2; yspeed9 = yspeed9 * friction2; this._x = this._x + xspeed9; this._y = this._y + yspeed9; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web2)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; xspeed10 = 0; yspeed10 = 0; butterfly10.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x10 = (flower._x - this._x) * speed_scale2; dist_y10 = (flower._y - this._y) * speed_scale2; xspeed10 = xspeed10 + dist_x10; yspeed10 = yspeed10 + dist_y10; xspeed10 = xspeed10 * friction2; yspeed10 = yspeed10 * friction2; this._x = this._x + xspeed10; this._y = this._y + yspeed10; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web2)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; web.onEnterFrame = function () { if (timeout == 60) { if (this.hitTests(flower)) { gotoAndStop ("gameoverweb"); } if (butarray.length == 0) { nextFrame(); } } }; web2.onEnterFrame = function () { if (timeout == 60) { if (this.hitTests(flower)) { gotoAndStop ("gameoverweb"); } } };
Instance of Symbol 104 MovieClip "butterfly10" in Frame 13
onClipEvent (load) { _xscale = 1; _yscale = 1; this._visible = true; this._x = 170; this._y = 360; }
Frame 14
stop(); friction = 0.905; friction2 = 0.87; speed_scale = 0.025; speed_scale2 = 0.035; timeout = 0; scale = 1; butarray.push(butterfly); butterfly._x = 85; butterfly._y = 35; butterfly._xscale = 1; butterfly._yscale = 1; butterfly._visible = true; butarray.push(butterfly1); butterfly1._x = 85; butterfly1._y = 360; butterfly1._xscale = 1; butterfly1._yscale = 1; butterfly1._visible = true; butarray.push(butterfly2); butterfly2._x = 435; butterfly2._y = 35; butterfly2._xscale = 1; butterfly2._yscale = 1; butterfly2._visible = true; butarray.push(butterfly3); butterfly3._x = 435; butterfly3._y = 360; butterfly3._xscale = 1; butterfly3._yscale = 1; butterfly3._visible = true; butarray.push(butterfly4); butterfly4._x = 265; butterfly4._y = 35; butterfly4._xscale = 1; butterfly4._yscale = 1; butterfly4._visible = true; butarray.push(butterfly5); butterfly5._x = 265; butterfly5._y = 360; butterfly5._xscale = 1; butterfly5._yscale = 1; butterfly5._visible = true; butarray.push(butterfly6); butterfly6._x = 15; butterfly6._y = 190; butterfly6._xscale = 1; butterfly6._yscale = 1; butterfly6._visible = true; butarray.push(butterfly7); butterfly7._x = 15; butterfly7._y = 190; butterfly7._xscale = 1; butterfly7._yscale = 1; butterfly7._visible = true; butarray.push(butterfly8); butterfly8._x = 515; butterfly8._y = 260; butterfly8._xscale = 1; butterfly8._yscale = 1; butterfly8._visible = true; butarray.push(butterfly9); butterfly9._x = 15; butterfly9._y = 105; butterfly9._xscale = 1; butterfly9._yscale = 1; butterfly9._visible = true; butarray.push(butterfly10); butterfly10._x = 170; butterfly10._y = 360; butterfly10._xscale = 1; butterfly10._yscale = 1; butterfly10._visible = true; butarray.push(butterfly11); butterfly11._x = 360; butterfly11._y = 35; butterfly11._xscale = 1; butterfly11._yscale = 1; butterfly11._visible = true; flower.onEnterFrame = function () { scoretext.text = "score: " + score; this._x = _root._xmouse; this._y = _root._ymouse; butterfly._xscale = scale; butterfly1._xscale = scale; butterfly2._xscale = scale; butterfly3._xscale = scale; butterfly4._xscale = scale; butterfly5._xscale = scale; butterfly6._xscale = scale; butterfly7._xscale = scale; butterfly8._xscale = scale; butterfly9._xscale = scale; butterfly10._xscale = scale; butterfly11._xscale = scale; butterfly._yscale = scale; butterfly1._yscale = scale; butterfly2._yscale = scale; butterfly3._yscale = scale; butterfly4._yscale = scale; butterfly5._yscale = scale; butterfly6._yscale = scale; butterfly7._yscale = scale; butterfly8._yscale = scale; butterfly9._yscale = scale; butterfly10._yscale = scale; butterfly11._yscale = scale; web._xscale = scale; web._yscale = scale; web2._xscale = scale; web2._yscale = scale; if (scale < 100) { scale = scale + 5; } timeout++; if (timeout > 60) { timeout = 60; } }; xspeed = 0; yspeed = 0; butterfly.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x = (flower._x - this._x) * speed_scale; dist_y = (flower._y - this._y) * speed_scale; xspeed = xspeed + dist_x; yspeed = yspeed + dist_y; xspeed = xspeed * friction; yspeed = yspeed * friction; this._x = this._x + xspeed; this._y = this._y + yspeed; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; xspeed1 = 0; yspeed1 = 0; butterfly1.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x1 = (flower._x - this._x) * speed_scale; dist_y1 = (flower._y - this._y) * speed_scale; xspeed1 = xspeed1 + dist_x1; yspeed1 = yspeed1 + dist_y1; xspeed1 = xspeed1 * friction; yspeed1 = yspeed1 * friction; this._x = this._x + xspeed1; this._y = this._y + yspeed1; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; xspeed2 = 0; yspeed2 = 0; butterfly2.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x2 = (flower._x - this._x) * speed_scale; dist_y2 = (flower._y - this._y) * speed_scale; xspeed2 = xspeed2 + dist_x2; yspeed2 = yspeed2 + dist_y2; xspeed2 = xspeed2 * friction; yspeed2 = yspeed2 * friction; this._x = this._x + xspeed2; this._y = this._y + yspeed2; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; xspeed3 = 0; yspeed3 = 0; butterfly3.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x3 = (flower._x - this._x) * speed_scale; dist_y3 = (flower._y - this._y) * speed_scale; xspeed3 = xspeed3 + dist_x3; yspeed3 = yspeed3 + dist_y3; xspeed3 = xspeed3 * friction; yspeed3 = yspeed3 * friction; this._x = this._x + xspeed3; this._y = this._y + yspeed3; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; xspeed4 = 0; yspeed4 = 0; butterfly4.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x4 = (flower._x - this._x) * speed_scale; dist_y4 = (flower._y - this._y) * speed_scale; xspeed4 = xspeed4 + dist_x4; yspeed4 = yspeed4 + dist_y4; xspeed4 = xspeed4 * friction; yspeed4 = yspeed4 * friction; this._x = this._x + xspeed4; this._y = this._y + yspeed4; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; xspeed5 = 0; yspeed5 = 0; butterfly5.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x5 = (flower._x - this._x) * speed_scale; dist_y5 = (flower._y - this._y) * speed_scale; xspeed5 = xspeed5 + dist_x5; yspeed5 = yspeed5 + dist_y5; xspeed5 = xspeed5 * friction; yspeed5 = yspeed5 * friction; this._x = this._x + xspeed5; this._y = this._y + yspeed5; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; xspeed6 = 0; yspeed6 = 0; butterfly6.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x6 = (flower._x - this._x) * speed_scale; dist_y6 = (flower._y - this._y) * speed_scale; xspeed6 = xspeed6 + dist_x6; yspeed6 = yspeed6 + dist_y6; xspeed6 = xspeed6 * friction; yspeed6 = yspeed6 * friction; this._x = this._x + xspeed6; this._y = this._y + yspeed6; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; xspeed7 = 0; yspeed7 = 0; butterfly7.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x7 = (flower._x - this._x) * speed_scale; dist_y7 = (flower._y - this._y) * speed_scale; xspeed7 = xspeed7 + dist_x7; yspeed7 = yspeed7 + dist_y7; xspeed7 = xspeed7 * friction; yspeed7 = yspeed7 * friction; this._x = this._x + xspeed7; this._y = this._y + yspeed7; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; xspeed8 = 0; yspeed8 = 0; butterfly8.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x8 = (flower._x - this._x) * speed_scale2; dist_y8 = (flower._y - this._y) * speed_scale2; xspeed8 = xspeed8 + dist_x8; yspeed8 = yspeed8 + dist_y8; xspeed8 = xspeed8 * friction2; yspeed8 = yspeed8 * friction2; this._x = this._x + xspeed8; this._y = this._y + yspeed8; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web2)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; xspeed9 = 0; yspeed9 = 0; butterfly9.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x9 = (flower._x - this._x) * speed_scale2; dist_y9 = (flower._y - this._y) * speed_scale2; xspeed9 = xspeed9 + dist_x9; yspeed9 = yspeed9 + dist_y9; xspeed9 = xspeed9 * friction2; yspeed9 = yspeed9 * friction2; this._x = this._x + xspeed9; this._y = this._y + yspeed9; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web2)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; xspeed10 = 0; yspeed10 = 0; butterfly10.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x10 = (flower._x - this._x) * speed_scale2; dist_y10 = (flower._y - this._y) * speed_scale2; xspeed10 = xspeed10 + dist_x10; yspeed10 = yspeed10 + dist_y10; xspeed10 = xspeed10 * friction2; yspeed10 = yspeed10 * friction2; this._x = this._x + xspeed10; this._y = this._y + yspeed10; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web2)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; xspeed11 = 0; yspeed11 = 0; butterfly11.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x11 = (flower._x - this._x) * speed_scale2; dist_y11 = (flower._y - this._y) * speed_scale2; xspeed11 = xspeed11 + dist_x11; yspeed11 = yspeed11 + dist_y11; xspeed11 = xspeed11 * friction2; yspeed11 = yspeed11 * friction2; this._x = this._x + xspeed11; this._y = this._y + yspeed11; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web2)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; web.onEnterFrame = function () { if (timeout == 60) { if (this.hitTests(flower)) { gotoAndStop ("gameoverweb"); } if (butarray.length == 0) { nextFrame(); } } }; web2.onEnterFrame = function () { if (timeout == 60) { if (this.hitTests(flower)) { gotoAndStop ("gameoverweb"); } } };
Instance of Symbol 104 MovieClip "butterfly11" in Frame 14
onClipEvent (load) { _xscale = 1; _yscale = 1; this._visible = true; this._x = 360; this._y = 35; }
Frame 15
stop(); friction = 0.905; friction2 = 0.87; speed_scale = 0.025; speed_scale2 = 0.035; timeout = 0; scale = 1; butarray.push(butterfly); butterfly._x = 85; butterfly._y = 35; butterfly._xscale = 1; butterfly._yscale = 1; butterfly._visible = true; butarray.push(butterfly1); butterfly1._x = 85; butterfly1._y = 360; butterfly1._xscale = 1; butterfly1._yscale = 1; butterfly1._visible = true; butarray.push(butterfly2); butterfly2._x = 435; butterfly2._y = 35; butterfly2._xscale = 1; butterfly2._yscale = 1; butterfly2._visible = true; butarray.push(butterfly3); butterfly3._x = 435; butterfly3._y = 360; butterfly3._xscale = 1; butterfly3._yscale = 1; butterfly3._visible = true; butarray.push(butterfly4); butterfly4._x = 265; butterfly4._y = 35; butterfly4._xscale = 1; butterfly4._yscale = 1; butterfly4._visible = true; butarray.push(butterfly5); butterfly5._x = 265; butterfly5._y = 360; butterfly5._xscale = 1; butterfly5._yscale = 1; butterfly5._visible = true; butarray.push(butterfly6); butterfly6._x = 15; butterfly6._y = 190; butterfly6._xscale = 1; butterfly6._yscale = 1; butterfly6._visible = true; butarray.push(butterfly7); butterfly7._x = 15; butterfly7._y = 190; butterfly7._xscale = 1; butterfly7._yscale = 1; butterfly7._visible = true; butarray.push(butterfly8); butterfly8._x = 515; butterfly8._y = 260; butterfly8._xscale = 1; butterfly8._yscale = 1; butterfly8._visible = true; butarray.push(butterfly9); butterfly9._x = 15; butterfly9._y = 105; butterfly9._xscale = 1; butterfly9._yscale = 1; butterfly9._visible = true; butarray.push(butterfly10); butterfly10._x = 170; butterfly10._y = 360; butterfly10._xscale = 1; butterfly10._yscale = 1; butterfly10._visible = true; butarray.push(butterfly11); butterfly11._x = 360; butterfly11._y = 35; butterfly11._xscale = 1; butterfly11._yscale = 1; butterfly11._visible = true; butarray.push(butterfly12); butterfly12._x = 170; butterfly12._y = 35; butterfly12._xscale = 1; butterfly12._yscale = 1; butterfly12._visible = true; flower.onEnterFrame = function () { scoretext.text = "score: " + score; this._x = _root._xmouse; this._y = _root._ymouse; butterfly._xscale = scale; butterfly1._xscale = scale; butterfly2._xscale = scale; butterfly3._xscale = scale; butterfly4._xscale = scale; butterfly5._xscale = scale; butterfly6._xscale = scale; butterfly7._xscale = scale; butterfly8._xscale = scale; butterfly9._xscale = scale; butterfly10._xscale = scale; butterfly11._xscale = scale; butterfly12._xscale = scale; butterfly._yscale = scale; butterfly1._yscale = scale; butterfly2._yscale = scale; butterfly3._yscale = scale; butterfly4._yscale = scale; butterfly5._yscale = scale; butterfly6._yscale = scale; butterfly7._yscale = scale; butterfly8._yscale = scale; butterfly9._yscale = scale; butterfly10._yscale = scale; butterfly11._yscale = scale; butterfly12._yscale = scale; web._xscale = scale; web._yscale = scale; web2._xscale = scale; web2._yscale = scale; if (scale < 100) { scale = scale + 5; } timeout++; if (timeout > 60) { timeout = 60; } }; xspeed = 0; yspeed = 0; butterfly.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x = (flower._x - this._x) * speed_scale; dist_y = (flower._y - this._y) * speed_scale; xspeed = xspeed + dist_x; yspeed = yspeed + dist_y; xspeed = xspeed * friction; yspeed = yspeed * friction; this._x = this._x + xspeed; this._y = this._y + yspeed; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; xspeed1 = 0; yspeed1 = 0; butterfly1.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x1 = (flower._x - this._x) * speed_scale; dist_y1 = (flower._y - this._y) * speed_scale; xspeed1 = xspeed1 + dist_x1; yspeed1 = yspeed1 + dist_y1; xspeed1 = xspeed1 * friction; yspeed1 = yspeed1 * friction; this._x = this._x + xspeed1; this._y = this._y + yspeed1; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; xspeed2 = 0; yspeed2 = 0; butterfly2.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x2 = (flower._x - this._x) * speed_scale; dist_y2 = (flower._y - this._y) * speed_scale; xspeed2 = xspeed2 + dist_x2; yspeed2 = yspeed2 + dist_y2; xspeed2 = xspeed2 * friction; yspeed2 = yspeed2 * friction; this._x = this._x + xspeed2; this._y = this._y + yspeed2; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; xspeed3 = 0; yspeed3 = 0; butterfly3.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x3 = (flower._x - this._x) * speed_scale; dist_y3 = (flower._y - this._y) * speed_scale; xspeed3 = xspeed3 + dist_x3; yspeed3 = yspeed3 + dist_y3; xspeed3 = xspeed3 * friction; yspeed3 = yspeed3 * friction; this._x = this._x + xspeed3; this._y = this._y + yspeed3; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; xspeed4 = 0; yspeed4 = 0; butterfly4.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x4 = (flower._x - this._x) * speed_scale; dist_y4 = (flower._y - this._y) * speed_scale; xspeed4 = xspeed4 + dist_x4; yspeed4 = yspeed4 + dist_y4; xspeed4 = xspeed4 * friction; yspeed4 = yspeed4 * friction; this._x = this._x + xspeed4; this._y = this._y + yspeed4; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; xspeed5 = 0; yspeed5 = 0; butterfly5.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x5 = (flower._x - this._x) * speed_scale; dist_y5 = (flower._y - this._y) * speed_scale; xspeed5 = xspeed5 + dist_x5; yspeed5 = yspeed5 + dist_y5; xspeed5 = xspeed5 * friction; yspeed5 = yspeed5 * friction; this._x = this._x + xspeed5; this._y = this._y + yspeed5; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; xspeed6 = 0; yspeed6 = 0; butterfly6.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x6 = (flower._x - this._x) * speed_scale; dist_y6 = (flower._y - this._y) * speed_scale; xspeed6 = xspeed6 + dist_x6; yspeed6 = yspeed6 + dist_y6; xspeed6 = xspeed6 * friction; yspeed6 = yspeed6 * friction; this._x = this._x + xspeed6; this._y = this._y + yspeed6; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; xspeed7 = 0; yspeed7 = 0; butterfly7.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x7 = (flower._x - this._x) * speed_scale; dist_y7 = (flower._y - this._y) * speed_scale; xspeed7 = xspeed7 + dist_x7; yspeed7 = yspeed7 + dist_y7; xspeed7 = xspeed7 * friction; yspeed7 = yspeed7 * friction; this._x = this._x + xspeed7; this._y = this._y + yspeed7; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; xspeed8 = 0; yspeed8 = 0; butterfly8.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x8 = (flower._x - this._x) * speed_scale2; dist_y8 = (flower._y - this._y) * speed_scale2; xspeed8 = xspeed8 + dist_x8; yspeed8 = yspeed8 + dist_y8; xspeed8 = xspeed8 * friction2; yspeed8 = yspeed8 * friction2; this._x = this._x + xspeed8; this._y = this._y + yspeed8; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web2)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; xspeed9 = 0; yspeed9 = 0; butterfly9.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x9 = (flower._x - this._x) * speed_scale2; dist_y9 = (flower._y - this._y) * speed_scale2; xspeed9 = xspeed9 + dist_x9; yspeed9 = yspeed9 + dist_y9; xspeed9 = xspeed9 * friction2; yspeed9 = yspeed9 * friction2; this._x = this._x + xspeed9; this._y = this._y + yspeed9; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web2)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; xspeed10 = 0; yspeed10 = 0; butterfly10.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x10 = (flower._x - this._x) * speed_scale2; dist_y10 = (flower._y - this._y) * speed_scale2; xspeed10 = xspeed10 + dist_x10; yspeed10 = yspeed10 + dist_y10; xspeed10 = xspeed10 * friction2; yspeed10 = yspeed10 * friction2; this._x = this._x + xspeed10; this._y = this._y + yspeed10; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web2)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; xspeed11 = 0; yspeed11 = 0; butterfly11.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x11 = (flower._x - this._x) * speed_scale2; dist_y11 = (flower._y - this._y) * speed_scale2; xspeed11 = xspeed11 + dist_x11; yspeed11 = yspeed11 + dist_y11; xspeed11 = xspeed11 * friction2; yspeed11 = yspeed11 * friction2; this._x = this._x + xspeed11; this._y = this._y + yspeed11; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web2)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; xspeed12 = 0; yspeed12 = 0; butterfly12.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x12 = (flower._x - this._x) * speed_scale2; dist_y12 = (flower._y - this._y) * speed_scale2; xspeed12 = xspeed12 + dist_x12; yspeed12 = yspeed12 + dist_y12; xspeed12 = xspeed12 * friction2; yspeed12 = yspeed12 * friction2; this._x = this._x + xspeed12; this._y = this._y + yspeed12; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web2)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; web.onEnterFrame = function () { if (timeout == 60) { if (this.hitTests(flower)) { gotoAndStop ("gameoverweb"); } if (butarray.length == 0) { nextFrame(); } } }; web2.onEnterFrame = function () { if (timeout == 60) { if (this.hitTests(flower)) { gotoAndStop ("gameoverweb"); } } };
Instance of Symbol 104 MovieClip "butterfly12" in Frame 15
onClipEvent (load) { _xscale = 1; _yscale = 1; this._visible = true; this._x = 170; this._y = 35; }
Frame 16
stop(); friction = 0.905; friction2 = 0.87; speed_scale = 0.025; speed_scale2 = 0.035; timeout = 0; scale = 1; butarray.push(butterfly); butterfly._x = 85; butterfly._y = 35; butterfly._xscale = 1; butterfly._yscale = 1; butterfly._visible = true; butarray.push(butterfly1); butterfly1._x = 85; butterfly1._y = 360; butterfly1._xscale = 1; butterfly1._yscale = 1; butterfly1._visible = true; butarray.push(butterfly2); butterfly2._x = 435; butterfly2._y = 35; butterfly2._xscale = 1; butterfly2._yscale = 1; butterfly2._visible = true; butarray.push(butterfly3); butterfly3._x = 435; butterfly3._y = 360; butterfly3._xscale = 1; butterfly3._yscale = 1; butterfly3._visible = true; butarray.push(butterfly4); butterfly4._x = 265; butterfly4._y = 35; butterfly4._xscale = 1; butterfly4._yscale = 1; butterfly4._visible = true; butarray.push(butterfly5); butterfly5._x = 265; butterfly5._y = 360; butterfly5._xscale = 1; butterfly5._yscale = 1; butterfly5._visible = true; butarray.push(butterfly6); butterfly6._x = 15; butterfly6._y = 190; butterfly6._xscale = 1; butterfly6._yscale = 1; butterfly6._visible = true; butarray.push(butterfly7); butterfly7._x = 15; butterfly7._y = 190; butterfly7._xscale = 1; butterfly7._yscale = 1; butterfly7._visible = true; butarray.push(butterfly8); butterfly8._x = 515; butterfly8._y = 260; butterfly8._xscale = 1; butterfly8._yscale = 1; butterfly8._visible = true; butarray.push(butterfly9); butterfly9._x = 15; butterfly9._y = 105; butterfly9._xscale = 1; butterfly9._yscale = 1; butterfly9._visible = true; butarray.push(butterfly10); butterfly10._x = 170; butterfly10._y = 360; butterfly10._xscale = 1; butterfly10._yscale = 1; butterfly10._visible = true; butarray.push(butterfly11); butterfly11._x = 360; butterfly11._y = 35; butterfly11._xscale = 1; butterfly11._yscale = 1; butterfly11._visible = true; butarray.push(butterfly12); butterfly12._x = 170; butterfly12._y = 35; butterfly12._xscale = 1; butterfly12._yscale = 1; butterfly12._visible = true; butarray.push(butterfly13); butterfly13._x = 360; butterfly13._y = 360; butterfly13._xscale = 1; butterfly13._yscale = 1; butterfly13._visible = true; flower.onEnterFrame = function () { scoretext.text = "score: " + score; this._x = _root._xmouse; this._y = _root._ymouse; butterfly._xscale = scale; butterfly1._xscale = scale; butterfly2._xscale = scale; butterfly3._xscale = scale; butterfly4._xscale = scale; butterfly5._xscale = scale; butterfly6._xscale = scale; butterfly7._xscale = scale; butterfly8._xscale = scale; butterfly9._xscale = scale; butterfly10._xscale = scale; butterfly11._xscale = scale; butterfly12._xscale = scale; butterfly13._xscale = scale; butterfly._yscale = scale; butterfly1._yscale = scale; butterfly2._yscale = scale; butterfly3._yscale = scale; butterfly4._yscale = scale; butterfly5._yscale = scale; butterfly6._yscale = scale; butterfly7._yscale = scale; butterfly8._yscale = scale; butterfly9._yscale = scale; butterfly10._yscale = scale; butterfly11._yscale = scale; butterfly12._yscale = scale; butterfly13._yscale = scale; web._xscale = scale; web._yscale = scale; web2._xscale = scale; web2._yscale = scale; if (scale < 100) { scale = scale + 5; } timeout++; if (timeout > 60) { timeout = 60; } }; xspeed = 0; yspeed = 0; butterfly.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x = (flower._x - this._x) * speed_scale; dist_y = (flower._y - this._y) * speed_scale; xspeed = xspeed + dist_x; yspeed = yspeed + dist_y; xspeed = xspeed * friction; yspeed = yspeed * friction; this._x = this._x + xspeed; this._y = this._y + yspeed; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; xspeed1 = 0; yspeed1 = 0; butterfly1.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x1 = (flower._x - this._x) * speed_scale; dist_y1 = (flower._y - this._y) * speed_scale; xspeed1 = xspeed1 + dist_x1; yspeed1 = yspeed1 + dist_y1; xspeed1 = xspeed1 * friction; yspeed1 = yspeed1 * friction; this._x = this._x + xspeed1; this._y = this._y + yspeed1; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; xspeed2 = 0; yspeed2 = 0; butterfly2.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x2 = (flower._x - this._x) * speed_scale; dist_y2 = (flower._y - this._y) * speed_scale; xspeed2 = xspeed2 + dist_x2; yspeed2 = yspeed2 + dist_y2; xspeed2 = xspeed2 * friction; yspeed2 = yspeed2 * friction; this._x = this._x + xspeed2; this._y = this._y + yspeed2; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; xspeed3 = 0; yspeed3 = 0; butterfly3.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x3 = (flower._x - this._x) * speed_scale; dist_y3 = (flower._y - this._y) * speed_scale; xspeed3 = xspeed3 + dist_x3; yspeed3 = yspeed3 + dist_y3; xspeed3 = xspeed3 * friction; yspeed3 = yspeed3 * friction; this._x = this._x + xspeed3; this._y = this._y + yspeed3; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; xspeed4 = 0; yspeed4 = 0; butterfly4.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x4 = (flower._x - this._x) * speed_scale; dist_y4 = (flower._y - this._y) * speed_scale; xspeed4 = xspeed4 + dist_x4; yspeed4 = yspeed4 + dist_y4; xspeed4 = xspeed4 * friction; yspeed4 = yspeed4 * friction; this._x = this._x + xspeed4; this._y = this._y + yspeed4; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; xspeed5 = 0; yspeed5 = 0; butterfly5.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x5 = (flower._x - this._x) * speed_scale; dist_y5 = (flower._y - this._y) * speed_scale; xspeed5 = xspeed5 + dist_x5; yspeed5 = yspeed5 + dist_y5; xspeed5 = xspeed5 * friction; yspeed5 = yspeed5 * friction; this._x = this._x + xspeed5; this._y = this._y + yspeed5; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; xspeed6 = 0; yspeed6 = 0; butterfly6.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x6 = (flower._x - this._x) * speed_scale; dist_y6 = (flower._y - this._y) * speed_scale; xspeed6 = xspeed6 + dist_x6; yspeed6 = yspeed6 + dist_y6; xspeed6 = xspeed6 * friction; yspeed6 = yspeed6 * friction; this._x = this._x + xspeed6; this._y = this._y + yspeed6; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; xspeed7 = 0; yspeed7 = 0; butterfly7.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x7 = (flower._x - this._x) * speed_scale; dist_y7 = (flower._y - this._y) * speed_scale; xspeed7 = xspeed7 + dist_x7; yspeed7 = yspeed7 + dist_y7; xspeed7 = xspeed7 * friction; yspeed7 = yspeed7 * friction; this._x = this._x + xspeed7; this._y = this._y + yspeed7; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; xspeed8 = 0; yspeed8 = 0; butterfly8.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x8 = (flower._x - this._x) * speed_scale2; dist_y8 = (flower._y - this._y) * speed_scale2; xspeed8 = xspeed8 + dist_x8; yspeed8 = yspeed8 + dist_y8; xspeed8 = xspeed8 * friction2; yspeed8 = yspeed8 * friction2; this._x = this._x + xspeed8; this._y = this._y + yspeed8; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web2)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; xspeed9 = 0; yspeed9 = 0; butterfly9.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x9 = (flower._x - this._x) * speed_scale2; dist_y9 = (flower._y - this._y) * speed_scale2; xspeed9 = xspeed9 + dist_x9; yspeed9 = yspeed9 + dist_y9; xspeed9 = xspeed9 * friction2; yspeed9 = yspeed9 * friction2; this._x = this._x + xspeed9; this._y = this._y + yspeed9; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web2)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; xspeed10 = 0; yspeed10 = 0; butterfly10.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x10 = (flower._x - this._x) * speed_scale2; dist_y10 = (flower._y - this._y) * speed_scale2; xspeed10 = xspeed10 + dist_x10; yspeed10 = yspeed10 + dist_y10; xspeed10 = xspeed10 * friction2; yspeed10 = yspeed10 * friction2; this._x = this._x + xspeed10; this._y = this._y + yspeed10; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web2)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; xspeed11 = 0; yspeed11 = 0; butterfly11.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x11 = (flower._x - this._x) * speed_scale2; dist_y11 = (flower._y - this._y) * speed_scale2; xspeed11 = xspeed11 + dist_x11; yspeed11 = yspeed11 + dist_y11; xspeed11 = xspeed11 * friction2; yspeed11 = yspeed11 * friction2; this._x = this._x + xspeed11; this._y = this._y + yspeed11; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web2)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; xspeed12 = 0; yspeed12 = 0; butterfly12.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x12 = (flower._x - this._x) * speed_scale2; dist_y12 = (flower._y - this._y) * speed_scale2; xspeed12 = xspeed12 + dist_x12; yspeed12 = yspeed12 + dist_y12; xspeed12 = xspeed12 * friction2; yspeed12 = yspeed12 * friction2; this._x = this._x + xspeed12; this._y = this._y + yspeed12; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web2)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; xspeed13 = 0; yspeed13 = 0; butterfly13.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x13 = (flower._x - this._x) * speed_scale2; dist_y13 = (flower._y - this._y) * speed_scale2; xspeed13 = xspeed13 + dist_x13; yspeed13 = yspeed13 + dist_y13; xspeed13 = xspeed13 * friction2; yspeed13 = yspeed13 * friction2; this._x = this._x + xspeed13; this._y = this._y + yspeed13; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web2)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; web.onEnterFrame = function () { if (timeout == 60) { if (this.hitTests(flower)) { gotoAndStop ("gameoverweb"); } if (butarray.length == 0) { nextFrame(); } } }; web2.onEnterFrame = function () { if (timeout == 60) { if (this.hitTests(flower)) { gotoAndStop ("gameoverweb"); } } };
Instance of Symbol 104 MovieClip "butterfly13" in Frame 16
onClipEvent (load) { _xscale = 1; _yscale = 1; this._visible = true; this._x = 360; this._y = 360; }
Frame 17
stop(); friction = 0.905; friction2 = 0.87; speed_scale = 0.025; speed_scale2 = 0.035; speed_scale3 = 0.03; timeout = 0; scale = 1; butarray.push(butterfly); butterfly._x = 85; butterfly._y = 35; butterfly._xscale = 1; butterfly._yscale = 1; butterfly._visible = true; butarray.push(butterfly1); butterfly1._x = 85; butterfly1._y = 360; butterfly1._xscale = 1; butterfly1._yscale = 1; butterfly1._visible = true; butarray.push(butterfly2); butterfly2._x = 435; butterfly2._y = 35; butterfly2._xscale = 1; butterfly2._yscale = 1; butterfly2._visible = true; butarray.push(butterfly3); butterfly3._x = 435; butterfly3._y = 360; butterfly3._xscale = 1; butterfly3._yscale = 1; butterfly3._visible = true; butarray.push(butterfly4); butterfly4._x = 265; butterfly4._y = 35; butterfly4._xscale = 1; butterfly4._yscale = 1; butterfly4._visible = true; butarray.push(butterfly5); butterfly5._x = 265; butterfly5._y = 360; butterfly5._xscale = 1; butterfly5._yscale = 1; butterfly5._visible = true; butarray.push(butterfly6); butterfly6._x = 15; butterfly6._y = 190; butterfly6._xscale = 1; butterfly6._yscale = 1; butterfly6._visible = true; butarray.push(butterfly7); butterfly7._x = 515; butterfly7._y = 190; butterfly7._xscale = 1; butterfly7._yscale = 1; butterfly7._visible = true; butarray.push(butterfly8); butterfly8._x = 515; butterfly8._y = 260; butterfly8._xscale = 1; butterfly8._yscale = 1; butterfly8._visible = true; butarray.push(butterfly9); butterfly9._x = 15; butterfly9._y = 105; butterfly9._xscale = 1; butterfly9._yscale = 1; butterfly9._visible = true; butarray.push(butterfly10); butterfly10._x = 170; butterfly10._y = 360; butterfly10._xscale = 1; butterfly10._yscale = 1; butterfly10._visible = true; butarray.push(butterfly11); butterfly11._x = 360; butterfly11._y = 35; butterfly11._xscale = 1; butterfly11._yscale = 1; butterfly11._visible = true; butarray.push(butterfly12); butterfly12._x = 170; butterfly12._y = 35; butterfly12._xscale = 1; butterfly12._yscale = 1; butterfly12._visible = true; butarray.push(butterfly13); butterfly13._x = 360; butterfly13._y = 360; butterfly13._xscale = 1; butterfly13._yscale = 1; butterfly13._visible = true; butarray.push(butterfly14); butterfly14._x = 515; butterfly14._y = 125; butterfly14._xscale = 1; butterfly14._yscale = 1; butterfly14._visible = true; flower.onEnterFrame = function () { scoretext.text = "score: " + score; this._x = _root._xmouse; this._y = _root._ymouse; butterfly._xscale = scale; butterfly1._xscale = scale; butterfly2._xscale = scale; butterfly3._xscale = scale; butterfly4._xscale = scale; butterfly5._xscale = scale; butterfly6._xscale = scale; butterfly7._xscale = scale; butterfly8._xscale = scale; butterfly9._xscale = scale; butterfly10._xscale = scale; butterfly11._xscale = scale; butterfly12._xscale = scale; butterfly13._xscale = scale; butterfly14._xscale = scale; butterfly._yscale = scale; butterfly1._yscale = scale; butterfly2._yscale = scale; butterfly3._yscale = scale; butterfly4._yscale = scale; butterfly5._yscale = scale; butterfly6._yscale = scale; butterfly7._yscale = scale; butterfly8._yscale = scale; butterfly9._yscale = scale; butterfly10._yscale = scale; butterfly11._yscale = scale; butterfly12._yscale = scale; butterfly13._yscale = scale; butterfly14._yscale = scale; web._xscale = scale; web._yscale = scale; web2._xscale = scale; web2._yscale = scale; if (scale < 100) { scale = scale + 5; } timeout++; if (timeout > 60) { timeout = 60; } }; xspeed = 0; yspeed = 0; butterfly.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x = (flower._x - this._x) * speed_scale; dist_y = (flower._y - this._y) * speed_scale; xspeed = xspeed + dist_x; yspeed = yspeed + dist_y; xspeed = xspeed * friction; yspeed = yspeed * friction; this._x = this._x + xspeed; this._y = this._y + yspeed; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; xspeed1 = 0; yspeed1 = 0; butterfly1.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x1 = (flower._x - this._x) * speed_scale; dist_y1 = (flower._y - this._y) * speed_scale; xspeed1 = xspeed1 + dist_x1; yspeed1 = yspeed1 + dist_y1; xspeed1 = xspeed1 * friction; yspeed1 = yspeed1 * friction; this._x = this._x + xspeed1; this._y = this._y + yspeed1; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; xspeed2 = 0; yspeed2 = 0; butterfly2.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x2 = (flower._x - this._x) * speed_scale; dist_y2 = (flower._y - this._y) * speed_scale; xspeed2 = xspeed2 + dist_x2; yspeed2 = yspeed2 + dist_y2; xspeed2 = xspeed2 * friction; yspeed2 = yspeed2 * friction; this._x = this._x + xspeed2; this._y = this._y + yspeed2; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; xspeed3 = 0; yspeed3 = 0; butterfly3.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x3 = (flower._x - this._x) * speed_scale; dist_y3 = (flower._y - this._y) * speed_scale; xspeed3 = xspeed3 + dist_x3; yspeed3 = yspeed3 + dist_y3; xspeed3 = xspeed3 * friction; yspeed3 = yspeed3 * friction; this._x = this._x + xspeed3; this._y = this._y + yspeed3; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; xspeed4 = 0; yspeed4 = 0; butterfly4.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x4 = (flower._x - this._x) * speed_scale; dist_y4 = (flower._y - this._y) * speed_scale; xspeed4 = xspeed4 + dist_x4; yspeed4 = yspeed4 + dist_y4; xspeed4 = xspeed4 * friction; yspeed4 = yspeed4 * friction; this._x = this._x + xspeed4; this._y = this._y + yspeed4; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; xspeed5 = 0; yspeed5 = 0; butterfly5.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x5 = (flower._x - this._x) * speed_scale; dist_y5 = (flower._y - this._y) * speed_scale; xspeed5 = xspeed5 + dist_x5; yspeed5 = yspeed5 + dist_y5; xspeed5 = xspeed5 * friction; yspeed5 = yspeed5 * friction; this._x = this._x + xspeed5; this._y = this._y + yspeed5; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; xspeed6 = 0; yspeed6 = 0; butterfly6.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x6 = (flower._x - this._x) * speed_scale; dist_y6 = (flower._y - this._y) * speed_scale; xspeed6 = xspeed6 + dist_x6; yspeed6 = yspeed6 + dist_y6; xspeed6 = xspeed6 * friction; yspeed6 = yspeed6 * friction; this._x = this._x + xspeed6; this._y = this._y + yspeed6; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; xspeed7 = 0; yspeed7 = 0; butterfly7.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x7 = (flower._x - this._x) * speed_scale; dist_y7 = (flower._y - this._y) * speed_scale; xspeed7 = xspeed7 + dist_x7; yspeed7 = yspeed7 + dist_y7; xspeed7 = xspeed7 * friction; yspeed7 = yspeed7 * friction; this._x = this._x + xspeed7; this._y = this._y + yspeed7; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; xspeed8 = 0; yspeed8 = 0; butterfly8.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x8 = (flower._x - this._x) * speed_scale2; dist_y8 = (flower._y - this._y) * speed_scale2; xspeed8 = xspeed8 + dist_x8; yspeed8 = yspeed8 + dist_y8; xspeed8 = xspeed8 * friction2; yspeed8 = yspeed8 * friction2; this._x = this._x + xspeed8; this._y = this._y + yspeed8; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web2)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; xspeed9 = 0; yspeed9 = 0; butterfly9.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x9 = (flower._x - this._x) * speed_scale2; dist_y9 = (flower._y - this._y) * speed_scale2; xspeed9 = xspeed9 + dist_x9; yspeed9 = yspeed9 + dist_y9; xspeed9 = xspeed9 * friction2; yspeed9 = yspeed9 * friction2; this._x = this._x + xspeed9; this._y = this._y + yspeed9; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web2)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; xspeed10 = 0; yspeed10 = 0; butterfly10.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x10 = (flower._x - this._x) * speed_scale2; dist_y10 = (flower._y - this._y) * speed_scale2; xspeed10 = xspeed10 + dist_x10; yspeed10 = yspeed10 + dist_y10; xspeed10 = xspeed10 * friction2; yspeed10 = yspeed10 * friction2; this._x = this._x + xspeed10; this._y = this._y + yspeed10; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web2)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; xspeed11 = 0; yspeed11 = 0; butterfly11.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x11 = (flower._x - this._x) * speed_scale2; dist_y11 = (flower._y - this._y) * speed_scale2; xspeed11 = xspeed11 + dist_x11; yspeed11 = yspeed11 + dist_y11; xspeed11 = xspeed11 * friction2; yspeed11 = yspeed11 * friction2; this._x = this._x + xspeed11; this._y = this._y + yspeed11; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web2)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; xspeed12 = 0; yspeed12 = 0; butterfly12.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x12 = (flower._x - this._x) * speed_scale2; dist_y12 = (flower._y - this._y) * speed_scale2; xspeed12 = xspeed12 + dist_x12; yspeed12 = yspeed12 + dist_y12; xspeed12 = xspeed12 * friction2; yspeed12 = yspeed12 * friction2; this._x = this._x + xspeed12; this._y = this._y + yspeed12; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web2)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; xspeed13 = 0; yspeed13 = 0; butterfly13.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x13 = (flower._x - this._x) * speed_scale2; dist_y13 = (flower._y - this._y) * speed_scale2; xspeed13 = xspeed13 + dist_x13; yspeed13 = yspeed13 + dist_y13; xspeed13 = xspeed13 * friction2; yspeed13 = yspeed13 * friction2; this._x = this._x + xspeed13; this._y = this._y + yspeed13; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web2)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; xspeed14 = 0; yspeed14 = 0; butterfly14.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x14 = (flower._x - this._x) * speed_scale3; dist_y14 = (flower._y - this._y) * speed_scale3; xspeed14 = xspeed14 + dist_x14; yspeed14 = yspeed14 + dist_y14; xspeed14 = xspeed14 * friction2; yspeed14 = yspeed14 * friction2; this._x = this._x + xspeed14; this._y = this._y + yspeed14; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.spider) && (this._y > 0)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; web.onEnterFrame = function () { if (timeout == 60) { if (this.hitTests(flower)) { gotoAndStop ("gameoverweb"); } if (butarray.length == 0) { nextFrame(); } } }; web2.onEnterFrame = function () { if (timeout == 60) { if (this.hitTests(flower)) { gotoAndStop ("gameoverweb"); } } }; spider.onEnterFrame = function () { if (timeout == 60) { if (this.hitTests(flower)) { gotoAndStop ("gameoverspider"); } } };
Instance of Symbol 110 MovieClip "butterfly14" in Frame 17
onClipEvent (load) { _xscale = 1; _yscale = 1; this._visible = true; this._x = 515; this._y = 125; }
Frame 18
stop(); friction = 0.905; friction2 = 0.87; speed_scale = 0.025; speed_scale2 = 0.035; speed_scale3 = 0.03; timeout = 0; scale = 1; butarray.push(butterfly); butterfly._x = 85; butterfly._y = 35; butterfly._xscale = 1; butterfly._yscale = 1; butterfly._visible = true; butarray.push(butterfly1); butterfly1._x = 85; butterfly1._y = 360; butterfly1._xscale = 1; butterfly1._yscale = 1; butterfly1._visible = true; butarray.push(butterfly2); butterfly2._x = 435; butterfly2._y = 35; butterfly2._xscale = 1; butterfly2._yscale = 1; butterfly2._visible = true; butarray.push(butterfly3); butterfly3._x = 435; butterfly3._y = 360; butterfly3._xscale = 1; butterfly3._yscale = 1; butterfly3._visible = true; butarray.push(butterfly4); butterfly4._x = 265; butterfly4._y = 35; butterfly4._xscale = 1; butterfly4._yscale = 1; butterfly4._visible = true; butarray.push(butterfly5); butterfly5._x = 265; butterfly5._y = 360; butterfly5._xscale = 1; butterfly5._yscale = 1; butterfly5._visible = true; butarray.push(butterfly6); butterfly6._x = 15; butterfly6._y = 190; butterfly6._xscale = 1; butterfly6._yscale = 1; butterfly6._visible = true; butarray.push(butterfly7); butterfly7._x = 515; butterfly7._y = 190; butterfly7._xscale = 1; butterfly7._yscale = 1; butterfly7._visible = true; butarray.push(butterfly8); butterfly8._x = 515; butterfly8._y = 260; butterfly8._xscale = 1; butterfly8._yscale = 1; butterfly8._visible = true; butarray.push(butterfly9); butterfly9._x = 15; butterfly9._y = 105; butterfly9._xscale = 1; butterfly9._yscale = 1; butterfly9._visible = true; butarray.push(butterfly10); butterfly10._x = 170; butterfly10._y = 360; butterfly10._xscale = 1; butterfly10._yscale = 1; butterfly10._visible = true; butarray.push(butterfly11); butterfly11._x = 360; butterfly11._y = 35; butterfly11._xscale = 1; butterfly11._yscale = 1; butterfly11._visible = true; butarray.push(butterfly12); butterfly12._x = 170; butterfly12._y = 35; butterfly12._xscale = 1; butterfly12._yscale = 1; butterfly12._visible = true; butarray.push(butterfly13); butterfly13._x = 360; butterfly13._y = 360; butterfly13._xscale = 1; butterfly13._yscale = 1; butterfly13._visible = true; butarray.push(butterfly14); butterfly14._x = 515; butterfly14._y = 125; butterfly14._xscale = 1; butterfly14._yscale = 1; butterfly14._visible = true; butarray.push(butterfly15); butterfly15._x = 15; butterfly15._y = 255; butterfly15._xscale = 1; butterfly15._yscale = 1; butterfly15._visible = true; flower.onEnterFrame = function () { scoretext.text = "score: " + score; this._x = _root._xmouse; this._y = _root._ymouse; butterfly._xscale = scale; butterfly1._xscale = scale; butterfly2._xscale = scale; butterfly3._xscale = scale; butterfly4._xscale = scale; butterfly5._xscale = scale; butterfly6._xscale = scale; butterfly7._xscale = scale; butterfly8._xscale = scale; butterfly9._xscale = scale; butterfly10._xscale = scale; butterfly11._xscale = scale; butterfly12._xscale = scale; butterfly13._xscale = scale; butterfly14._xscale = scale; butterfly15._xscale = scale; butterfly._yscale = scale; butterfly1._yscale = scale; butterfly2._yscale = scale; butterfly3._yscale = scale; butterfly4._yscale = scale; butterfly5._yscale = scale; butterfly6._yscale = scale; butterfly7._yscale = scale; butterfly8._yscale = scale; butterfly9._yscale = scale; butterfly10._yscale = scale; butterfly11._yscale = scale; butterfly12._yscale = scale; butterfly13._yscale = scale; butterfly14._yscale = scale; butterfly15._yscale = scale; web._xscale = scale; web._yscale = scale; web2._xscale = scale; web2._yscale = scale; if (scale < 100) { scale = scale + 5; } timeout++; if (timeout > 60) { timeout = 60; } }; xspeed = 0; yspeed = 0; butterfly.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x = (flower._x - this._x) * speed_scale; dist_y = (flower._y - this._y) * speed_scale; xspeed = xspeed + dist_x; yspeed = yspeed + dist_y; xspeed = xspeed * friction; yspeed = yspeed * friction; this._x = this._x + xspeed; this._y = this._y + yspeed; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; xspeed1 = 0; yspeed1 = 0; butterfly1.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x1 = (flower._x - this._x) * speed_scale; dist_y1 = (flower._y - this._y) * speed_scale; xspeed1 = xspeed1 + dist_x1; yspeed1 = yspeed1 + dist_y1; xspeed1 = xspeed1 * friction; yspeed1 = yspeed1 * friction; this._x = this._x + xspeed1; this._y = this._y + yspeed1; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; xspeed2 = 0; yspeed2 = 0; butterfly2.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x2 = (flower._x - this._x) * speed_scale; dist_y2 = (flower._y - this._y) * speed_scale; xspeed2 = xspeed2 + dist_x2; yspeed2 = yspeed2 + dist_y2; xspeed2 = xspeed2 * friction; yspeed2 = yspeed2 * friction; this._x = this._x + xspeed2; this._y = this._y + yspeed2; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; xspeed3 = 0; yspeed3 = 0; butterfly3.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x3 = (flower._x - this._x) * speed_scale; dist_y3 = (flower._y - this._y) * speed_scale; xspeed3 = xspeed3 + dist_x3; yspeed3 = yspeed3 + dist_y3; xspeed3 = xspeed3 * friction; yspeed3 = yspeed3 * friction; this._x = this._x + xspeed3; this._y = this._y + yspeed3; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; xspeed4 = 0; yspeed4 = 0; butterfly4.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x4 = (flower._x - this._x) * speed_scale; dist_y4 = (flower._y - this._y) * speed_scale; xspeed4 = xspeed4 + dist_x4; yspeed4 = yspeed4 + dist_y4; xspeed4 = xspeed4 * friction; yspeed4 = yspeed4 * friction; this._x = this._x + xspeed4; this._y = this._y + yspeed4; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; xspeed5 = 0; yspeed5 = 0; butterfly5.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x5 = (flower._x - this._x) * speed_scale; dist_y5 = (flower._y - this._y) * speed_scale; xspeed5 = xspeed5 + dist_x5; yspeed5 = yspeed5 + dist_y5; xspeed5 = xspeed5 * friction; yspeed5 = yspeed5 * friction; this._x = this._x + xspeed5; this._y = this._y + yspeed5; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; xspeed6 = 0; yspeed6 = 0; butterfly6.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x6 = (flower._x - this._x) * speed_scale; dist_y6 = (flower._y - this._y) * speed_scale; xspeed6 = xspeed6 + dist_x6; yspeed6 = yspeed6 + dist_y6; xspeed6 = xspeed6 * friction; yspeed6 = yspeed6 * friction; this._x = this._x + xspeed6; this._y = this._y + yspeed6; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; xspeed7 = 0; yspeed7 = 0; butterfly7.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x7 = (flower._x - this._x) * speed_scale; dist_y7 = (flower._y - this._y) * speed_scale; xspeed7 = xspeed7 + dist_x7; yspeed7 = yspeed7 + dist_y7; xspeed7 = xspeed7 * friction; yspeed7 = yspeed7 * friction; this._x = this._x + xspeed7; this._y = this._y + yspeed7; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; xspeed8 = 0; yspeed8 = 0; butterfly8.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x8 = (flower._x - this._x) * speed_scale2; dist_y8 = (flower._y - this._y) * speed_scale2; xspeed8 = xspeed8 + dist_x8; yspeed8 = yspeed8 + dist_y8; xspeed8 = xspeed8 * friction2; yspeed8 = yspeed8 * friction2; this._x = this._x + xspeed8; this._y = this._y + yspeed8; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web2)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; xspeed9 = 0; yspeed9 = 0; butterfly9.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x9 = (flower._x - this._x) * speed_scale2; dist_y9 = (flower._y - this._y) * speed_scale2; xspeed9 = xspeed9 + dist_x9; yspeed9 = yspeed9 + dist_y9; xspeed9 = xspeed9 * friction2; yspeed9 = yspeed9 * friction2; this._x = this._x + xspeed9; this._y = this._y + yspeed9; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web2)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; xspeed10 = 0; yspeed10 = 0; butterfly10.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x10 = (flower._x - this._x) * speed_scale2; dist_y10 = (flower._y - this._y) * speed_scale2; xspeed10 = xspeed10 + dist_x10; yspeed10 = yspeed10 + dist_y10; xspeed10 = xspeed10 * friction2; yspeed10 = yspeed10 * friction2; this._x = this._x + xspeed10; this._y = this._y + yspeed10; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web2)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; xspeed11 = 0; yspeed11 = 0; butterfly11.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x11 = (flower._x - this._x) * speed_scale2; dist_y11 = (flower._y - this._y) * speed_scale2; xspeed11 = xspeed11 + dist_x11; yspeed11 = yspeed11 + dist_y11; xspeed11 = xspeed11 * friction2; yspeed11 = yspeed11 * friction2; this._x = this._x + xspeed11; this._y = this._y + yspeed11; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web2)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; xspeed12 = 0; yspeed12 = 0; butterfly12.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x12 = (flower._x - this._x) * speed_scale2; dist_y12 = (flower._y - this._y) * speed_scale2; xspeed12 = xspeed12 + dist_x12; yspeed12 = yspeed12 + dist_y12; xspeed12 = xspeed12 * friction2; yspeed12 = yspeed12 * friction2; this._x = this._x + xspeed12; this._y = this._y + yspeed12; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web2)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; xspeed13 = 0; yspeed13 = 0; butterfly13.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x13 = (flower._x - this._x) * speed_scale2; dist_y13 = (flower._y - this._y) * speed_scale2; xspeed13 = xspeed13 + dist_x13; yspeed13 = yspeed13 + dist_y13; xspeed13 = xspeed13 * friction2; yspeed13 = yspeed13 * friction2; this._x = this._x + xspeed13; this._y = this._y + yspeed13; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web2)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; xspeed14 = 0; yspeed14 = 0; butterfly14.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x14 = (flower._x - this._x) * speed_scale3; dist_y14 = (flower._y - this._y) * speed_scale3; xspeed14 = xspeed14 + dist_x14; yspeed14 = yspeed14 + dist_y14; xspeed14 = xspeed14 * friction2; yspeed14 = yspeed14 * friction2; this._x = this._x + xspeed14; this._y = this._y + yspeed14; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.spider) && (this._y > 0)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; xspeed15 = 0; yspeed15 = 0; butterfly15.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x15 = (flower._x - this._x) * speed_scale3; dist_y15 = (flower._y - this._y) * speed_scale3; xspeed15 = xspeed15 + dist_x15; yspeed15 = yspeed15 + dist_y15; xspeed15 = xspeed15 * friction2; yspeed15 = yspeed15 * friction2; this._x = this._x + xspeed15; this._y = this._y + yspeed15; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.spider) && (this._y > 0)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; web.onEnterFrame = function () { if (timeout == 60) { if (this.hitTests(flower)) { gotoAndStop ("gameoverweb"); } if (butarray.length == 0) { nextFrame(); } } }; web2.onEnterFrame = function () { if (timeout == 60) { if (this.hitTests(flower)) { gotoAndStop ("gameoverweb"); } } }; spider.onEnterFrame = function () { if (timeout == 60) { if (this.hitTests(flower)) { gotoAndStop ("gameoverspider"); } } };
Instance of Symbol 110 MovieClip "butterfly15" in Frame 18
onClipEvent (load) { _xscale = 1; _yscale = 1; this._visible = true; this._x = 15; this._y = 255; }
Frame 19
stop(); friction = 0.905; friction2 = 0.87; speed_scale = 0.025; speed_scale2 = 0.035; speed_scale3 = 0.03; timeout = 0; scale = 1; butarray.push(butterfly); butterfly._x = 85; butterfly._y = 35; butterfly._xscale = 1; butterfly._yscale = 1; butterfly._visible = true; butarray.push(butterfly1); butterfly1._x = 85; butterfly1._y = 360; butterfly1._xscale = 1; butterfly1._yscale = 1; butterfly1._visible = true; butarray.push(butterfly2); butterfly2._x = 435; butterfly2._y = 35; butterfly2._xscale = 1; butterfly2._yscale = 1; butterfly2._visible = true; butarray.push(butterfly3); butterfly3._x = 435; butterfly3._y = 360; butterfly3._xscale = 1; butterfly3._yscale = 1; butterfly3._visible = true; butarray.push(butterfly4); butterfly4._x = 265; butterfly4._y = 35; butterfly4._xscale = 1; butterfly4._yscale = 1; butterfly4._visible = true; butarray.push(butterfly5); butterfly5._x = 265; butterfly5._y = 360; butterfly5._xscale = 1; butterfly5._yscale = 1; butterfly5._visible = true; butarray.push(butterfly6); butterfly6._x = 15; butterfly6._y = 190; butterfly6._xscale = 1; butterfly6._yscale = 1; butterfly6._visible = true; butarray.push(butterfly7); butterfly7._x = 515; butterfly7._y = 190; butterfly7._xscale = 1; butterfly7._yscale = 1; butterfly7._visible = true; butarray.push(butterfly8); butterfly8._x = 515; butterfly8._y = 260; butterfly8._xscale = 1; butterfly8._yscale = 1; butterfly8._visible = true; butarray.push(butterfly9); butterfly9._x = 15; butterfly9._y = 105; butterfly9._xscale = 1; butterfly9._yscale = 1; butterfly9._visible = true; butarray.push(butterfly10); butterfly10._x = 170; butterfly10._y = 360; butterfly10._xscale = 1; butterfly10._yscale = 1; butterfly10._visible = true; butarray.push(butterfly11); butterfly11._x = 360; butterfly11._y = 35; butterfly11._xscale = 1; butterfly11._yscale = 1; butterfly11._visible = true; butarray.push(butterfly12); butterfly12._x = 170; butterfly12._y = 35; butterfly12._xscale = 1; butterfly12._yscale = 1; butterfly12._visible = true; butarray.push(butterfly13); butterfly13._x = 360; butterfly13._y = 360; butterfly13._xscale = 1; butterfly13._yscale = 1; butterfly13._visible = true; butarray.push(butterfly14); butterfly14._x = 515; butterfly14._y = 125; butterfly14._xscale = 1; butterfly14._yscale = 1; butterfly14._visible = true; butarray.push(butterfly15); butterfly15._x = 15; butterfly15._y = 255; butterfly15._xscale = 1; butterfly15._yscale = 1; butterfly15._visible = true; butarray.push(butterfly16); butterfly16._x = 18; butterfly16._y = 40; butterfly16._xscale = 1; butterfly16._yscale = 1; butterfly16._visible = true; flower.onEnterFrame = function () { scoretext.text = "score: " + score; this._x = _root._xmouse; this._y = _root._ymouse; butterfly._xscale = scale; butterfly1._xscale = scale; butterfly2._xscale = scale; butterfly3._xscale = scale; butterfly4._xscale = scale; butterfly5._xscale = scale; butterfly6._xscale = scale; butterfly7._xscale = scale; butterfly8._xscale = scale; butterfly9._xscale = scale; butterfly10._xscale = scale; butterfly11._xscale = scale; butterfly12._xscale = scale; butterfly13._xscale = scale; butterfly14._xscale = scale; butterfly15._xscale = scale; butterfly16._xscale = scale; butterfly._yscale = scale; butterfly1._yscale = scale; butterfly2._yscale = scale; butterfly3._yscale = scale; butterfly4._yscale = scale; butterfly5._yscale = scale; butterfly6._yscale = scale; butterfly7._yscale = scale; butterfly8._yscale = scale; butterfly9._yscale = scale; butterfly10._yscale = scale; butterfly11._yscale = scale; butterfly12._yscale = scale; butterfly13._yscale = scale; butterfly14._yscale = scale; butterfly15._yscale = scale; butterfly16._yscale = scale; web._xscale = scale; web._yscale = scale; web2._xscale = scale; web2._yscale = scale; if (scale < 100) { scale = scale + 5; } timeout++; if (timeout > 60) { timeout = 60; } }; xspeed = 0; yspeed = 0; butterfly.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x = (flower._x - this._x) * speed_scale; dist_y = (flower._y - this._y) * speed_scale; xspeed = xspeed + dist_x; yspeed = yspeed + dist_y; xspeed = xspeed * friction; yspeed = yspeed * friction; this._x = this._x + xspeed; this._y = this._y + yspeed; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; xspeed1 = 0; yspeed1 = 0; butterfly1.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x1 = (flower._x - this._x) * speed_scale; dist_y1 = (flower._y - this._y) * speed_scale; xspeed1 = xspeed1 + dist_x1; yspeed1 = yspeed1 + dist_y1; xspeed1 = xspeed1 * friction; yspeed1 = yspeed1 * friction; this._x = this._x + xspeed1; this._y = this._y + yspeed1; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; xspeed2 = 0; yspeed2 = 0; butterfly2.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x2 = (flower._x - this._x) * speed_scale; dist_y2 = (flower._y - this._y) * speed_scale; xspeed2 = xspeed2 + dist_x2; yspeed2 = yspeed2 + dist_y2; xspeed2 = xspeed2 * friction; yspeed2 = yspeed2 * friction; this._x = this._x + xspeed2; this._y = this._y + yspeed2; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; xspeed3 = 0; yspeed3 = 0; butterfly3.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x3 = (flower._x - this._x) * speed_scale; dist_y3 = (flower._y - this._y) * speed_scale; xspeed3 = xspeed3 + dist_x3; yspeed3 = yspeed3 + dist_y3; xspeed3 = xspeed3 * friction; yspeed3 = yspeed3 * friction; this._x = this._x + xspeed3; this._y = this._y + yspeed3; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; xspeed4 = 0; yspeed4 = 0; butterfly4.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x4 = (flower._x - this._x) * speed_scale; dist_y4 = (flower._y - this._y) * speed_scale; xspeed4 = xspeed4 + dist_x4; yspeed4 = yspeed4 + dist_y4; xspeed4 = xspeed4 * friction; yspeed4 = yspeed4 * friction; this._x = this._x + xspeed4; this._y = this._y + yspeed4; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; xspeed5 = 0; yspeed5 = 0; butterfly5.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x5 = (flower._x - this._x) * speed_scale; dist_y5 = (flower._y - this._y) * speed_scale; xspeed5 = xspeed5 + dist_x5; yspeed5 = yspeed5 + dist_y5; xspeed5 = xspeed5 * friction; yspeed5 = yspeed5 * friction; this._x = this._x + xspeed5; this._y = this._y + yspeed5; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; xspeed6 = 0; yspeed6 = 0; butterfly6.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x6 = (flower._x - this._x) * speed_scale; dist_y6 = (flower._y - this._y) * speed_scale; xspeed6 = xspeed6 + dist_x6; yspeed6 = yspeed6 + dist_y6; xspeed6 = xspeed6 * friction; yspeed6 = yspeed6 * friction; this._x = this._x + xspeed6; this._y = this._y + yspeed6; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; xspeed7 = 0; yspeed7 = 0; butterfly7.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x7 = (flower._x - this._x) * speed_scale; dist_y7 = (flower._y - this._y) * speed_scale; xspeed7 = xspeed7 + dist_x7; yspeed7 = yspeed7 + dist_y7; xspeed7 = xspeed7 * friction; yspeed7 = yspeed7 * friction; this._x = this._x + xspeed7; this._y = this._y + yspeed7; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; xspeed8 = 0; yspeed8 = 0; butterfly8.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x8 = (flower._x - this._x) * speed_scale2; dist_y8 = (flower._y - this._y) * speed_scale2; xspeed8 = xspeed8 + dist_x8; yspeed8 = yspeed8 + dist_y8; xspeed8 = xspeed8 * friction2; yspeed8 = yspeed8 * friction2; this._x = this._x + xspeed8; this._y = this._y + yspeed8; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web2)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; xspeed9 = 0; yspeed9 = 0; butterfly9.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x9 = (flower._x - this._x) * speed_scale2; dist_y9 = (flower._y - this._y) * speed_scale2; xspeed9 = xspeed9 + dist_x9; yspeed9 = yspeed9 + dist_y9; xspeed9 = xspeed9 * friction2; yspeed9 = yspeed9 * friction2; this._x = this._x + xspeed9; this._y = this._y + yspeed9; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web2)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; xspeed10 = 0; yspeed10 = 0; butterfly10.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x10 = (flower._x - this._x) * speed_scale2; dist_y10 = (flower._y - this._y) * speed_scale2; xspeed10 = xspeed10 + dist_x10; yspeed10 = yspeed10 + dist_y10; xspeed10 = xspeed10 * friction2; yspeed10 = yspeed10 * friction2; this._x = this._x + xspeed10; this._y = this._y + yspeed10; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web2)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; xspeed11 = 0; yspeed11 = 0; butterfly11.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x11 = (flower._x - this._x) * speed_scale2; dist_y11 = (flower._y - this._y) * speed_scale2; xspeed11 = xspeed11 + dist_x11; yspeed11 = yspeed11 + dist_y11; xspeed11 = xspeed11 * friction2; yspeed11 = yspeed11 * friction2; this._x = this._x + xspeed11; this._y = this._y + yspeed11; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web2)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; xspeed12 = 0; yspeed12 = 0; butterfly12.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x12 = (flower._x - this._x) * speed_scale2; dist_y12 = (flower._y - this._y) * speed_scale2; xspeed12 = xspeed12 + dist_x12; yspeed12 = yspeed12 + dist_y12; xspeed12 = xspeed12 * friction2; yspeed12 = yspeed12 * friction2; this._x = this._x + xspeed12; this._y = this._y + yspeed12; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web2)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; xspeed13 = 0; yspeed13 = 0; butterfly13.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x13 = (flower._x - this._x) * speed_scale2; dist_y13 = (flower._y - this._y) * speed_scale2; xspeed13 = xspeed13 + dist_x13; yspeed13 = yspeed13 + dist_y13; xspeed13 = xspeed13 * friction2; yspeed13 = yspeed13 * friction2; this._x = this._x + xspeed13; this._y = this._y + yspeed13; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web2)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; xspeed14 = 0; yspeed14 = 0; butterfly14.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x14 = (flower._x - this._x) * speed_scale3; dist_y14 = (flower._y - this._y) * speed_scale3; xspeed14 = xspeed14 + dist_x14; yspeed14 = yspeed14 + dist_y14; xspeed14 = xspeed14 * friction2; yspeed14 = yspeed14 * friction2; this._x = this._x + xspeed14; this._y = this._y + yspeed14; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.spider) && (this._y > 0)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; xspeed15 = 0; yspeed15 = 0; butterfly15.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x15 = (flower._x - this._x) * speed_scale3; dist_y15 = (flower._y - this._y) * speed_scale3; xspeed15 = xspeed15 + dist_x15; yspeed15 = yspeed15 + dist_y15; xspeed15 = xspeed15 * friction2; yspeed15 = yspeed15 * friction2; this._x = this._x + xspeed15; this._y = this._y + yspeed15; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.spider) && (this._y > 0)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; xspeed16 = 0; yspeed16 = 0; butterfly16.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x16 = (flower._x - this._x) * speed_scale3; dist_y16 = (flower._y - this._y) * speed_scale3; xspeed16 = xspeed16 + dist_x16; yspeed16 = yspeed16 + dist_y16; xspeed16 = xspeed16 * friction2; yspeed16 = yspeed16 * friction2; this._x = this._x + xspeed16; this._y = this._y + yspeed16; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.spider) && (this._y > 0)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; web.onEnterFrame = function () { if (timeout == 60) { if (this.hitTests(flower)) { gotoAndStop ("gameoverweb"); } if (butarray.length == 0) { nextFrame(); } } }; web2.onEnterFrame = function () { if (timeout == 60) { if (this.hitTests(flower)) { gotoAndStop ("gameoverweb"); } } }; spider.onEnterFrame = function () { if (timeout == 60) { if (this.hitTests(flower)) { gotoAndStop ("gameoverspider"); } } };
Instance of Symbol 110 MovieClip "butterfly16" in Frame 19
onClipEvent (load) { _xscale = 1; _yscale = 1; this._visible = true; this._x = 18; this._y = 40; }
Frame 20
stop(); friction = 0.905; friction2 = 0.87; speed_scale = 0.025; speed_scale2 = 0.035; speed_scale3 = 0.03; timeout = 0; scale = 1; butarray.push(butterfly); butterfly._x = 85; butterfly._y = 35; butterfly._xscale = 1; butterfly._yscale = 1; butterfly._visible = true; butarray.push(butterfly1); butterfly1._x = 85; butterfly1._y = 360; butterfly1._xscale = 1; butterfly1._yscale = 1; butterfly1._visible = true; butarray.push(butterfly2); butterfly2._x = 435; butterfly2._y = 35; butterfly2._xscale = 1; butterfly2._yscale = 1; butterfly2._visible = true; butarray.push(butterfly3); butterfly3._x = 435; butterfly3._y = 360; butterfly3._xscale = 1; butterfly3._yscale = 1; butterfly3._visible = true; butarray.push(butterfly4); butterfly4._x = 265; butterfly4._y = 35; butterfly4._xscale = 1; butterfly4._yscale = 1; butterfly4._visible = true; butarray.push(butterfly5); butterfly5._x = 265; butterfly5._y = 360; butterfly5._xscale = 1; butterfly5._yscale = 1; butterfly5._visible = true; butarray.push(butterfly6); butterfly6._x = 15; butterfly6._y = 190; butterfly6._xscale = 1; butterfly6._yscale = 1; butterfly6._visible = true; butarray.push(butterfly7); butterfly7._x = 515; butterfly7._y = 190; butterfly7._xscale = 1; butterfly7._yscale = 1; butterfly7._visible = true; butarray.push(butterfly8); butterfly8._x = 515; butterfly8._y = 260; butterfly8._xscale = 1; butterfly8._yscale = 1; butterfly8._visible = true; butarray.push(butterfly9); butterfly9._x = 15; butterfly9._y = 105; butterfly9._xscale = 1; butterfly9._yscale = 1; butterfly9._visible = true; butarray.push(butterfly10); butterfly10._x = 170; butterfly10._y = 360; butterfly10._xscale = 1; butterfly10._yscale = 1; butterfly10._visible = true; butarray.push(butterfly11); butterfly11._x = 360; butterfly11._y = 35; butterfly11._xscale = 1; butterfly11._yscale = 1; butterfly11._visible = true; butarray.push(butterfly12); butterfly12._x = 170; butterfly12._y = 35; butterfly12._xscale = 1; butterfly12._yscale = 1; butterfly12._visible = true; butarray.push(butterfly13); butterfly13._x = 360; butterfly13._y = 360; butterfly13._xscale = 1; butterfly13._yscale = 1; butterfly13._visible = true; butarray.push(butterfly14); butterfly14._x = 515; butterfly14._y = 125; butterfly14._xscale = 1; butterfly14._yscale = 1; butterfly14._visible = true; butarray.push(butterfly15); butterfly15._x = 15; butterfly15._y = 255; butterfly15._xscale = 1; butterfly15._yscale = 1; butterfly15._visible = true; butarray.push(butterfly16); butterfly16._x = 18; butterfly16._y = 40; butterfly16._xscale = 1; butterfly16._yscale = 1; butterfly16._visible = true; butarray.push(butterfly17); butterfly17._x = 515; butterfly17._y = 360; butterfly17._xscale = 1; butterfly17._yscale = 1; butterfly17._visible = true; flower.onEnterFrame = function () { scoretext.text = "score: " + score; this._x = _root._xmouse; this._y = _root._ymouse; butterfly._xscale = scale; butterfly1._xscale = scale; butterfly2._xscale = scale; butterfly3._xscale = scale; butterfly4._xscale = scale; butterfly5._xscale = scale; butterfly6._xscale = scale; butterfly7._xscale = scale; butterfly8._xscale = scale; butterfly9._xscale = scale; butterfly10._xscale = scale; butterfly11._xscale = scale; butterfly12._xscale = scale; butterfly13._xscale = scale; butterfly14._xscale = scale; butterfly15._xscale = scale; butterfly16._xscale = scale; butterfly17._xscale = scale; butterfly._yscale = scale; butterfly1._yscale = scale; butterfly2._yscale = scale; butterfly3._yscale = scale; butterfly4._yscale = scale; butterfly5._yscale = scale; butterfly6._yscale = scale; butterfly7._yscale = scale; butterfly8._yscale = scale; butterfly9._yscale = scale; butterfly10._yscale = scale; butterfly11._yscale = scale; butterfly12._yscale = scale; butterfly13._yscale = scale; butterfly14._yscale = scale; butterfly15._yscale = scale; butterfly16._yscale = scale; butterfly17._yscale = scale; web._xscale = scale; web._yscale = scale; web2._xscale = scale; web2._yscale = scale; if (scale < 100) { scale = scale + 5; } timeout++; if (timeout > 60) { timeout = 60; } }; xspeed = 0; yspeed = 0; butterfly.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x = (flower._x - this._x) * speed_scale; dist_y = (flower._y - this._y) * speed_scale; xspeed = xspeed + dist_x; yspeed = yspeed + dist_y; xspeed = xspeed * friction; yspeed = yspeed * friction; this._x = this._x + xspeed; this._y = this._y + yspeed; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; xspeed1 = 0; yspeed1 = 0; butterfly1.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x1 = (flower._x - this._x) * speed_scale; dist_y1 = (flower._y - this._y) * speed_scale; xspeed1 = xspeed1 + dist_x1; yspeed1 = yspeed1 + dist_y1; xspeed1 = xspeed1 * friction; yspeed1 = yspeed1 * friction; this._x = this._x + xspeed1; this._y = this._y + yspeed1; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; xspeed2 = 0; yspeed2 = 0; butterfly2.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x2 = (flower._x - this._x) * speed_scale; dist_y2 = (flower._y - this._y) * speed_scale; xspeed2 = xspeed2 + dist_x2; yspeed2 = yspeed2 + dist_y2; xspeed2 = xspeed2 * friction; yspeed2 = yspeed2 * friction; this._x = this._x + xspeed2; this._y = this._y + yspeed2; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; xspeed3 = 0; yspeed3 = 0; butterfly3.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x3 = (flower._x - this._x) * speed_scale; dist_y3 = (flower._y - this._y) * speed_scale; xspeed3 = xspeed3 + dist_x3; yspeed3 = yspeed3 + dist_y3; xspeed3 = xspeed3 * friction; yspeed3 = yspeed3 * friction; this._x = this._x + xspeed3; this._y = this._y + yspeed3; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; xspeed4 = 0; yspeed4 = 0; butterfly4.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x4 = (flower._x - this._x) * speed_scale; dist_y4 = (flower._y - this._y) * speed_scale; xspeed4 = xspeed4 + dist_x4; yspeed4 = yspeed4 + dist_y4; xspeed4 = xspeed4 * friction; yspeed4 = yspeed4 * friction; this._x = this._x + xspeed4; this._y = this._y + yspeed4; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; xspeed5 = 0; yspeed5 = 0; butterfly5.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x5 = (flower._x - this._x) * speed_scale; dist_y5 = (flower._y - this._y) * speed_scale; xspeed5 = xspeed5 + dist_x5; yspeed5 = yspeed5 + dist_y5; xspeed5 = xspeed5 * friction; yspeed5 = yspeed5 * friction; this._x = this._x + xspeed5; this._y = this._y + yspeed5; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; xspeed6 = 0; yspeed6 = 0; butterfly6.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x6 = (flower._x - this._x) * speed_scale; dist_y6 = (flower._y - this._y) * speed_scale; xspeed6 = xspeed6 + dist_x6; yspeed6 = yspeed6 + dist_y6; xspeed6 = xspeed6 * friction; yspeed6 = yspeed6 * friction; this._x = this._x + xspeed6; this._y = this._y + yspeed6; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; xspeed7 = 0; yspeed7 = 0; butterfly7.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x7 = (flower._x - this._x) * speed_scale; dist_y7 = (flower._y - this._y) * speed_scale; xspeed7 = xspeed7 + dist_x7; yspeed7 = yspeed7 + dist_y7; xspeed7 = xspeed7 * friction; yspeed7 = yspeed7 * friction; this._x = this._x + xspeed7; this._y = this._y + yspeed7; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; xspeed8 = 0; yspeed8 = 0; butterfly8.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x8 = (flower._x - this._x) * speed_scale2; dist_y8 = (flower._y - this._y) * speed_scale2; xspeed8 = xspeed8 + dist_x8; yspeed8 = yspeed8 + dist_y8; xspeed8 = xspeed8 * friction2; yspeed8 = yspeed8 * friction2; this._x = this._x + xspeed8; this._y = this._y + yspeed8; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web2)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; xspeed9 = 0; yspeed9 = 0; butterfly9.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x9 = (flower._x - this._x) * speed_scale2; dist_y9 = (flower._y - this._y) * speed_scale2; xspeed9 = xspeed9 + dist_x9; yspeed9 = yspeed9 + dist_y9; xspeed9 = xspeed9 * friction2; yspeed9 = yspeed9 * friction2; this._x = this._x + xspeed9; this._y = this._y + yspeed9; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web2)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; xspeed10 = 0; yspeed10 = 0; butterfly10.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x10 = (flower._x - this._x) * speed_scale2; dist_y10 = (flower._y - this._y) * speed_scale2; xspeed10 = xspeed10 + dist_x10; yspeed10 = yspeed10 + dist_y10; xspeed10 = xspeed10 * friction2; yspeed10 = yspeed10 * friction2; this._x = this._x + xspeed10; this._y = this._y + yspeed10; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web2)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; xspeed11 = 0; yspeed11 = 0; butterfly11.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x11 = (flower._x - this._x) * speed_scale2; dist_y11 = (flower._y - this._y) * speed_scale2; xspeed11 = xspeed11 + dist_x11; yspeed11 = yspeed11 + dist_y11; xspeed11 = xspeed11 * friction2; yspeed11 = yspeed11 * friction2; this._x = this._x + xspeed11; this._y = this._y + yspeed11; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web2)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; xspeed12 = 0; yspeed12 = 0; butterfly12.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x12 = (flower._x - this._x) * speed_scale2; dist_y12 = (flower._y - this._y) * speed_scale2; xspeed12 = xspeed12 + dist_x12; yspeed12 = yspeed12 + dist_y12; xspeed12 = xspeed12 * friction2; yspeed12 = yspeed12 * friction2; this._x = this._x + xspeed12; this._y = this._y + yspeed12; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web2)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; xspeed13 = 0; yspeed13 = 0; butterfly13.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x13 = (flower._x - this._x) * speed_scale2; dist_y13 = (flower._y - this._y) * speed_scale2; xspeed13 = xspeed13 + dist_x13; yspeed13 = yspeed13 + dist_y13; xspeed13 = xspeed13 * friction2; yspeed13 = yspeed13 * friction2; this._x = this._x + xspeed13; this._y = this._y + yspeed13; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.web2)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; xspeed14 = 0; yspeed14 = 0; butterfly14.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x14 = (flower._x - this._x) * speed_scale3; dist_y14 = (flower._y - this._y) * speed_scale3; xspeed14 = xspeed14 + dist_x14; yspeed14 = yspeed14 + dist_y14; xspeed14 = xspeed14 * friction2; yspeed14 = yspeed14 * friction2; this._x = this._x + xspeed14; this._y = this._y + yspeed14; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.spider) && (this._y > 0)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; xspeed15 = 0; yspeed15 = 0; butterfly15.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x15 = (flower._x - this._x) * speed_scale3; dist_y15 = (flower._y - this._y) * speed_scale3; xspeed15 = xspeed15 + dist_x15; yspeed15 = yspeed15 + dist_y15; xspeed15 = xspeed15 * friction2; yspeed15 = yspeed15 * friction2; this._x = this._x + xspeed15; this._y = this._y + yspeed15; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.spider) && (this._y > 0)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; xspeed16 = 0; yspeed16 = 0; butterfly16.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x16 = (flower._x - this._x) * speed_scale3; dist_y16 = (flower._y - this._y) * speed_scale3; xspeed16 = xspeed16 + dist_x16; yspeed16 = yspeed16 + dist_y16; xspeed16 = xspeed16 * friction2; yspeed16 = yspeed16 * friction2; this._x = this._x + xspeed16; this._y = this._y + yspeed16; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.spider) && (this._y > 0)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; xspeed17 = 0; yspeed17 = 0; butterfly17.onEnterFrame = function () { if (timeout == 60) { if (this._visible == true) { dist_x17 = (flower._x - this._x) * speed_scale3; dist_y17 = (flower._y - this._y) * speed_scale3; xspeed17 = xspeed17 + dist_x17; yspeed17 = yspeed17 + dist_y17; xspeed17 = xspeed17 * friction2; yspeed17 = yspeed17 * friction2; this._x = this._x + xspeed17; this._y = this._y + yspeed17; if (this.hitTests(_root.flower)) { gotoAndStop ("gameoverbut"); } angle = (Math.atan2(this._y - _ymouse, this._x - _xmouse) / Math.PI) * 180; this._rotation = angle + 180; if (this.hitTests(_root.spider) && (this._y > 0)) { score++; butarray.splice(0, 1); this._visible = false; } } else { this._x = 395; this._y = 160; } } }; web.onEnterFrame = function () { if (timeout == 60) { if (this.hitTests(flower)) { gotoAndStop ("gameoverweb"); } if (butarray.length == 0) { gotoAndStop ("win"); } } }; web2.onEnterFrame = function () { if (timeout == 60) { if (this.hitTests(flower)) { gotoAndStop ("gameoverweb"); } } }; spider.onEnterFrame = function () { if (timeout == 60) { if (this.hitTests(flower)) { gotoAndStop ("gameoverspider"); } } };
Instance of Symbol 110 MovieClip "butterfly17" in Frame 20
onClipEvent (load) { _xscale = 1; _yscale = 1; this._visible = true; this._x = 515; this._y = 360; }
Frame 32
stop(); flower.swapDepths(9000); flower.removeMovieClip(); Mouse.show(); scoringtext.text = "your final score was: " + _root.score;
Frame 33
stop(); flower.swapDepths(9000); flower.removeMovieClip(); Mouse.show(); scoringtext.text = "your final score was: " + _root.score;
Frame 34
stop(); flower.swapDepths(9000); flower.removeMovieClip(); Mouse.show(); scoringtext.text = "your final score was: " + _root.score;
Frame 35
stop(); flower.swapDepths(9000); flower.removeMovieClip(); Mouse.show(); scoringtext.text = "your final score was: " + _root.score;
Frame 36
stop(); flower.swapDepths(9000); flower.removeMovieClip(); Mouse.show();
Symbol 56 Button
on (release) { getURL ("http://www.newgrounds.com", "_blank"); }
Symbol 58 MovieClip Frame 40
stop();
Symbol 84 Button
on (release) { _root.play(); }
Symbol 85 MovieClip Frame 1
function onEnterFrame() { if (!loaded) { var _local3 = _root.getBytesLoaded() / _root.getBytesTotal(); if (_local3 >= 1) { play(); bar._x = initX; loaded = true; } else { bar._x = initX + ((_local3 - 1) * bar._width); } } var _local4 = getTimer() - time; timeAccum = timeAccum + _local4; while (timeAccum >= FRAME_TIME) { var _local2 = 0; while (_local2 < timeClips.length) { if (timeClips[_local2]._currentframe < timeClips[_local2]._totalframes) { timeClips[_local2].nextFrame(); } else { timeClips[_local2].gotoAndStop(1); } _local2++; } if (loaded && (_currentframe < _totalframes)) { nextFrame(); } timeAccum = timeAccum - FRAME_TIME; } time = time + _local4; } stop(); _root.stop(); var initX = bar._x; var time = getTimer(); var FRAME_TIME = 33.3333333333333; var timeAccum = 0; var loaded = false; timeClips = [bargfx, tank.mc0, tank.mc1, tank.mc2, tank.mc3, tank.mc4, tank.mc4.mc0, tank.mc4.mc1, tank.mc4.mc0.mc0, tank.mc4.mc0.mc0.mc0.mc0, tank.mc4.mc0.mc0.mc0.mc1, tank.mc4.mc0.mc0.mc0.mc2, tank.mc4.mc0.mc0.mc0.mc3, tank.mc4.mc0.mc0.mc1, tank.mc4.mc0.mc0.mc2, tank.mc5.mc0]; var i = 0; while (i < timeClips.length) { timeClips[i].stop(); i++; }
Symbol 85 MovieClip Frame 51
_root.play();
Symbol 91 Button
on (release) { gotoAndStop ("level1"); }
Symbol 94 Button
on (release) { gotoAndStop ("credits"); }
Symbol 119 Button
on (release) { gotoAndStop ("start"); }
Symbol 129 Button
on (release) { gotoAndStop ("start"); }

Library Items

Symbol 1 GraphicUsed by:2
Symbol 2 MovieClip [flower]Uses:1
Symbol 3 GraphicUsed by:Timeline
Symbol 4 GraphicUsed by:5
Symbol 5 MovieClipUses:4Used by:Timeline
Symbol 6 GraphicUsed by:9
Symbol 7 MovieClipUsed by:8 99 113
Symbol 8 MovieClipUses:7Used by:9 104 106 108 110
Symbol 9 MovieClipUses:6 8Used by:10  Timeline
Symbol 10 MovieClipUses:9Used by:11
Symbol 11 MovieClipUses:10Used by:Timeline
Symbol 12 GraphicUsed by:85
Symbol 13 GraphicUsed by:85
Symbol 14 GraphicUsed by:15
Symbol 15 MovieClipUses:14Used by:85
Symbol 16 GraphicUsed by:18
Symbol 17 GraphicUsed by:18
Symbol 18 MovieClipUses:16 17Used by:85
Symbol 19 GraphicUsed by:85
Symbol 20 GraphicUsed by:85
Symbol 21 GraphicUsed by:85
Symbol 22 GraphicUsed by:29 58
Symbol 23 GraphicUsed by:29 58
Symbol 24 GraphicUsed by:29 58
Symbol 25 GraphicUsed by:29 58
Symbol 26 GraphicUsed by:29 58
Symbol 27 GraphicUsed by:29 58
Symbol 28 GraphicUsed by:29 58
Symbol 29 MovieClipUses:22 23 24 25 26 27 28Used by:85
Symbol 30 GraphicUsed by:85
Symbol 31 GraphicUsed by:32
Symbol 32 MovieClipUses:31Used by:85
Symbol 33 GraphicUsed by:34
Symbol 34 MovieClipUses:33Used by:85
Symbol 35 GraphicUsed by:39
Symbol 36 GraphicUsed by:39
Symbol 37 GraphicUsed by:38
Symbol 38 MovieClipUses:37Used by:39 42
Symbol 39 MovieClipUses:35 36 38Used by:53
Symbol 40 GraphicUsed by:42
Symbol 41 GraphicUsed by:42
Symbol 42 MovieClipUses:40 41 38Used by:53
Symbol 43 GraphicUsed by:46
Symbol 44 GraphicUsed by:46 49
Symbol 45 GraphicUsed by:46
Symbol 46 MovieClipUses:43 44 45Used by:50
Symbol 47 GraphicUsed by:49
Symbol 48 GraphicUsed by:49
Symbol 49 MovieClipUses:47 44 48Used by:50
Symbol 50 MovieClipUses:46 49Used by:53
Symbol 51 GraphicUsed by:52
Symbol 52 MovieClipUses:51Used by:53
Symbol 53 MovieClipUses:39 42 50 52Used by:85
Symbol 54 GraphicUsed by:85
Symbol 55 GraphicUsed by:56
Symbol 56 ButtonUses:55Used by:85
Symbol 57 GraphicUsed by:58
Symbol 58 MovieClipUses:22 23 24 25 26 27 28 57Used by:85
Symbol 59 GraphicUsed by:85
Symbol 60 GraphicUsed by:85
Symbol 61 GraphicUsed by:85
Symbol 62 GraphicUsed by:85
Symbol 63 GraphicUsed by:85
Symbol 64 GraphicUsed by:85
Symbol 65 GraphicUsed by:85
Symbol 66 GraphicUsed by:85
Symbol 67 GraphicUsed by:85
Symbol 68 GraphicUsed by:85
Symbol 69 GraphicUsed by:85
Symbol 70 GraphicUsed by:85
Symbol 71 ShapeTweeningUsed by:85
Symbol 72 GraphicUsed by:85
Symbol 73 ShapeTweeningUsed by:85
Symbol 74 ShapeTweeningUsed by:85
Symbol 75 GraphicUsed by:85
Symbol 76 GraphicUsed by:84
Symbol 77 GraphicUsed by:84
Symbol 78 GraphicUsed by:84
Symbol 79 GraphicUsed by:84
Symbol 80 GraphicUsed by:84
Symbol 81 GraphicUsed by:83
Symbol 82 GraphicUsed by:83
Symbol 83 MovieClipUses:81 82Used by:84
Symbol 84 ButtonUses:76 77 78 79 80 83Used by:85
Symbol 85 MovieClipUses:12 13 15 18 19 20 21 29 30 32 34 53 54 56 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 84Used by:Timeline
Symbol 86 FontUsed by:88 90 93 118 128
Symbol 87 FontUsed by:88 97 115 116 120 121 122 123 124 125 126 130
Symbol 88 TextUses:86 87Used by:Timeline
Symbol 89 GraphicUsed by:91
Symbol 90 TextUses:86Used by:91
Symbol 91 ButtonUses:89 90Used by:Timeline
Symbol 92 GraphicUsed by:94
Symbol 93 TextUses:86Used by:94
Symbol 94 ButtonUses:92 93Used by:Timeline
Symbol 95 SoundUsed by:Timeline
Symbol 96 GraphicUsed by:Timeline
Symbol 97 EditableTextUses:87Used by:Timeline
Symbol 98 GraphicUsed by:100
Symbol 99 MovieClipUses:7Used by:100
Symbol 100 MovieClipUses:98 99Used by:Timeline
Symbol 101 GraphicUsed by:102
Symbol 102 MovieClipUses:101Used by:Timeline
Symbol 103 GraphicUsed by:104
Symbol 104 MovieClipUses:103 8Used by:Timeline
Symbol 105 GraphicUsed by:106
Symbol 106 MovieClipUses:105 8Used by:Timeline
Symbol 107 GraphicUsed by:108
Symbol 108 MovieClipUses:107 8Used by:Timeline
Symbol 109 GraphicUsed by:110
Symbol 110 MovieClipUses:109 8Used by:Timeline
Symbol 111 GraphicUsed by:112
Symbol 112 MovieClipUses:111Used by:114
Symbol 113 MovieClipUses:7Used by:114
Symbol 114 MovieClipUses:112 113Used by:Timeline
Symbol 115 EditableTextUses:87Used by:Timeline
Symbol 116 TextUses:87Used by:Timeline
Symbol 117 GraphicUsed by:119
Symbol 118 TextUses:86Used by:119
Symbol 119 ButtonUses:117 118Used by:Timeline
Symbol 120 EditableTextUses:87Used by:Timeline
Symbol 121 TextUses:87Used by:Timeline
Symbol 122 EditableTextUses:87Used by:Timeline
Symbol 123 TextUses:87Used by:Timeline
Symbol 124 EditableTextUses:87Used by:Timeline
Symbol 125 TextUses:87Used by:Timeline
Symbol 126 TextUses:87Used by:Timeline
Symbol 127 GraphicUsed by:129
Symbol 128 TextUses:86Used by:129
Symbol 129 ButtonUses:127 128Used by:Timeline
Symbol 130 TextUses:87Used by:Timeline

Instance Names

"scoretext"Frame 3Symbol 97 EditableText
"butterfly"Frame 3Symbol 9 MovieClip
"web"Frame 3Symbol 100 MovieClip
"web2"Frame 3Symbol 100 MovieClip
"web3"Frame 3Symbol 100 MovieClip
"web4"Frame 3Symbol 100 MovieClip
"butterfly"Frame 4Symbol 9 MovieClip
"web"Frame 4Symbol 100 MovieClip
"butterfly1"Frame 4Symbol 9 MovieClip
"butterfly"Frame 5Symbol 9 MovieClip
"butterfly1"Frame 5Symbol 9 MovieClip
"butterfly2"Frame 5Symbol 9 MovieClip
"butterfly"Frame 6Symbol 9 MovieClip
"butterfly3"Frame 6Symbol 9 MovieClip
"butterfly2"Frame 6Symbol 9 MovieClip
"butterfly1"Frame 6Symbol 9 MovieClip
"butterfly2"Frame 7Symbol 9 MovieClip
"butterfly4"Frame 7Symbol 9 MovieClip
"butterfly5"Frame 8Symbol 9 MovieClip
"butterfly6"Frame 9Symbol 9 MovieClip
"butterfly7"Frame 10Symbol 9 MovieClip
"web"Frame 11Symbol 100 MovieClip
"web2"Frame 11Symbol 100 MovieClip
"butterfly8"Frame 11Symbol 104 MovieClip
"butterfly9"Frame 12Symbol 104 MovieClip
"butterfly10"Frame 13Symbol 104 MovieClip
"butterfly11"Frame 14Symbol 104 MovieClip
"butterfly12"Frame 15Symbol 104 MovieClip
"butterfly13"Frame 16Symbol 104 MovieClip
"spider"Frame 17Symbol 114 MovieClip
"butterfly14"Frame 17Symbol 110 MovieClip
"butterfly15"Frame 18Symbol 110 MovieClip
"butterfly16"Frame 19Symbol 110 MovieClip
"butterfly17"Frame 20Symbol 110 MovieClip
"scoringtext"Frame 32Symbol 115 EditableText
"scoringtext"Frame 33Symbol 120 EditableText
"scoringtext"Frame 34Symbol 122 EditableText
"scoringtext"Frame 35Symbol 124 EditableText
"perimeter"Symbol 9 MovieClip Frame 1Symbol 8 MovieClip
"bar"Symbol 85 MovieClip Frame 1Symbol 15 MovieClip
"bargfx"Symbol 85 MovieClip Frame 1Symbol 18 MovieClip
"tank"Symbol 85 MovieClip Frame 1Symbol 32 MovieClip
"bargfx"Symbol 85 MovieClip Frame 2Symbol 18 MovieClip
"bargfx"Symbol 85 MovieClip Frame 20Symbol 18 MovieClip
"perimeter"Symbol 100 MovieClip Frame 1Symbol 99 MovieClip
"perimeter"Symbol 104 MovieClip Frame 1Symbol 8 MovieClip
"perimeter"Symbol 106 MovieClip Frame 1Symbol 8 MovieClip
"perimeter"Symbol 108 MovieClip Frame 1Symbol 8 MovieClip
"perimeter"Symbol 110 MovieClip Frame 1Symbol 8 MovieClip
"perimeter"Symbol 114 MovieClip Frame 1Symbol 113 MovieClip

Special Tags

FileAttributes (69)Timeline Frame 1Access local files only, Metadata not present, AS1/AS2.
ExportAssets (56)Timeline Frame 1Symbol 2 as "flower"

Labels

"start"Frame 2
"level1"Frame 3
"gameoverbut"Frame 32
"gameoverweb"Frame 33
"gameoverspider"Frame 34
"win"Frame 35
"credits"Frame 36
"LOAD"Symbol 85 MovieClip Frame 1
"COMPLETE_STOP"Symbol 85 MovieClip Frame 2




http://swfchan.com/15/73678/info.shtml
Created: 8/4 -2019 03:58:36 Last modified: 8/4 -2019 03:58:36 Server time: 23/12 -2024 03:51:26