Provides utilities for working with INamed implementations.
public static function createUniqueName(name:String, namedObjects:Array):String
Returns a unique name for a named object based on the given name. If we do have a duplicate name,
we add a counter to the new name, eg. "name (x)"
Parameters
| name:String |
| |
| namedObjects:Array |
Returns
public static function getBaseName(name:String):String
Returns the base name of the given name. This is the part of the name without the generated index.
Parameters
Returns
public static function getSuffixIndex(name:String):int
Returns the index of the generated suffix.
Parameters
Returns
| int — the index of the suffix
|
public static function isGeneratedName(name:String):Boolean
Returns whether or not the given name is generated.
Parameters
Returns
| Boolean — true if the name is generated, false if not
|
public static function isUsedName(name:String, namedObjects:Array):Boolean
Returns whether the given name is already used.
Parameters
| name:String — the name to check
|
| |
| namedObjects:Array — the array of INamed objects
|
Returns
Copyright 2007-2010 Spring Actionscript.