home *** CD-ROM | disk | FTP | other *** search
- function absloc(target)
- {
- point = new Object();
- point.x = target._x;
- point.y = target._y;
- target._parent.localToGlobal(point);
- return point;
- }
- function relloc(target)
- {
- point = new Object();
- point.x = target._x;
- point.y = target._y;
- target._parent.globalToLocal(point);
- return point;
- }
- function ricochet(oldangle, impactangle)
- {
- return impactangle * 2 - oldangle;
- }
- explode_sfx = new Sound();
- explode_sfx.attachSound("explode1.wav");
- die_sfx = new Sound();
- die_sfx.attachSound("explode4.wav");
- boss_die_sfx = new Sound();
- boss_die_sfx.attachSound("explode3.wav");
- shot_sfx = new Sound();
- shot_sfx.attachSound("explode2.wav");
- bling_sfx = new Sound();
- bling_sfx.attachSound("bling.wav");
- star_sfx = new Sound();
- star_sfx.attachSound("drop.wav");
- Mouse.hide();
- startDrag(cursor,1);
- final_score = 0;
- onMouseDown = function()
- {
- _root.firing = 1;
- };
- onMouseUp = function()
- {
- _root.firing = 0;
- };
-