Advertisement
Guest User

Untitled

a guest
Jan 17th, 2017
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. package;
  2.  
  3. import openfl.display.Sprite;
  4. import openfl.Lib;
  5. import openfl.Assets;
  6. import openfl.display.BitmapData;
  7. import openfl.display.Bitmap;
  8. import openfl.events.MouseEvent;
  9. import openfl.display.SimpleButton;
  10. import openfl.events.Event;
  11.  
  12. /**
  13. * ...
  14. * @author
  15. */
  16. class SetCard extends Sprite
  17. {
  18. public var setCardValue : Int;
  19. public var setCardColor : String;
  20. public var setCardFill : String;
  21. public var setCardShape : String;
  22. public var imageName : String;
  23.  
  24. public function new(thisValue : Int, thisColor:String, thisFill:String, thisShape:String, thisImageName:String)
  25.  
  26. {
  27. super();
  28.  
  29. setCardValue = thisValue;
  30. setCardFill = thisFill;
  31. setCardColor = thisColor;
  32. setCardShape = thisShape;
  33. imageName = thisImageName;
  34.  
  35. var setCard : BitmapData = Assets.getBitmapData (imageName);
  36. var card : Bitmap = new Bitmap (setCard);
  37. addChild(card);
  38. }
  39. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement