一、认识:
?? 刚接触flex,flex是flush谋求富网络的地位,从而推出flex,而且flex现在也相对成熟,以前总以为界面显示就是html,css,div,jsp等。现在接触了flex,顿时觉得flex更牛逼.
?
二、编辑:
?这里使用的是Flush Builder 4 plug-in Eclipse 编辑的.
?
?写的简单代码:
<?xml version="1.0" encoding="utf-8"?> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600" > <fx:Declarations> <!-- Place non-visual elements (e.g., services, value objects) here --> </fx:Declarations> <fx:Script> import com.flex.demo.cicle; public function c():void { var i: Number= new cicle(5).area(); var myArray:Array=["1","2","3"]; var k:String=""; for(var j:String in myArray){ k=k+myArray[j]; //trace(myArray[j]+" LL"); } ss.text="text"+k; } </fx:Script> <s:Button x="149" y="148" label="Button" click="c()"/> <s:Label x="43" y="213" text="Label" width="193" height="50" id="ss"/> </s:Application>
?
?效果:
?
?
三、感受:
?1.一个一个标签的,和xml、html类似
?2.控件的使用,和用Vs编写c#程序类似
?3.脚本的编写,和javaScript类似
?...
四、Adobe Flash Builder4破解
http://blog.sina.com.cn/s/blog_68e6edd701010s9x.html
?
http://blog.csdn.net/q3498233/article/details/6928686
?
?
?
原文:http://cb123456.iteye.com/blog/2227994