home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Aventura / robot_warrior.swf / scripts / DefineSprite_41 / frame_4 / DoAction.as
Encoding:
Text File  |  2006-09-05  |  592 b   |  29 lines

  1. no++;
  2. if(arm == 1)
  3. {
  4.    setX = _parent._x - 100;
  5.    setY = _parent._y - 80;
  6.    arm = 0;
  7. }
  8. else
  9. {
  10.    setX = _parent._x - 90;
  11.    setY = _parent._y - 70;
  12.    arm++;
  13. }
  14. thePoint = {x:setX,y:setY};
  15. this.localToGlobal(thePoint);
  16. _root.stage.globalToLocal(thePoint);
  17. tamaname = no + _parent._parent._name;
  18. _root.stage.attachMovie("Eshot",tamaname,5 + no);
  19. if(_parent._parent.muki == "right")
  20. {
  21.    _root.stage[tamaname]._x = thePoint.x;
  22.    _root.stage[tamaname]._y = thePoint.y;
  23. }
  24. else
  25. {
  26.    _root.stage[tamaname]._x = thePoint.x;
  27.    _root.stage[tamaname]._y = thePoint.y;
  28. }
  29.