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

BoxSizer Borders

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 flexible bitmaps to fill the sizer area var obj01 = new tine.FlexBitmap(image, tine.STRETCH); var obj02 = new tine.FlexBitmap(image, tine.STRETCH); var obj03 = new tine.FlexBitmap(image, tine.STRETCH); // Set Up the the sizer var area = new createjs.Rectangle(0, 0, game.canvas.width/4, game.canvas.height); var vbox = new tine.BoxSizer(tine.VERTICAL, area); vbox.add(obj01, 1, 15); vbox.add(obj02, 1, 15); vbox.add(obj03, 1, 15); vbox.layout(); // Add bitmaps to stage game.stage.addChild(obj01); game.stage.addChild(obj02); game.stage.addChild(obj03); } });