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
相关文档:
package util
{
public class MD5
{
private var hexcase:int = 0;
private var strsize:int = 8;
static private var md5:MD5;
static public function getInstance():MD5
{
if(!md5)
{
md5 = new MD5()
}
return md5;
}
public function getMD5(s:String):String
{
return binl2hex(core_md5(str2binl(s ......
本贴转自:http://wufenggang.spaces.live.com/String/
APIs、Libs、Components
1、as3ebaylib
http://code.google.com/p/as3ebaylib/
2、as3youtubelib
http://code.google.com/p/as3youtubelib/
3、as3flickrlib
http://code.google.com/p/as3flickrlib/
4、Yahoo ASTRA Flash Components
http://developer.yaho ......
module 接口文件 PictureWindowInterface.as
package
{
public interface PictureWindowInterface
{
function setSelectIndex(index:int):void
}
}
moudule 文件 PictureWindow.mxml
<?xml version="1.0" encoding="utf-8"?>
<mx:Module xmlns:mx="http://www.adobe.com/2006/mxml ......
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 ......