易截截图软件、单文件、免安装、纯绿色、仅160KB
热门标签: c c# c++ asp asp.net linux php jsp java vb Python Ruby mysql sql access Sqlite sqlserver delphi javascript Oracle ajax wap mssql html css flash flex dreamweaver xml
 最新文章 :

flash 之 URLLoader


var loader:URLLoader = new URLLoader();
loader.addEventListener(ProgressEvent.PROGRESS, handleProgress );
event:ProgressEvent     event.bytesLoaded/event.bytesTotal
var streamer:URLStream = new URLStream( );
streamer.addEventListener( ProgressEvent.PROGRESS, handleProgress );
streamer.load(new URLRequest("example.txt"));
var streamer:URLStream = URLStream( event.target );
streamer.bytesAvailable/read***  
var request:URLRequest = new URLRequest("process.cfm");
var variables:URLVariables = new URLVariables();
request.data = variables;
sendToURL(request);
//open a new url
navigateToURL(request, "_blank" );
//return value
var variables:URLVariables = new URLVariables( );
variables.method = "getProductDetail"
variables.productId = 2;
request.data = variables;
loader.dataFormat = DataFormat.VARIABLES;
loader.addEventListener(Event.COMPLETE, handleComplete);
loader.load(request);
var loader:URLLoad ......

Flex——Flash Player Not Found

Are you running your Flex Application and continually getting the error below?
"Flex Builder cannot locate the required version of the Flash Player. You might need to install Flash Player 9 or reinstall Flex Builder. Do you want to try to run your application with the current version?"
Description:
This error is not a critical error and if you click on the Yes button the application will most likely run the way the you expect it. The reason this happened may have been because you recently did an express install or just an upgrade to your Flash Player.
Solution:
To get rid of this window constantly popping up you need to do one of the following:
1.Reinstall the Flash Player
Follow this link and reinstall the Flash Player. Get the latest Flash Player Debug Version
This may or may not solve the issue.
2.Put the missing file in the folder that Flex is expecting.
As you can tell Flex is looking for the dll in the folder C:\Program Files\Mozilla Firefox\plugins but if you look in ......

Flex——Flash Player Not Found

Are you running your Flex Application and continually getting the error below?
"Flex Builder cannot locate the required version of the Flash Player. You might need to install Flash Player 9 or reinstall Flex Builder. Do you want to try to run your application with the current version?"
Description:
This error is not a critical error and if you click on the Yes button the application will most likely run the way the you expect it. The reason this happened may have been because you recently did an express install or just an upgrade to your Flash Player.
Solution:
To get rid of this window constantly popping up you need to do one of the following:
1.Reinstall the Flash Player
Follow this link and reinstall the Flash Player. Get the latest Flash Player Debug Version
This may or may not solve the issue.
2.Put the missing file in the folder that Flex is expecting.
As you can tell Flex is looking for the dll in the folder C:\Program Files\Mozilla Firefox\plugins but if you look in ......

Flash JSFL 脚本应用

Flash项目开发中对美术素材和程序的结合时一个较繁琐的问题。fla中各元件、对象的命名、层次、坐标都有较严格的要求。这就使得有很多复杂、重复性、繁琐的工作,比如说设置名字、设置类型、更新文件等等。
对解决这个问题,Adobe官方早就想到了并且提供了完整的解决方案,那就是JSFL,flash js的脚本语言。对这个语言的介绍,我在这就不详述,相关知识可查找Flash 帮助文件,API里面有详细的介绍。在此,主要贴一些今天写的代码。
1、把形状图形转化成元件,并放到舞台中,并命名:
//容错判断
if(fl.getDocumentDOM() == null)
{
alert("未打开任何文档!");
}
else
{
//全选
fl.getDocumentDOM().selectAll();
//容错判断
if(fl.getDocumentDOM().selection.length == 0)
{
alert("未选择文档中任何内容!");
}
else
{
//转换为元件
fl.getDocumentDOM().convertToSymbol('movie clip', '_hitTest', 'top left');
var lib = fl.getDocumentDOM().library;
if (lib.getItemProperty('linkageImportForRS') == true) {
lib.setItemProperty('linkageImportForRS', false);
}
else {
lib.setItemProperty('linkageExpo ......

Flex例子 通过继承增加新的功能

Flex中通过继承可以为新组件增加新的功能,如通过注入方法,改变背景色,改变位置和高度等。这里主要掌握原组件的一些特性,属性和方法,以便根据需要的功能加以覆写(也可以自己扩展),达到自己想要的效果。下面是一个简单的例子
1、新建MyDataGrid.as,继承DataGrid,覆写drawRowBackground方法,注入rowColorFunction方法。
Java代码
package com.test   
{   
    import flash.display.Sprite;   
       
    import mx.controls.Alert;   
    import mx.controls.DataGrid;   
    import mx.controls.dataGridClasses.DataGridColumn;   
  
    public class MyDataGrid extends DataGrid   
    {   
        private var _rowColorFunction:Function;   
   & ......

flex 图表categoryField设置 labelFunction使用

CategoryAxis有一个叫做labelFunction的属性,这个属性的定义:指定一个函数,用于定义为CategoryAxis的dataProvider中的各个项目生成的标签。
所以修改的原理:可以利用labelFunction得到每个Label,然后再对其进行修改。
片段代码:
<mx:horizontalAxis>
  <mx:CategoryAxis id="ca"
         categoryField="@date" title="August 2007" labelFunction="categoryAxisLabelFun" />
</mx:horizontalAxis>
 
private function categoryAxisLabelFun( item : Object, prevValue : Object, axis : CategoryAxis, categoryItem : Object) : String {
      var temp : String = item as String;
      return temp;
}
其中categoryAxisLabelFun的参数:
1、item:保存的就是Label里面文字信息。
2、prevValue:坐标轴上面,前一个类别的值。
3、axis:CategoryAxis的实例化对象。
4、categoryItem:是将要呈现的dataProvider中的项目。
所以与标签有关系的只有第一个参数:item。
 
以下代码分别是对CategoryAxis的标签进行修 ......

flex 图表使用百分比示例

<?xml version="1.0"?>
<!-- charts/PredefinedAxisStyles.mxml -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">

<mx:Script>
<!--[CDATA[
//导入相关包
import mx.collections.ArrayCollection;
import mx.charts.*;
import mx.charts.series.items.ColumnSeriesItem;
import mx.charts.ChartItem;
import mx.charts.chartClasses.Series;
import mx.charts.chartClasses.IAxis;
import mx.utils.ObjectUtil;

[Bindable]
public var expenses:ArrayCollection = new ArrayCollection([
{Month:"*", Profit:20, Expenses:15},
{Month:"**", Profit:10, Expenses:20},
{Month:"***", Profit:30, Expenses:40},
{Month:"****", Profit:15, Expenses:25},
{Month:"*****", Profit:40, Expenses:45}
]);



public function myLabelFormat(obj:Object,pcat:Object,ax:LinearAxis):String
{
return numForm.format(obj)+"%";
}

private function setCustomLabel(element:ChartItem, seri ......
总记录数:40319; 总页数:6720; 每页6 条; 首页 上一页 [2073] [2074] [2075] [2076] 2077 [2078] [2079] [2080] [2081] [2082]  下一页 尾页
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号