套件 | mx.utils |
類別 | public class NameUtil |
繼承 | NameUtil Object |
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
NameUtil.createName()
method.
公用方法
方法 | 定義自 | ||
---|---|---|---|
[靜態]
Creates a unique name for any Object instance, such as "Button12", by
combining the unqualified class name with an incrementing counter. | NameUtil | ||
[靜態]
Returns a string, such as
"MyApplication0.addressForm.lastName.TextField17",
for a DisplayObject object that indicates its position in the
hierarchy of DisplayObject objects in an application. | NameUtil | ||
[靜態]
Returns the name of the specified object's class,
such as "Button"
This string does not include the package name. | NameUtil | ||
指出物件是否有已定義的指定屬性。 | Object | ||
指出 Object 類別的實體是否位於指定為參數的物件原型鏈中。 | Object | ||
指出指定的屬性是否存在,以及是否可列舉。 | Object | ||
為迴圈作業設定動態屬性的可用性。 | Object | ||
傳回代表此物件的字串,根據地區特定慣例進行格式化。 | Object | ||
會傳回指定之物件的字串形式。 | Object | ||
會傳回指定之物件的基本值。 | Object |
方法詳細資訊
createUniqueName | () | 方法 |
public static function createUniqueName(object:Object):String
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Creates a unique name for any Object instance, such as "Button12", by combining the unqualified class name with an incrementing counter.
參數
object:Object — Object requiring a name.
|
String — String containing the unique name.
|
displayObjectToString | () | 方法 |
public static function displayObjectToString(displayObject:DisplayObject):String
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Returns a string, such as "MyApplication0.addressForm.lastName.TextField17", for a DisplayObject object that indicates its position in the hierarchy of DisplayObject objects in an application.
參數
displayObject:DisplayObject — A DisplayObject object whose hierarchy in the application
is desired.
|
String — String containing the position of displayObject
in the hierarchy of DisplayObject objects in an application.
|
getUnqualifiedClassName | () | 方法 |
public static function getUnqualifiedClassName(object:Object):String
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Returns the name of the specified object's class,
such as "Button"
This string does not include the package name.
If you need the package name as well, call the
getQualifiedClassName()
method in the flash.utils package.
It will return a string such as "mx.controls::Button"
.
參數
object:Object — The object.
|
String — The name of the specified object's class.
|
Tue Jun 12 2018, 03:47 PM Z