打印

有两句不会译......请高人指教

译了点东东,有两句译不出,请高人指教,顺便能给偶检查一下错误最好!谢谢!

The Proxy class lets you override the default behavior of ActionScript operations (such as retrieving and modifying properties) on an object.
Proxy类允许你重载一个对象的默认属性('属性'包括x,height这样平时所说的属性,亦包括函数,即方法)

The Proxy class has no constructor, and you should not attempt to instantiate Proxy. Instead, subclass the Proxy class to override methods such as getProperty and provide custom behavior. If you try to use a method of the Proxy class without overriding the method, an exception is thrown.
Proxy类没有构造函数,所以你别想得到他的实例.(这里不会译).如果你尝试在没有在Proxy的子类中使用没有重载的方法,它会给你抛出一个错误.

And, keep in mind, your own code overriding the methods of the Proxy class can throw exceptions unintentionally. Throwing exceptions when using these methods causes problems because the calling code (using operators like in, is, delete and others) does not expect exceptions. Unless you're already sure your overriding method does not throw exceptions, Adobe recommends using try..catch statements around your implementation of the Proxy class to avoid fatal errors when operators call your methods.
你要紧记一点,你重载Proxy类的方法会抛出一个意外.这是因为你的代码(比如有in, is, delete这些操作符的)没有加入错误预处理.除非你确信你的方法不会抛出错误,Adobe建议你普遍使用try...catch语句来防止致命错误的产生.

The Proxy class is a replacement for the Object.__resolve and Object.addProperty  features of ActionScript 2.0, which are no longer available in ActionScript 3.0. The Object.addProperty() feature allowed you to dynamically create get and set methods in ActionScript 2.0. Although ActionScript 3.0 provides get and set methods at compile time, you cannot dynamically assign one to an object unless you use the Proxy class.
Proxy类在AS3中替代了AS2中Object.__resolve 和Object.addPropery的功能特性.AS2中的Object.addProperty()方法允许你动态的创建get/set方法.虽然AS3提供了get/set方法供你在编译环节使用,但若不使用Proxy类,你是不能动态的给对象添加get/set方法的.

To avoid collisions with the public namespace, the methods of the Proxy class are in the flash_proxy namespace.
为了避免在公共命名空间中发生致命冲突,Proxy类的方法被放进了flash_proxy命名空间中.

Where methods of the Proxy class take a name  argument, name can be either a String or a QName object (if namespaces are being used).
将要传入属于Proxy类的方法中name参数,你使用字符串或者QName都可以(若命名空间将会被使用的话).


callProperty(name:*, ... rest):*
Overrides the behavior of an object property that can be called as a function.
重载一个对象的方法.
       
deleteProperty(name:*):Boolean
Overrides the request to delete a property.
重载要求删除成员的方法.

getDescendants(name:*):*
Overrides the use of the descendant operator.
重载对派生操作符的使用.

getProperty(name:*):*
Overrides any request for a property's value.
重载查询成员的值.

hasProperty(name:*):Boolean
Overrides a request to check whether an object has a particular property by name.
重载以成员名为依据在对象中进行查询是包含指定的成员的方法.
       
isAttribute(name:*):Boolean
Checks whether a supplied QName is also marked as an attribute.
查询一个QName是否同时被定义成属性了.

nextName(index:int):String
Allows enumeration of the proxied object's properties by index number to retrieve property names.
允许使用成员的索引从被代理的对象成员中查出相应成员的名称.

nextNameIndex(index:int):int
Allows enumeration of the proxied object's properties by index number.
允许使用序号来检索被代理的对象成员.
       
nextValue(index:int):*
Allows enumeration of the proxied object's properties by index number to retrieve property values.
允许使用被代理的成员序号来查询成员的值.

setProperty(name:*, value:*):void
Overrides a call to change a property's value.
重载对成员的赋值行为.


flash_proxy       命名空间

Defines methods of the Proxy class. The Proxy class methods are in their own namespace to avoid name conflicts in situations where your Proxy subclass contains instance method names that match any of the Proxy class method names.
用来容纳Proxy类所定义的方法之命名空间.(句子太长不会译了)

[ 本帖最后由 xbstu2006 于 2007-6-8 00:12 编辑 ]
嗯,晚点来看一下~现在比较忙
小臭鱼
让你快乐每一天
第二句:
Defines methods of the Proxy class. The Proxy class methods are in their own namespace to avoid name conflicts in situations where your Proxy subclass contains instance method names that match any of the Proxy class method names.
定义Proxy类的方法。Proxy类的方法都在他们自己的命名空间中,这么做的目的是为了避免在如下情形中出现命名冲突:你的Proxy子类拥有的实例方法名和Proxy类的方法名匹配。
莫大米什么都不懂
这句非常关键挖~非常感谢!
如果翻不出,内容有10%的残缺~
~继续等高人讲剩下的问题

[ 本帖最后由 xbstu2006 于 2007-6-8 11:35 编辑 ]

TOP

还在为头像烦恼?还在为不能关注好友动态烦忧?快来蓝色理想家园吧!
这是我的一点意见。由于我是代码BC,可能会对某些词解释不到位,还望海涵。首先便是那个override


更改了的部份是我自己的理解,未更改部份就直接照抄了。嘿嘿~~

The Proxy class lets you override the default behavior of ActionScript operations (such as retrieving and modifying properties) on an object.
Proxy类可以让您覆盖对象上在ActionScript操作(例如重新获取和修改参数)的默认行为。

The Proxy class has no constructor, and you should not attempt to instantiate Proxy. Instead, subclass the Proxy class to override methods such as getProperty and provide custom behavior. If you try to use a method of the Proxy class without overriding the method, an exception is thrown.
Proxy类没有构造函数,所以你别想得到他的实例.相反的,将Proxy分成子类来覆盖方法,例如getProperty并提供自定义行为。如果您尝试使用Proxy类的方法而不覆盖其方法,则会产生例外。

And, keep in mind, your own code overriding the methods of the Proxy class can throw exceptions unintentionally. Throwing exceptions when using these methods causes problems because the calling code (using operators like in, is, delete and others) does not expect exceptions. Unless you're already sure your overriding method does not throw exceptions, Adobe recommends using try..catch statements around your implementation of the Proxy class to avoid fatal errors when operators call your methods.

你要注意,你自己的代码覆盖Proxy类的方法会导致不可交互例外。当使用这些方法导致问题产生例外,是因为调用代码(使用操作符例如in, is, delete或其它)不期望例外。除非您已经确信你覆盖的方法不会产生例外。Adobe建议当操作符调用你的方法时使用Proxy类执行的try..catch语句来防止致命错误的产生。

The Proxy class is a replacement for the Object.__resolve and Object.addProperty  features of ActionScript 2.0, which are no longer available in ActionScript 3.0. The Object.addProperty() feature allowed you to dynamically create get and set methods in ActionScript 2.0. Although ActionScript 3.0 provides get and set methods at compile time, you cannot dynamically assign one to an object unless you use the Proxy class.
Proxy类是ActionScript 2.0 中Object.__resolve and Object.addProperty功能的替代,然而它在ActionScript 3.0上已经不可用。AS2中的Object.addProperty()方法允许你动态的创建get/set方法.虽然AS3提供了get/set方法供你在编译环节使用,但若不使用Proxy类,你是不能动态的给对象添加get/set方法的.

To avoid collisions with the public namespace, the methods of the Proxy class are in the flash_proxy namespace.
为了避免在公共命名空间中发生致命冲突,Proxy类的方法被放进了flash_proxy命名空间中.

Where methods of the Proxy class take a name  argument, name can be either a String or a QName object (if namespaces are being used).
在Proxy类方法产生名称冲突的地方,名称可以是String或QName对象(如果名称空间被使用)。

callProperty(name:*, ... rest):*
Overrides the behavior of an object property that can be called as a function.
覆盖对象参数行为被称为一个函数。
      
deleteProperty(name:*):Boolean
Overrides the request to delete a property.
覆盖删除参数的请求。

getDescendants(name:*):*
Overrides the use of the descendant operator.
覆盖派生操作符的使用.

getProperty(name:*):*
Overrides any request for a property's value.
为参数值覆盖所有请求。

hasProperty(name:*):Boolean
Overrides a request to check whether an object has a particular property by name.
覆盖检查一个对象是否在名称上有特殊参数的请求。
      
isAttribute(name:*):Boolean
Checks whether a supplied QName is also marked as an attribute.
查询一个QName是否同时被标记为属性.

nextName(index:int):String
Allows enumeration of the proxied object's properties by index number to retrieve property names.
通过索引数字允许proxied对象参数的列举来重新获取参数名称。

nextNameIndex(index:int):int
Allows enumeration of the proxied object's properties by index number.
通过索引数字来允许proxied对象参数的列举。
      
nextValue(index:int):*
Allows enumeration of the proxied object's properties by index number to retrieve property values.
通过索引数字允许proxied对象参数的列举来重新获取参数值。

setProperty(name:*, value:*):void
Overrides a call to change a property's value.
覆盖调用来更改参数值。

[ 本帖最后由 Togetherlllll 于 2007-6-8 17:21 编辑 ]
小臭鱼
让你快乐每一天

TOP

以下内容摘自:  争气宝宝日记

        二零零七年六月八日
因为偶的英文水平太低
所以学习英文资料相当的困难
幸亏遇到了Togetherlllll哥哥
不然这篇文档是翻译不好的

看了Togetherlllll哥哥的翻译
那字里行间透露出的对新手的无微不至的关怀
让偶感到一阵温暖
还有脚踏实地,实事求是,不断进取的道德风尚
让偶钦佩不已!
不仅如此
偶的英语水平也有了很大的提高
Togetherlllll真是一位技术过硬,乐于助人,认真负责的好版主!
偶要向Togetherlllll版主哥哥学习,发奋努力,做一个精通英语,并且有良好品德的人!
                             

TOP