- 浏览: 288113 次
- 性别:
- 来自: 广州
-
最新评论
-
zlbdexiaohao:
book那个例子,我怎么获得osbn号
flex xml操作 -
mysh:
ui.localToGlobal(new Point(0, 0 ...
flex 组件绝对位置 -
hje:
http://help.adobe.com/en_US/Fla ...
杂记。 -
dbmonths:
dbmonths 写道dbmonths 写道brightACE ...
byteArray 操作 -
dbmonths:
dbmonths 写道brightACE 写道学习了,感谢分享 ...
byteArray 操作
文章列表
今天我们来看看AS3中新的XML处理方法:E4X,直到现在,ECMA脚本语言规范(ECMA-262)--AscriptScript 3.0的核心基础,并没有提供任何的XML数据处理类或方法。AcriontScript之前的版本(从Flash 5中的ActionScript开始)有一些处理XML数据的类和方法,但是它们并不是基于ECMAScript标准的。
新的ECMA脚本语言规范第4版草稿中定义了一系列新的处理XML数据的类和方法。这些类和方法的集合并命名为E4X("ECMAScript for XML"),ActionScript 3.0包括如下新的E4X类: XML、X ...
- 2009-01-02 14:45
- 浏览 20065
- 评论(1)
主流四个开源3D框架资源:
一、 下载地址:
papervision3d: http://code.google.com/p/papervision3d/
Sandy 3D: http://code.google.com/p/sandy/
Away 3D: http://code.google.com/p/away3d/
alternativa3d:http://alternativaplatform.com/en/alternativa3d/(需注册后才能下载)
二、 官方网站:
papervision3d: http://www.papervision3d.or ...
- 2008-12-31 09:19
- 浏览 7091
- 评论(0)
private function saveSureCheck(ANI:String,AgentID:String,CSRSerViceTime:String,CTICallId:String,//把确认核身完成发送给 CADVVerificationHistory
CustomerId:String,EDUId:String,ProcessDate:String,Issuccess:String):void
{
var strSource:String="<ANI>"+ANI+" ...
- 2008-12-30 17:26
- 浏览 804
- 评论(0)
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="getChildrens()">
<mx:Script>
<![CDATA[
import mx.events.ChildExistenceChangedEvent;
import m ...
- 2008-12-26 10:46
- 浏览 3591
- 评论(0)
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="init()">
<mx:Script>
[CDATA[
import model.UserVO;
...
- 2008-12-23 12:28
- 浏览 1423
- 评论(0)
public function walkTree(tree:Tree, item:Object, startAtParent:Boolean = false):void
{
// get the Tree's data descriptor
var descriptor:ITreeDataDescriptor = tree.dataDescriptor;
var cursor:IViewCursor;
var parentItem:Object;
var childItem:Object;
var childItems:Object;
...
- 2008-12-19 10:39
- 浏览 2522
- 评论(0)
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="horizontal" viewSourceURL="srcview/index.html">
<mx:Script>
<![CDATA[
[Bindable] ...
- 2008-12-18 11:13
- 浏览 2121
- 评论(0)
1:方法
private function tt():void
{
var obj:Object=dataGrid1.indexToItemRenderer(dataGrid1.selectedIndex).data///.label;//.itemRenderer.newInstance();
//obj.label
Alert.show(obj.label);
}
2:设置属性
<mx:DataGrid height="100%"
dra ...
- 2008-12-17 16:59
- 浏览 3012
- 评论(0)
private function getActCodeResult(event:ResultEvent):void
{
data_xml=myHttp.getResult(event,actCode_http);
datagrid_xml = data_xml;
var xml_skill_len:int;
try{
xml_skill_len= data_xml.children().children().length();
}catch(error:Error){
C ...
- 2008-12-15 17:34
- 浏览 1915
- 评论(1)
<SCRIPT LANGUAGE="javascript:>
<!--
window.open ('page.html','newwindow','height=100,width=400,top=0,left=0,toolbar=no,menubar=no,scrollbars=no,resizable=no,
location=no,status=no')
//写成一行
-->
</SCRIPT>
PS:参数解释
//neo= ...
- 2008-12-04 12:14
- 浏览 2485
- 评论(0)
1:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:Script>
<![CDATA[
private function goFullScreen():void
{
stage.displayState = StageDisplayState.FULL_SCREEN;
}
] ...
- 2008-12-04 12:08
- 浏览 1136
- 评论(0)
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" >
<mx:Script>
<![CDATA[
import mx.controls.Alert;
private function bulit():void
{
var str_result:String;
var str_ ...
- 2008-12-03 16:18
- 浏览 4227
- 评论(0)
//xml 操作
function get_xml_depth(xml_source:XML):int//获取xml深度
{
var len:int=0;
var xml_list:XMLList=new XMLList(xml_source);
while(xml_list.length()!=0)
{
xml_list=xml_list.children();
len++;
}
return len;
}
function merg ...
- 2008-12-02 15:49
- 浏览 2885
- 评论(0)
1:flex
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:Script>
<![CDATA[
//引如需要的类库
import mx.rpc.events.FaultEvent;
...
- 2008-12-02 15:38
- 浏览 3249
- 评论(1)
了解Flex程序的生命周期
Flex程序从本质上讲,就是使用了(由AS编写的)Flex框架的Flash程序。
但在Flex程序中可以忽略timeline这个概念,所有的内容都集于一帧。
事实上Flex程序中的根,是继承flash.display.MovieClip的mx.managers.SystemManager。
SystemManager有两帧。第一帧是预加载程序,第二帧是主程序。
因此,所有程序在真正开始运行前,需要经过如下过程:
预初始(preinitialize)
程序在这个过程后,已经被实例化,但还未创建任何内容。
初始化(initialize)
程序在这 ...
- 2008-12-02 15:06
- 浏览 1129
- 评论(0)