# Dynamic identifiers

**URL:** <https://forum.kirupa.com/t/dynamic-identifiers/267654>\
**Category:** flash\
**Created:** [August 4, 2008, 3:12pm UTC](https://forum.kirupa.com/t/dynamic-identifiers/267654 "2008-08-04T15:12:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![danoise](https://avatars.discourse-cdn.com/v4/letter/d/f4b2a3/32.png) [@danoise](https://forum.kirupa.com/u/danoise)\
**Post date:** [August 4, 2008, 3:12pm UTC](https://forum.kirupa.com/t/dynamic-identifiers/267654/1 "2008-08-04T15:12:26Z")

</div>

Here’s the scenario:

I am currently developing a multi-lingual application that makes use of several AS2.0 components, one of which is the DataGrid component.

To fill the DataGrid with information, I supply a standard DataProvider object, which looks something like this

```auto

dataProvider = [{TITEL:"some_string", GRUPPE:"some_string", KOMMENTAR:"some_string"}]

```

If you don’t speak danish, you’ll notice that the TITEL,GRUPPE & KOMMENTAR are in a foreign language. And this is where it get’s complicated, at least to me: I want to be able to expand the number of languages in a dynamic way, and have already concieved of a XML-based method for loading text off a server. But with a dataProvider object, the TITEL,GRUPPE & KOMMENTAR are object identifiers, not strings.

[FONT=Verdana] So I am looking for a way to load some string off a server, and convert it to an identifier on-the-fly, if possib[/FONT][FONT=Verdana]le. Since it’s supposed to be dynamic and expandable, using code forks ([FONT=Courier New]if language==[/FONT]) aren’t really an option.[/FONT]
