I'm not mr. actionscript but a class like this should facilitate what
you need.
class Idgen {
static var nextid:int = 0 ;
static function getNext:String() {
return "id" + nextid;
nextid++;
}
static function reset:void() {
nextid = 0;
}
}
Then call Idgen.getNext() to get a series of unique ids.
thetexaspsycho2003 wrote:
--- In [email protected], "thetexaspsycho2003"
<[EMAIL PROTECTED]> wrote:
Is there a way to dynamically create an item's ID? For example pulling
it in from a XML file?
I guess from the lack of replies there is no way of doing this. If so,
this is very disappointing. The ability to create IDs on-the-fly is
very helpful in other technologies, such as AJAX.
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links