码迷,mamicode.com
首页 > 其他好文 > 详细

lufylegend库 LTextField

时间:2015-07-27 18:40:07      阅读:96      评论:0      收藏:0      [点我收藏+]

标签:

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>

 

lufylegend库 LTextField

标签:

原文地址:http://www.cnblogs.com/stono/p/4680505.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!