天天看點

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

1424-4827-8874-7387-0243-7331

1424-4464-3877-6130-5013-5457

僅僅為了學習使用,其他參考:http://bbs.9ria.com/thread-107221-1-1.html。

之後,建立項目:

Flash新手入門之---helloword

Flex是一個開源的架構,可用于建構具有表現力的 Web應用程式,這些應用程式利用Adobe Flash Player和Adobe AIR, 運作時跨浏覽器、桌面和作業系統實作一緻的部署。雖然隻能使用 Flex 架構建構 Flex應用程式,但Adobe Flash Builder?(之前稱為 Adobe Flex Builder?)軟體可以通過智能編碼、互動式周遊調試以及可視設計使用者界面布局等功能加快開發。具體:http://baike.baidu.com/link?url=E4wyc5KX9K0yOf7gBr6hRt3KmgrlqARiL9XZccTf3IwjWybt1-qDshi4IO5cxfen

下一步:

Flash新手入門之---helloword
Flash新手入門之---helloword

完成。

看到的内容:

Flash新手入門之---helloword

修改代碼成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);
		}
		
	}
}
           

運作效果:

Flash新手入門之---helloword

僅僅是最基礎的0入門,希望能夠幫助0基礎的朋友。