白手起家学习使用flex (3) 使用Flash Builder5 完成第一个AIR项目
按照前文 http://sg552.iteye.com/blog/1277793 ,我们安装好了Flash Builder 5, 下面开始第一个项目吧~!~~
( 根据 http://www.adobe.com/devnet/air/articles/getting_started_air_as.html
Follow these steps to start building your first ActionScript application on Adobe AIR:
Download the Adobe AIR runtime. You need the runtime to launch AIR applications.
Download and install your preferred development environment:
Adobe Flash Builder 4.5 (formerly Flex Builder)
Flex 4.5 SDK
Adobe Flash CS5.5 Professional )
按照官方文档所说,要进行项目,需要:
1. Flash Professional CS5
2. Flash Builder
3. Flex SDK
所以,我们先下载着 Professional CS5 ,同时进行这篇文章的操作。 (这个东东是必须要用下载器下载的,速度很慢。我找不到连接)
如图:
然后,我们根据这个文档:
http://help.adobe.com/en_US/air/build/WS5b3ccc516d4fbf351e63e3d118676a28bd-8000.html 使用 Flash Builder建立第一个FLEX/AIR 项目。
过程非常简单:
Open Flash Builder.Select File > New > Flex Project.Enter the project name as AIRHelloWorld.In Flex, AIR applications are considered an application type. You have two type options:a web application that runs in Adobe? Flash? Player
a desktop application that runs in Adobe AIR
Select Desktop as the application type.Click Finish to create the project.
建立好项目之后,是这样的:
修改第一个文件(flash_test2.mxml),内容是::
<?xml version="1.0" encoding="utf-8"?><s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx" title="hihihihihi"><fx:Style> @namespace s "library://ns.adobe.com/flex/spark"; s|WindowedApplication { skinClass:ClassReference("spark.skins.spark.SparkChromeWindowedApplicationSkin"); background-color:#999999; background-alpha:"0.9"; } </fx:Style><fx:Declarations><!-- Place non-visual elements (e.g., services, value objects) here --></fx:Declarations><s:Label text="Hello AIR1!!!!!! by siwei" horizontalCenter="10" verticalCenter="30"/> </s:WindowedApplication><!-- The type of system chrome to use (either "standard" or "none"). Optional. Default standard. --><systemChrome>none</systemChrome><!-- Whether the window is transparent. Only applicable when systemChrome is none. Optional. Default false. --><transparent>true</transparent>

