Flash新手入门之---helloword
作为开发者,学习一门新语言,自然是见到helloword后才是0基础后的第一步,才会踏心,作为flash 0基础的开发者,入门摸不到头脑,我就把我刚才的收获分享一下,希望用到flash的朋友入门可以更快一些,好了,那就说一下这里的helloword吧。 先介绍一下开发工具:FlashBuilder 下载地址:http://trials3.adobe.com/AdobeProducts/FLBR/4_6/win32/FlashBuilder_4_6_LS10.exe 官网下载地址:https://www.adobe.com/cfusion/tdrc/index.cfm?product=flash_builder&loc=zh_cn 可用的序列号: 1424-4938-3077-5736-3940-5640 仅仅为了学习使用,其他参考:http://bbs.9ria.com/thread-107221-1-1.html。 之后,创建项目: Flex是一个开源的框架,可用于构建具有表现力的 Web应用程序,这些应用程序利用Adobe Flash Player和Adobe AIR,运行时跨浏览器、桌面和操作系统实现一致的部署。虽然只能使用 Flex 框架构建 Flex应用程序,但Adobe Flash Builder?(之前称为 Adobe Flex Builder?)软件可以通过智能编码、交互式遍历调试以及可视设计用户界面布局等功能加快开发。具体:http://baike.baidu.com/link?url=E4wyc5KX9K0yOf7gBr6hRt3KmgrlqARiL9XZccTf3IwjWybt1-qDshi4IO5cxfen 下一步: 完成。 看到的内容: 修改代码成helloword,代码是: package { import flash.display.Sprite; import flash.text.TextField; public class helloword extends Sprite { public var strHelloword:TextField; public function helloword() { strHelloword = new TextField(); strHelloword.x=stage.stageWidth/2-30; strHelloword.y=stage.stageHeight/2; strHelloword.text="helloword"; this.addChild(strHelloword); } } }运行效果: 仅仅是最基础的0入门,希望能够帮助0基础的朋友。 (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |