用于 Adobe® Flash® Platform 的 ActionScript® 3.0 参考
主页  |  隐藏包列表和类列表 |   |   |  新增内容  |  索引  |  附录  |  为什么显示为英语?
过滤条件: 正在从服务器检索数据...
正在从服务器检索数据...
 

包 lc.foundation.util 


公共方法
 函数由以下参数定义
  
addOneShotEventListener(dispatcher:IEventDispatcher, type:String, listener:Function, useCapture:Boolean = false, priority:int = 0):void
Add an event listener to the specified event dispatcher ensuring that it will only fire once.
lc.foundation.util
  
Create an adapter function that calls the provided function with the provided parameters, appending any parameters passed in when it is invoked.
lc.foundation.util
函数详细信息

addOneShotEventListener

()函数
public function addOneShotEventListener(dispatcher:IEventDispatcher, type:String, listener:Function, useCapture:Boolean = false, priority:int = 0):void

语言版本: ActionScript 3.0
产品版本: Adobe Digital Enterprise Platform Document Services - Workspace 9
运行时版本: AIR (unsupported), Flash Player 9, Flash Player 10

Add an event listener to the specified event dispatcher ensuring that it will only fire once.

参数

dispatcher:IEventDispatcher — The event dispatcher to add the listener to.
 
type:String — The type of event.
 
listener:Function — The listener function that processes the event. This function must accept an Event object as its only parameter and must return nothing.
 
useCapture:Boolean (default = false) — Determines whether the listener works in the capture phase or the target and bubbling phases. If useCapture is set to true, the listener processes the event only during the capture phase and not in the target or bubbling phase. If useCapture is false, the listener processes the event only during the target or bubbling phase. To listen for the event in all three phases, call addEventListener() twice, once with useCapture set to true, then again with useCapture set to false.
 
priority:int (default = 0) — The priority level of the event listener. Priorities are designated by a 32-bit integer. The higher the number, the higher the priority. All listeners with priority n are processed before listeners of priority n-1. If two or more listeners share the same priority, they are processed in the order in which they were added. The default priority is 0.

addParams

()函数 
public function addParams(func:Function, ... params):Function

语言版本: ActionScript 3.0
产品版本: Adobe Digital Enterprise Platform Document Services - Workspace 9
运行时版本: AIR (unsupported), Flash Player 9, Flash Player 10

Create an adapter function that calls the provided function with the provided parameters, appending any parameters passed in when it is invoked. The returned adapter function will accept any number of parameters to be appended.

参数

func:Function — The function to adapt.
 
... params — An arbitrary number of additional parameters to be passed to the provided function when the returned adapter function is called.

返回
Function — The created adapter function.

[ X ]为什么显示为英语?
《ActionScript 3.0 参考》中的内容以英语显示

《ActionScript 3.0 参考》中的部分内容未翻译成所有语言。当某个语言元素未翻译时,将显示为英语。例如,ga.controls.HelpBox 类未翻译成任何语言。因此在简体中文版的参考中,ga.controls.HelpBox 类显示为英语。