Skip to content

Instantly share code, notes, and snippets.

@gltovar
Created October 8, 2013 08:21
Show Gist options
  • Save gltovar/6881361 to your computer and use it in GitHub Desktop.
Save gltovar/6881361 to your computer and use it in GitHub Desktop.
var testText:FlxUIText = new FlxUIText(10,10,300,"Dpi: " + Capabilities.screenDPI + " w: " + inchesWidth + "in., h: " + inchesHeight + "in.");
//testText.wordWrap = false;
//testText.angle =20;
testText.size = 48;
testText.fitToWidth();
add( testText );
testText = new FlxUIText(350,10,300,"Dpi: " + Capabilities.screenDPI + " w: " + inchesWidth + "in., h: " + inchesHeight + "in.");
testText.size = 48;
//testText.fitToWidth();
add( testText );
testText = new FlxUIText(10,100,450,"Amazon won the ebook reader war. Like the iPod, the Swiffer, or Jell-O, the Kindle is just what you buy when you want what it does. Barnes & Noble and Sony went down swinging trying to compete, and Kobo and Iriver are but gnats to be swatted by the great Amazon behemoth. Last year’s $119 Kindle Paperwhite was the best ebook reader ever made, the default choice, the one I recommend to everyone without a second’s thought — and 12 months later it still is. There isn't even viable competition at this point. Yet there’s still a new Paperwhite this fall, a new $119 E Ink reader with a series of hardware upgrades and some new software as well. A few things have been changed, but this is very much the same device it was a year ago. It’s Amazon at the height of its powers, with nothing to prove and nothing to lose. The question now: when you win a market, when no one else even really puts up a fight anymore, what do you do next?");
testText.getTextField().background = true;
testText.getTextField().backgroundColor = 0x886644;
testText.alignment = "justify";
testText.size = 48;
testText.fitToHeight(300);
add(testText);
testText = new FlxUIText(500,100,450,"Amazon won the ebook reader war. Like the iPod, the Swiffer, or Jell-O, the Kindle is just what you buy when you want what it does. Barnes & Noble and Sony went down swinging trying to compete, and Kobo and Iriver are but gnats to be swatted by the great Amazon behemoth. Last year’s $119 Kindle Paperwhite was the best ebook reader ever made, the default choice, the one I recommend to everyone without a second’s thought — and 12 months later it still is. There isn't even viable competition at this point. Yet there’s still a new Paperwhite this fall, a new $119 E Ink reader with a series of hardware upgrades and some new software as well. A few things have been changed, but this is very much the same device it was a year ago. It’s Amazon at the height of its powers, with nothing to prove and nothing to lose. The question now: when you win a market, when no one else even really puts up a fight anymore, what do you do next?");
testText.getTextField().background = true;
testText.getTextField().backgroundColor = 0x886644;
testText.alignment = "justify";
testText.size = 48;
//testText.fitToHeight(300);
add(testText);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment