加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

flex的mxmlc命令行编译as3文件成swf

发布时间:2020-12-15 04:08:43 所属栏目:百科 来源:网络整理
导读:? ?今天想要了解一下as3直接编译成为swf通过命令行的方式进行编译,找到一篇文章:http://edutechwiki.unige.ch/en/AS3_Compiling_a_program ?里面介绍的三种编译方式。 ? 编写as3代码: package { import flash.display.Sprite; public class FilledCircle

? ?今天想要了解一下as3直接编译成为swf通过命令行的方式进行编译,找到一篇文章:http://edutechwiki.unige.ch/en/AS3_Compiling_a_program ?里面介绍的三种编译方式。

? 编写as3代码:


package {
    import flash.display.Sprite;
    public class FilledCircle extends Sprite{
        function FilledCircle():void
        {
            var circle:Sprite = new Sprite();
            circle.graphics.beginFill(0xFF794B);
            circle.graphics.drawCircle(50,50,30);
            circle.graphics.endFill();
            addChild(circle);
        }
    }
}


windows下进入到flex的sdk的bin目录下通过mxmlc命令进行编译该as文件,即可生成swf文件。

还看到一篇文章:http://www.senocular.com/flash/tutorials/as3withmxmlc/ ?一起记录

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读