home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Diversos / PrettyBang.swf / scripts / frame_4 / DoAction.as
Encoding:
Text File  |  2007-09-27  |  973 b   |  44 lines

  1. function absloc(target)
  2. {
  3.    point = new Object();
  4.    point.x = target._x;
  5.    point.y = target._y;
  6.    target._parent.localToGlobal(point);
  7.    return point;
  8. }
  9. function relloc(target)
  10. {
  11.    point = new Object();
  12.    point.x = target._x;
  13.    point.y = target._y;
  14.    target._parent.globalToLocal(point);
  15.    return point;
  16. }
  17. function ricochet(oldangle, impactangle)
  18. {
  19.    return impactangle * 2 - oldangle;
  20. }
  21. explode_sfx = new Sound();
  22. explode_sfx.attachSound("explode1.wav");
  23. die_sfx = new Sound();
  24. die_sfx.attachSound("explode4.wav");
  25. boss_die_sfx = new Sound();
  26. boss_die_sfx.attachSound("explode3.wav");
  27. shot_sfx = new Sound();
  28. shot_sfx.attachSound("explode2.wav");
  29. bling_sfx = new Sound();
  30. bling_sfx.attachSound("bling.wav");
  31. star_sfx = new Sound();
  32. star_sfx.attachSound("drop.wav");
  33. Mouse.hide();
  34. startDrag(cursor,1);
  35. final_score = 0;
  36. onMouseDown = function()
  37. {
  38.    _root.firing = 1;
  39. };
  40. onMouseUp = function()
  41. {
  42.    _root.firing = 0;
  43. };
  44.