Advertisement
Guest User

Untitled

a guest
Oct 13th, 2017
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import flash.events.Event;
  2. import com.whirled.AvatarControl;
  3.  
  4. if (_ctrl == null) {
  5.     _ctrl = new AvatarControl(this);
  6.     _body = new Body(_ctrl, this, 550);
  7.     _ctrl.addEventListener(Event.UNLOAD, handleUnload);
  8.     function handleUnload (... ignored) :void {
  9.         _body.shutdown();
  10.     }
  11. }
  12.  
  13. var _ctrl :AvatarControl;
  14. var _body :Body;
  15. _ctrl.setMoveSpeed(150);
  16. _ctrl.setHotSpot(130, 398, 9999);
  17.  
  18. var NTU:NameTextUtil = new NameTextUtil();
  19. NTU.setTextY(180);
  20. NTU.setTextColor(0xFF0000);
  21. NTU.setOutlineColor(0x0000);
  22. NTU.setOutlineWidth(3);
  23. NTU.setTextContent("Yamaha");
  24. NTU.createName(_ctrl, this, 5);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement