UPDATE: Oops sorry, thought this was a Flash/Flex question!
There are multiple ways to solve this issue but a simple one would be:
I've seen it done before but I can't seem to find the link, I'll keep looking. Also check out:
I hope this helps!
J. Phillip Camp