Rick,
Codebook used a function like this. I don't have a link for Flash handy. Other than that you use substr(), asc() and chr() to increment each position of the code.
>I need a base-36 number because it is used by an outside vendor as their unique identifier, and when I send my file to them it has to have this number.