This site works A LOT better with JavaScript enabled!
This is the beta version of this site! Some things may not be working.

BoxSizer Anchors

Run
var game = new tine.Game(null, { preload: function() { game.load.image('placeholder', 'assets/placeholder.png'); }, create: function() { var image = game.load.get('placeholder'); // Create bitmaps var obj01 = new createjs.Bitmap(image); var obj02 = new createjs.Bitmap(image); var obj03 = new createjs.Bitmap(image); obj01.scaleX = obj01.scaleY = 0.5; obj02.scaleX = obj02.scaleY = 0.5; obj03.scaleX = obj03.scaleY = 0.5; // Set Up the the sizer var area = new createjs.Rectangle(0, 0, game.canvas.width, game.canvas.height); var vbox = new tine.BoxSizer(tine.VERTICAL, area); vbox.add(obj01, 1, 0, tine.TOP_LEFT); vbox.add(obj02, 1, 0, tine.CENTER); vbox.add(obj03, 1, 0, tine.BOTTOM_RIGHT); vbox.layout(); // Add bitmaps to stage game.stage.addChild(obj01); game.stage.addChild(obj02); game.stage.addChild(obj03); } });