home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Esportes / Tiro_al_Arco.swf / scripts / DefineSprite_169 / frame_1 / DoAction.as
Text File  |  2007-06-07  |  245b  |  16 lines

  1. alpha = Math.atan(_parent.centro._ymouse / _parent.centro._xmouse) / 3.1416 * 180;
  2. if(_xmouse < 0)
  3. {
  4.    alpha += 180;
  5. }
  6. if(alpha < -20)
  7. {
  8.    alpha = -20;
  9. }
  10. if(10 < alpha)
  11. {
  12.    alpha = 10;
  13. }
  14. _rotation = alpha;
  15. _root.Alpha = Alpha;
  16.