-
Notifications
You must be signed in to change notification settings - Fork 0
TextField
Pete Shand edited this page Oct 21, 2018
·
2 revisions
package fuse.sample.text;
import fuse.display.Sprite;
import fuse.text.TextField;
import fuse.text.TextFormat;
import mantle.managers.resize.Resize;
class FuseMain extends Sprite
{
var textField:TextField;
public function new()
{
super();
textField = new TextField(512, 256);
addChild(textField);
textField.embedFonts = true;
textField.defaultTextFormat = new TextFormat('Katamotz Ikasi', 80, 0xFFFFFF);
textField.wordWrap = true;
textField.text = "Fuse Text";
textField.alignPivot();
Resize.add(onResize);
}
function onResize()
{
textField.x = Math.round(stage.stageWidth / 2);
textField.y = Math.round(stage.stageHeight / 2);
}
override public function dispose()
{
Resize.remove(onResize);
removeChild(textField);
textField.dispose();
}
}
Basics
-
Display Objects
- Image
- Quad
- Quad With Gradient
- Text
- MovieClip
- Container / Sprite
- Stage
-
Textures
- Bitmap Texture
- Image Texture
- Video Texture
- Interactivity
- Masking
Features
- Real time Texture Packing
- Dynamic Bitmap Caching
- Texture Upload Queueing
- Texture Batching
- Alpha Masking
- Workers
- Frame Skipping