易截截图软件、单文件、免安装、纯绿色、仅160KB

Flex Chart 技巧 移除浮水印

Flex Chart 虽然有提供完整的试用功能
不过编译完成的图表会加上水印
 “Flex Data Visualization Trial”的字样。
既然是 AS,那事情就简单了
只要在 Flex Project 內加上以下 Class:
一定要创建mx.charts.chartClasses,覆盖FLEX自带的ChartLicenseHandler
package mx.charts.chartClasses {
 public class ChartsLicenseHandler {
 }
}
然后在 MXML 內明确引用该 Class,或是用 Metadata Tag 强迫编译
这样就可以去除浮水印了~!
<?xml version="1.0" encoding="utf-8"?>
<mx:Application  xmlns:mx="http://www.adobe.com/2006/mxml ">
<mx:Metadata>
 [Frame(extraClass="mx.charts.chartClasses.ChartsLicenseHandler")]
</mx:Metadata>
 <mx:Script>
   <![CDATA[ 
      
 import mx.collections.ArrayCollection;
   
 [Bindable]
 private var expensesAC:ArrayCollection = new ArrayCollection( [
  { Month: "Jan", Profit: -200, Expenses: 1500, Amount: 500 },
  { Month: "Feb", Profit: 1000, Expenses: 200, Amount: 600 },
  { Month: "Mar", Profit: 1500, Expenses: -500, Amount: 300 } ]);
 ]]>
 </mx:Script>
 
 <mx:SolidColor id="sc1" color="blue" alpha=".3" />
 <mx:SolidColor id="sc2" color="red" alpha=".3" />
 <mx:SolidColor id="sc3" color="green" alpha=".3" />
 
 <mx:Stroke id="s1" color="blue" weight="1"/>
 <mx:Stroke id="s2" color="red" weight="1"/>
 <mx:Stroke id="s3" color="green" weight="1"/>
 
 <mx:Panel title="PlotChart Control Example" height="100%" width="100%">
  <mx:PlotChart id="plot" height="100%" width="100%"
   paddingLeft="5" paddingRight="5"
   showDataTips="true" dataProvider="{expensesAC}" >
   <mx:series>
    <mx:PlotSeries xField="Expenses" yField="Profit"
     displayNam


相关文档:

使用Cairngorm开发Flex(一):Cairngrom的构架

写flex也写了2年多了,居然还没有用过pureMVC或者Cairngrom这样的MVC框架,个人觉得有点丢人了。大概看了一下,框架的结构和以前自己开发的时候差不多。但是,虽然是一样,也不够专业啊,于是发了把狠,开始决定研究下Cairngorm,不能落后不是^^。先了解下Cairngorm的分层思想:
什么是Cairngorm
cairngorm中文名是&ldquo ......

Flex中的RemoteClass meta tag的使用说明

簡單的來說,RemoteClass是在編寫 ActionScript Class 檔時告知該 ActionScript Class 是對應到哪個遠定端的 Class 檔(非ActionScript),舉個例子來說,若在遠地端有個 Java Object 名為 T ......

Flex自定义非法字符或数字检测方法

今天用Flex语言写了个检查非法字符,和数字的方法,共大家交流
稍微改一下就能用到.NET或Java语言中
 
 public class CheckString
 {
  //判断用户是否输入非法字符
  public static  function CheckStr(strValue:String):Boolean
   {
    ......

理解 flex actionscript

as 不允许overload...即对于同一个函数名不能有不同的参数列表和返回值
类中的geter 和 setter 与其他的方法一样,除了
1.get函数没有参数,并且必须有返回值,并且必须有get关键字
2.set函数必须有参数并且没有返回值,并且必须有set关键字
Java代码
public function get sampleProperty( ):Str ......

理解 flex component

component就是一个AS class 或者是MXML component文件在manifest文件中映射的标签.分可视和不可视
可视化component包括Containers 和 UI controls
Containers(Appliction, Panel...)
UI controls(Button, Label)
可以通过3种方式设置component的属性
1.tag attributers
Java代码
<mx:Application xmln ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号