Profile
Achievement
mgeduld's Recent Snippets
- All /
« Prev 1 Next »
This is based on http://www.snipplr.com/view/46082/as3-html-color-keywords-colorname-class/
I found that link really useful, but it's more complex than I needed. I just wanted a simple list of consts. So I ran the above through a regexp and extrac...
0
716
posted 13 years ago by mgeduld
This simple construct allows you to replace parts of a string with items in a hash table (e.g. and Object).
Example:
var replacements : Object = { SPEED : "slow", ADJECTIVE : "green", VERB: "slithers" };
var template: String = "The %{SPEED}...
0
1119
posted 13 years ago by mgeduld