StringUtil.substitute might help with the token replacement.
--- In [email protected], Weyert de Boer <[EMAIL PROTECTED]> wrote:
>
> Hello!
>
> Does anyone know some simple text-based template engine for Flash? I
> would like to generate some text files based on code
snippets/templates
> in my Flash project.
> Only I am curious if anyone know some simple template engine written
in
> ActionScript which might support token replacement (e.g. var1 => my
> value) or even some
> conditional constructs, like if-blocks.
>
> Anyone aware of such thing?
>
> Yours,
> Weyert
>