package com.demo1
{
import laya.display.Sprite;
import laya.display.Text;
/**
* @date 2017-10-25 下午12:28:23
* @author xiaozhibin
*/
public class HelloLayaBox extends Sprite
{
public function HelloLayaBox()
{
Laya.init(600, 300);
var txt:Text = new Text();
txt.text = "HelloLayaBox";
txt.color = "#ff0000";
txt.fontSize = 66;
txt.bold = true;
txt.stroke = 5;//字体描边
txt.strokeColor = "#ffffff";
txt.pos(60, 100);
Laya.stage.bgColor = "#ffff00";
Laya.stage.addChild(txt);
}
}
}