Paket | mx.utils |
Klass | public class NameUtil |
Arv | NameUtil Object |
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
NameUtil.createName()
method.
Metod | Definieras med | ||
---|---|---|---|
[statisk]
Creates a unique name for any Object instance, such as "Button12", by
combining the unqualified class name with an incrementing counter. | NameUtil | ||
[statisk]
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 | ||
[statisk]
Returns the name of the specified object's class,
such as "Button"
This string does not include the package name. | NameUtil | ||
Anger om det finns en egenskap angiven för ett objekt. | Object | ||
Anger om en instans av klassen Object finns i prototypkedjan för objektet som anges som parameter. | Object | ||
Anger om den angivna egenskapen finns och är uppräkningsbar. | Object | ||
Anger tillgänglighet för en dynamisk egenskap för slingåtgärder. | Object | ||
Returnerar det här objektets strängrepresentation, formaterad i enlighet med språkspecifika konventioner. | Object | ||
Returnerar det angivna objektets strängbeteckning. | Object | ||
Returnerar det angivna objektets primitiva värde. | Object |
createUniqueName | () | metod |
public static function createUniqueName(object:Object):String
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | 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.
Parametrar
object:Object — Object requiring a name.
|
String — String containing the unique name.
|
displayObjectToString | () | metod |
public static function displayObjectToString(displayObject:DisplayObject):String
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | 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.
Parametrar
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 | () | metod |
public static function getUnqualifiedClassName(object:Object):String
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | 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"
.
Parametrar
object:Object — The object.
|
String — The name of the specified object's class.
|
Tue Jun 12 2018, 01:40 PM Z