Loading

lufylegend库 LTextField

lufylegend库 LTextField

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>lufylegend</title>
    <script type="text/javascript" src="lufylegend-1.7.6.js"></script>
</head>

<body>
    <div id="mylegend">loading...</div>
    <script type="text/javascript">
    init(50, 'mylegend', 500, 350, main);

    function main() {
        var layer = new LSprite();
        addChild(layer);
        var field = new LTextField();
        field.x = 50;
        field.y = 50;

        // field.text = 'Hello World';
        // field.size = 25;
        // field.color = '#333333';
        // field.weight = 'bolder';
        field.setType(LTextFieldType.INPUT);
        layer.addChild(field);
    }
    </script>
</body>

</html>

 

posted @ 2015-07-27 16:30  stono  阅读(245)  评论(0编辑  收藏  举报