Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package;
- import openfl.display.Sprite;
- import openfl.Lib;
- import openfl.Assets;
- import openfl.display.BitmapData;
- import openfl.display.Bitmap;
- import openfl.events.MouseEvent;
- import openfl.display.SimpleButton;
- import openfl.events.Event;
- /**
- * ...
- * @author
- */
- class SetCard extends Sprite
- {
- public var setCardValue : Int;
- public var setCardColor : String;
- public var setCardFill : String;
- public var setCardShape : String;
- public var imageName : String;
- public function new(thisValue : Int, thisColor:String, thisFill:String, thisShape:String, thisImageName:String)
- {
- super();
- setCardValue = thisValue;
- setCardFill = thisFill;
- setCardColor = thisColor;
- setCardShape = thisShape;
- imageName = thisImageName;
- var setCard : BitmapData = Assets.getBitmapData (imageName);
- var card : Bitmap = new Bitmap (setCard);
- addChild(card);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement