Advertisement
Guest User

Untitled

a guest
Dec 9th, 2016
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.05 KB | None | 0 0
  1. function SetImageStack()
  2. {
  3. if(arguments.length == 0 || arguments.length == 1 && arguments[0] == "")
  4. {
  5. this.image._visible = false;
  6. this.headImage._visible = false;
  7. this.headImageBars._visible = false;
  8. this.WeaponImageSet._visible = false;
  9. }
  10. else if(arguments.length == 1)
  11. {
  12. this.image.loadImage(arguments[0]);
  13. this.image.setImageSize(560,315);
  14. this.image._visible = true;
  15. this.imageStroke._visible = true;
  16. this.imageStroke._hideOnLoad = false;
  17. this.headImage._visible = false;
  18. this.headImageBars._visible = false;
  19. this.WeaponImageSet._visible = false;
  20. }
  21. else
  22. {
  23. this.image._visible = false;
  24. this.headImage._visible = false;
  25. this.headImageBars._visible = false;
  26. this.imageStroke._visible = true;
  27. this.imageStroke._hideOnLoad = false;
  28. this.WeaponImageSet._visible = true;
  29. this.WeaponImageSet.SetWeaponImages(arguments);
  30. this.WeaponImageSet._xscale = 180;
  31. this.WeaponImageSet._yscale = 180;
  32. }
  33. this.image._y = 0;
  34. this.imageFlash.gotoAndPlay("_animateIn");
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement